Example usage for Java org.eclipse.jdt.core.dom ITypeBinding fields, constructors, methods, implement or subclass
The text is from its open source code.
ITypeBinding | createArrayType(int dimension) Answer an array type binding using the receiver and the given dimension. |
boolean | equals(Object obj) There is no special definition of equality for bindings; equality is simply object identity. |
IAnnotationBinding[] | getAnnotations() Returns the resolved declaration annotations associated with this binding. |
String | getBinaryName() Returns the binary name of this type binding. |
ITypeBinding | getBound() Returns the bound of this wildcard type if it has one. |
ITypeBinding | getComponentType() Returns the binding representing the component type of this array type, or null if this is not an array type binding. |
IVariableBinding[] | getDeclaredFields() Returns a list of bindings representing all the fields declared as members of this class, interface, or enum type. |
IMethodBinding[] | getDeclaredMethods() Returns a list of method bindings representing all the methods and constructors declared for this class, interface, enum, or annotation type. |
int | getDeclaredModifiers() Returns the declared modifiers for this class or interface binding as specified in the original source declaration of the class or interface. |
ITypeBinding[] | getDeclaredTypes() Returns a list of type bindings representing all the types declared as members of this class, interface, or enum type. |
ITypeBinding | getDeclaringClass() Returns the type binding representing the class, interface, or enum that declares this binding. |
IMethodBinding | getDeclaringMethod() Returns the method binding representing the method that declares this binding of a local type or type variable. |
int | getDimensions() Returns the dimensionality of this array type, or 0 if this is not an array type binding. |
ITypeBinding | getElementType() Returns the binding representing the element type of this array type, or null if this is not an array type binding. |
ITypeBinding | getErasure() Returns the erasure of this type binding. |
IMethodBinding | getFunctionalInterfaceMethod() Returns the single abstract method that constitutes the single function contract (aside from any redeclarations of methods of java.lang.Object ) of the receiver interface type or null if there is no such contract or if the receiver is not an interface. |
ITypeBinding | getGenericTypeOfWildcardType() Returns the generic type associated with this wildcard type, if it has one. |
ITypeBinding[] | getInterfaces() Returns a list of type bindings representing the direct superinterfaces of the class, interface, or enum type represented by this type binding. |
IJavaElement | getJavaElement() Returns the Java element that corresponds to this binding. |
String | getKey() Returns the key for this binding. |
int | getModifiers() Returns the compiled modifiers for this class, interface, enum, or annotation type binding. |
String | getName() Returns the unqualified name of the type represented by this binding if it has one. |
IPackageBinding | getPackage() Returns the binding for the package in which this type is declared. |
String | getQualifiedName() Returns the fully qualified name of the type represented by this binding if it has one. |
int | getRank() Returns the rank associated with this wildcard type. |
ITypeBinding | getSuperclass() Returns the type binding for the superclass of the type represented by this class binding. |
IAnnotationBinding[] | getTypeAnnotations() Returns the type annotations that this type reference is annotated with. |
ITypeBinding[] | getTypeArguments() Returns the type arguments of this generic type instance, or the empty list for other type bindings. |
ITypeBinding[] | getTypeBounds() Returns the upper type bounds of this type variable, wildcard, capture, or intersectionType. |
ITypeBinding | getTypeDeclaration() Returns the binding for the type declaration corresponding to this type binding. |
ITypeBinding[] | getTypeParameters() Returns the type parameters of this class or interface type binding. |
ITypeBinding | getWildcard() Returns the corresponding wildcard binding of this capture binding. |
boolean | isAnnotation() Returns whether this type binding represents an annotation type. |
boolean | isAnonymous() Returns whether this type binding represents an anonymous class. |
boolean | isArray() Returns whether this type binding represents an array type. |
boolean | isAssignmentCompatible(ITypeBinding variableType) Returns whether an expression of this type can be assigned to a variable of the given type, as specified in section 5.2 of The Java Language Specification, Third Edition (JLS3). |
boolean | isCapture() Returns whether this type binding represents a capture binding. |
boolean | isCastCompatible(ITypeBinding type) Returns whether this type is cast compatible with the given type, as specified in section 5.5 of The Java Language Specification, Third Edition (JLS3). |
boolean | isClass() Returns whether this type binding represents a class type or a recovered binding. |
boolean | isDeprecated() Return whether this binding is for something that is deprecated. |
boolean | isEnum() Returns whether this type binding represents an enum type. |
boolean | isEqualTo(IBinding binding) Returns whether this binding has the same key as that of the given binding. |
boolean | isFromSource() Returns whether this type binding originated in source code. |
boolean | isGenericType() Returns whether this type binding represents a declaration of a generic class or interface. |
boolean | isInterface() Returns whether this type binding represents an interface type. |
boolean | isLocal() Returns whether this type binding represents a local class. |
boolean | isMember() Returns whether this type binding represents a member class or interface. |
boolean | isNested() Returns whether this type binding represents a nested class, interface, enum, or annotation type. |
boolean | isNullType() Returns whether this type binding represents the null type. |
boolean | isParameterizedType() Returns whether this type binding represents an instance of a generic type corresponding to a parameterized type reference. |
boolean | isPrimitive() Returns whether this type binding represents a primitive type. |
boolean | isRawType() Returns whether this type binding represents an instance of a generic type corresponding to a raw type reference. |
boolean | isRecovered() Return whether this binding is created because the bindings recovery is enabled. |
boolean | isSubTypeCompatible(ITypeBinding type) Returns whether this type is subtype compatible with the given type, as specified in section 4.10 of The Java Language Specification, Third Edition (JLS3). |
boolean | isSynthetic() Returns whether this binding is synthetic. |
boolean | isTopLevel() Returns whether this type binding represents a top-level class, interface, enum, or annotation type. |
boolean | isTypeVariable() Returns whether this type binding represents a type variable. |
boolean | isUpperbound() Returns whether this wildcard type is an upper bound ("extends") as opposed to a lower bound ("super"). |
boolean | isWildcardType() Returns whether this type binding represents a wildcard type. |
String | toString() Returns a string representation of this binding suitable for debugging purposes only. |