|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jdt.internal.compiler.lookup.Binding
org.eclipse.jdt.internal.compiler.lookup.TypeBinding
org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding
org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding
public class BinaryTypeBinding
| Field Summary | |
|---|---|
protected ReferenceBinding |
enclosingType
|
protected LookupEnvironment |
environment
|
protected FieldBinding[] |
fields
|
protected ReferenceBinding[] |
memberTypes
|
protected MethodBinding[] |
methods
|
protected SimpleLookupTable |
storedAnnotations
|
protected ReferenceBinding |
superclass
|
protected ReferenceBinding[] |
superInterfaces
|
protected TypeVariableBinding[] |
typeVariables
|
| Fields inherited from class org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding |
|---|
compoundName, fPackage, LUB_GENERIC, modifiers, sourceName |
| Fields inherited from class org.eclipse.jdt.internal.compiler.lookup.TypeBinding |
|---|
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, id, INT, LONG, NULL, SHORT, tagBits, VOID |
| Fields inherited from class org.eclipse.jdt.internal.compiler.lookup.Binding |
|---|
ANY_EXCEPTION, ARRAY_TYPE, BASE_TYPE, FIELD, GENERIC_TYPE, IMPORT, INTERSECTION_TYPE, LOCAL, METHOD, NO_ANNOTATIONS, NO_ELEMENT_VALUE_PAIRS, NO_EXCEPTIONS, NO_FIELDS, NO_MEMBER_TYPES, NO_METHODS, NO_PARAMETERS, NO_SUPERINTERFACES, NO_TYPE_VARIABLES, NO_TYPES, PACKAGE, PARAMETERIZED_TYPE, RAW_TYPE, TYPE, TYPE_PARAMETER, UNINITIALIZED_FIELDS, UNINITIALIZED_METHODS, UNINITIALIZED_REFERENCE_TYPES, VARIABLE, WILDCARD_TYPE |
| Constructor Summary | |
|---|---|
protected |
BinaryTypeBinding()
Default empty constructor for subclasses only. |
|
BinaryTypeBinding(PackageBinding packageBinding,
IBinaryType binaryType,
LookupEnvironment environment)
Standard constructor for creating binary type bindings from binary models (classfiles) |
| Method Summary | |
|---|---|
FieldBinding[] |
availableFields()
Return the array of resolvable fields (resilience) |
MethodBinding[] |
availableMethods()
Return the array of resolvable methods (resilience) |
static AnnotationBinding[] |
createAnnotations(IBinaryAnnotation[] annotationInfos,
LookupEnvironment env,
char[][][] missingTypeNames)
|
ReferenceBinding |
enclosingType()
|
FieldBinding[] |
fields()
|
char[] |
genericTypeSignature()
Answer the receiver classfile signature. |
MethodBinding |
getExactConstructor(TypeBinding[] argumentTypes)
|
MethodBinding |
getExactMethod(char[] selector,
TypeBinding[] argumentTypes,
CompilationUnitScope refScope)
|
FieldBinding |
getField(char[] fieldName,
boolean needResolve)
|
ReferenceBinding |
getMemberType(char[] typeName)
Rewrite of default getMemberType to avoid resolving eagerly all member types when one is requested |
MethodBinding[] |
getMethods(char[] selector)
|
MethodBinding[] |
getMethods(char[] selector,
int suggestedParameterLength)
|
TypeVariableBinding |
getTypeVariable(char[] variableName)
|
boolean |
hasMemberTypes()
|
boolean |
isEquivalentTo(TypeBinding otherType)
Returns true if a type is identical to another one, or for generic types, true if compared to its raw type. |
boolean |
isGenericType()
|
boolean |
isHierarchyConnected()
Returns true if the type hierarchy is connected |
int |
kind()
|
ReferenceBinding[] |
memberTypes()
|
MethodBinding[] |
methods()
|
static TypeBinding |
resolveType(TypeBinding type,
LookupEnvironment environment,
boolean convertGenericToRawType)
|
ReferenceBinding |
superclass()
|
ReferenceBinding[] |
superInterfaces()
|
String |
toString()
|
TypeVariableBinding[] |
typeVariables()
|
FieldBinding[] |
unResolvedFields()
|
| Methods inherited from class org.eclipse.jdt.internal.compiler.lookup.Binding |
|---|
computeUniqueKey, initializeDeprecatedAnnotationTagBits, isParameter, isValidBinding, isVolatile, problemId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ReferenceBinding superclass
protected ReferenceBinding enclosingType
protected ReferenceBinding[] superInterfaces
protected FieldBinding[] fields
protected MethodBinding[] methods
protected ReferenceBinding[] memberTypes
protected TypeVariableBinding[] typeVariables
protected LookupEnvironment environment
protected SimpleLookupTable storedAnnotations
| Constructor Detail |
|---|
protected BinaryTypeBinding()
public BinaryTypeBinding(PackageBinding packageBinding,
IBinaryType binaryType,
LookupEnvironment environment)
packageBinding - binaryType - environment - | Method Detail |
|---|
public static AnnotationBinding[] createAnnotations(IBinaryAnnotation[] annotationInfos,
LookupEnvironment env,
char[][][] missingTypeNames)
public static TypeBinding resolveType(TypeBinding type,
LookupEnvironment environment,
boolean convertGenericToRawType)
public FieldBinding[] availableFields()
ReferenceBinding
availableFields in class ReferenceBindingReferenceBinding.availableMethods()public MethodBinding[] availableMethods()
ReferenceBinding
availableMethods in class ReferenceBindingReferenceBinding.availableMethods()public ReferenceBinding enclosingType()
enclosingType in class TypeBindingpublic FieldBinding[] fields()
fields in class ReferenceBindingpublic char[] genericTypeSignature()
TypeBinding
genericTypeSignature in class TypeBindingTypeBinding.genericTypeSignature()public MethodBinding getExactConstructor(TypeBinding[] argumentTypes)
getExactConstructor in class ReferenceBinding
public MethodBinding getExactMethod(char[] selector,
TypeBinding[] argumentTypes,
CompilationUnitScope refScope)
getExactMethod in class ReferenceBinding
public FieldBinding getField(char[] fieldName,
boolean needResolve)
getField in class ReferenceBindingpublic ReferenceBinding getMemberType(char[] typeName)
getMemberType in class ReferenceBindingpublic MethodBinding[] getMethods(char[] selector)
getMethods in class ReferenceBinding
public MethodBinding[] getMethods(char[] selector,
int suggestedParameterLength)
getMethods in class ReferenceBindingpublic boolean hasMemberTypes()
hasMemberTypes in class ReferenceBindingpublic TypeVariableBinding getTypeVariable(char[] variableName)
getTypeVariable in class ReferenceBindingpublic boolean isEquivalentTo(TypeBinding otherType)
isEquivalentTo in class TypeBindingpublic boolean isGenericType()
isGenericType in class TypeBindingpublic boolean isHierarchyConnected()
ReferenceBinding
isHierarchyConnected in class ReferenceBindingpublic int kind()
kind in class TypeBindingpublic ReferenceBinding[] memberTypes()
memberTypes in class ReferenceBindingpublic MethodBinding[] methods()
methods in class ReferenceBindingpublic ReferenceBinding superclass()
superclass in class ReferenceBindingpublic ReferenceBinding[] superInterfaces()
superInterfaces in class ReferenceBindingpublic TypeVariableBinding[] typeVariables()
typeVariables in class TypeBindingpublic String toString()
toString in class Objectpublic FieldBinding[] unResolvedFields()
unResolvedFields in class ReferenceBinding
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||