Class BasicInterfaceType
A basic interface type.
A basic interface is an interface that does not specify any type set
literals, and which does not embed any non-basic interfaces. The special
interface comparable is not a basic interface.
Import path
import semmle.go.TypesDirect supertypes
Indirect supertypes
Known direct subtypes
Predicates
| toString | Gets a basic textual representation of this type. |
Inherited predicates
| getADirectlyEmbeddedInterface | Gets a type whose underlying type is an interface that is directly embedded into this interface. | from InterfaceType |
| getAnEmbeddedInterface | Gets a type whose underlying type is an interface that is embedded into this interface. | from InterfaceType |
| getAnEmbeddedTypeSetLiteral | Gets a type set literal of this interface type. | from InterfaceType |
| getDirectlyEmbeddedTypeSetLiteral | Gets the type set literal with index | from InterfaceType |
| getEntity | Gets the entity associated with this type. | from Type |
| getField | Gets the field | from Type |
| getLocation | Gets the location of this type. | from Type |
| getMethod | Gets the method | from Type |
| getMethodType | Gets the type of method | from InterfaceType |
| getName | Gets the name of this type, if it has one. | from Type |
| getPackage | Gets the package in which this type is declared, if any. | from Type |
| getPointerType | Gets the pointer type that has this type as its base type. | from Type |
| getQualifiedName | Gets the qualified name of this type, if any. | from Type |
| getUnderlyingType | Gets the underlying type of this type after any type aliases have been replaced with their definition. | from Type |
| hasLocationInfo | DEPRECATED: Use | from Type |
| hasMethod | Holds if the method set of this type contains a method named | from InterfaceType |
| hasPrivateMethodWithQualifiedName | Holds if this interface type has a private method | from InterfaceType |
| hasQualifiedName | Holds if this type is declared in a package with path | from Type |
| implements | Holds if this type implements interface | from Type |
| implements | Holds if this type implements an interface that has the qualified name | from Type |
| implementsComparable | Holds if this type implements | from Type |
| isOrEmbedsComparable | Holds if this interface type is (the underlying type of) | from InterfaceType |
| pp | Gets a pretty-printed representation of this type, including its structure where applicable. | from InterfaceType |