Class Type
A Go type.
Import path
import semmle.go.Types
Direct supertypes
Known direct subtypes
Predicates
getEntity | Gets the entity associated with this type. |
getField | Gets the field |
getMethod | Gets the method |
getName | Gets the name of this type, if it has one. |
getPackage | Gets the package in which this type is declared, if any. |
getPointerType | Gets the pointer type that has this type as its base type. |
getQualifiedName | Gets the qualified name of this type, if any. |
getUnderlyingType | Gets the underlying type of this type after any type aliases have been replaced with their definition. |
hasLocationInfo | Holds if this element is at the specified location. The location spans column |
hasMethod | Holds if the method set of this type contains a method named |
hasQualifiedName | Holds if this type is declared in a package with path |
implements | Holds if this type implements interface |
implements | Holds if this type implements an interface that has the qualified name |
implementsComparable | Holds if this type implements |
pp | Gets a pretty-printed representation of this type, including its structure where applicable. |
toString | Gets a basic textual representation of this type. |