|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding
public class BinaryTypeBinding
| Field Summary | |
|---|---|
protected ReferenceBinding |
enclosingType
|
protected LookupEnvironment |
environment
|
protected SimpleLookupTable |
storedAnnotations
|
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding |
|---|
fields, memberFinder, memberTypes, methods, originalSuperclass, originalSuperInterfaces, privilegedHandler, scope, superclass, superInterfaces, typeFinder, typeVariables |
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding |
|---|
compoundName, fPackage, LUB_GENERIC, modifiers, samProblemBinding, singleAbstractMethod, sourceName |
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding |
|---|
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, id, INT, LONG, NULL, SHORT, tagBits, TYPE_USE_BINDING, typeAnnotations, VOID |
| Constructor Summary | |
|---|---|
protected |
BinaryTypeBinding()
Default empty constructor for subclasses only. |
|
BinaryTypeBinding(BinaryTypeBinding prototype)
|
|
BinaryTypeBinding(PackageBinding packageBinding,
IBinaryType binaryType,
LookupEnvironment environment)
Standard constructor for creating binary type bindings from binary models (classfiles) |
|
BinaryTypeBinding(PackageBinding packageBinding,
IBinaryType binaryType,
LookupEnvironment environment,
boolean needFieldsAndMethods)
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) |
TypeBinding |
clone(TypeBinding outerType)
Virtual copy constructor: a copy is made of the receiver's entire instance state and then suitably parameterized by the arguments to the clone operation as seen fit by each type. |
ReferenceBinding |
containerAnnotationType()
|
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 |
getFieldBase(char[] fieldName,
boolean needResolve)
|
ReferenceBinding |
getMemberType(char[] typeName)
Rewrite of default memberTypes() to avoid resolving eagerly all member types when one is requested |
MethodBinding[] |
getMethodsBase(char[] selector)
|
MethodBinding[] |
getMethodsBase(char[] selector,
int suggestedParameterLength)
|
TypeVariableBinding |
getTypeVariable(char[] variableName)
|
boolean |
hasMemberTypes()
|
boolean |
hasTypeBit(int bit)
Answer an additional bit characterizing this type, like TypeIds.BitAutoCloseable. |
void |
initializeDeprecatedAnnotationTagBits()
Compute the tag bits for @Deprecated annotations, avoiding resolving entire annotation if not necessary. |
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 |
boolean |
isPrototype()
|
boolean |
isRepeatableAnnotationType()
Answer true if the receiver is an annotation which may be repeatable. |
int |
kind()
|
ReferenceBinding[] |
memberTypes()
|
MethodBinding[] |
methods()
|
MethodBinding[] |
methodsBase()
|
TypeBinding |
prototype()
Return the primordial type from which the receiver was cloned. |
static TypeBinding |
resolveType(TypeBinding type,
LookupEnvironment environment,
boolean convertGenericToRawType)
|
FieldBinding |
resolveTypeFor(FieldBinding field)
|
MethodBinding |
resolveTypesFor(MethodBinding method)
|
void |
setContainerAnnotationType(ReferenceBinding value)
|
ReferenceBinding |
superclass()
|
ReferenceBinding[] |
superInterfaces()
|
void |
tagAsHavingDefectiveContainerType()
|
java.lang.String |
toString()
|
TypeVariableBinding[] |
typeVariables()
|
TypeBinding |
unannotated(boolean removeOnlyNullAnnotations)
Return this type minus its type annotations |
FieldBinding[] |
unResolvedFields()
|
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.lookup.Binding |
|---|
computeUniqueKey, isParameter, isValidBinding, isVolatile, problemId, setAnnotations |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ReferenceBinding enclosingType
protected LookupEnvironment environment
protected SimpleLookupTable storedAnnotations
| Constructor Detail |
|---|
protected BinaryTypeBinding()
public BinaryTypeBinding(BinaryTypeBinding prototype)
public BinaryTypeBinding(PackageBinding packageBinding,
IBinaryType binaryType,
LookupEnvironment environment)
packageBinding - binaryType - environment -
public BinaryTypeBinding(PackageBinding packageBinding,
IBinaryType binaryType,
LookupEnvironment environment,
boolean needFieldsAndMethods)
packageBinding - binaryType - environment - needFieldsAndMethods - | Method Detail |
|---|
public TypeBinding clone(TypeBinding outerType)
TypeBinding
clone in class SourceTypeBinding
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.availableFields()public MethodBinding[] availableMethods()
ReferenceBinding
availableMethods in class ReferenceBindingReferenceBinding.availableMethods()public ReferenceBinding enclosingType()
enclosingType in class TypeBindingpublic FieldBinding[] fields()
fields in class SourceTypeBindingpublic char[] genericTypeSignature()
TypeBinding
genericTypeSignature in class SourceTypeBindingTypeBinding.genericTypeSignature()public MethodBinding getExactConstructor(TypeBinding[] argumentTypes)
getExactConstructor in class SourceTypeBinding
public MethodBinding getExactMethod(char[] selector,
TypeBinding[] argumentTypes,
CompilationUnitScope refScope)
getExactMethod in class SourceTypeBinding
public FieldBinding getFieldBase(char[] fieldName,
boolean needResolve)
getFieldBase in class SourceTypeBindingpublic ReferenceBinding getMemberType(char[] typeName)
getMemberType in class SourceTypeBindingpublic MethodBinding[] getMethodsBase(char[] selector)
getMethodsBase in class SourceTypeBinding
public MethodBinding[] getMethodsBase(char[] selector,
int suggestedParameterLength)
public boolean hasMemberTypes()
hasMemberTypes in class SourceTypeBindingpublic TypeVariableBinding getTypeVariable(char[] variableName)
getTypeVariable in class ReferenceBindingpublic boolean hasTypeBit(int bit)
TypeBindingTypeIds.BitAutoCloseable.
hasTypeBit in class SourceTypeBindingpublic boolean isEquivalentTo(TypeBinding otherType)
isEquivalentTo in class SourceTypeBindingpublic boolean isGenericType()
isGenericType in class SourceTypeBindingpublic boolean isHierarchyConnected()
ReferenceBinding
isHierarchyConnected in class SourceTypeBindingpublic boolean isRepeatableAnnotationType()
TypeBinding
isRepeatableAnnotationType in class SourceTypeBindingpublic int kind()
kind in class SourceTypeBindingpublic ReferenceBinding[] memberTypes()
memberTypes in class SourceTypeBindingpublic MethodBinding[] methodsBase()
methodsBase in class SourceTypeBindingpublic TypeBinding prototype()
TypeBindingSourceTypeBinding,
BinaryTypeBinding and UnresolvedReferenceBinding do so as of now. In fact some types e.g ParameterizedTypeBinding
should not do so. Deflecting a query to a prototype would lead to wrong results in the case of ParameterizedTypeBinding
prototype in class SourceTypeBindingpublic boolean isPrototype()
isPrototype in class SourceTypeBindingpublic ReferenceBinding containerAnnotationType()
containerAnnotationType in class SourceTypeBindingpublic FieldBinding resolveTypeFor(FieldBinding field)
resolveTypeFor in class SourceTypeBindingpublic MethodBinding resolveTypesFor(MethodBinding method)
resolveTypesFor in class SourceTypeBindingpublic void setContainerAnnotationType(ReferenceBinding value)
setContainerAnnotationType in class SourceTypeBindingpublic void tagAsHavingDefectiveContainerType()
tagAsHavingDefectiveContainerType in class SourceTypeBindingpublic void initializeDeprecatedAnnotationTagBits()
Binding
initializeDeprecatedAnnotationTagBits in class SourceTypeBindingBinding.initializeDeprecatedAnnotationTagBits()public ReferenceBinding superclass()
superclass in class SourceTypeBindingpublic ReferenceBinding[] superInterfaces()
superInterfaces in class SourceTypeBindingpublic TypeVariableBinding[] typeVariables()
typeVariables in class SourceTypeBindingpublic java.lang.String toString()
toString in class SourceTypeBindingpublic TypeBinding unannotated(boolean removeOnlyNullAnnotations)
TypeBinding
unannotated in class SourceTypeBindingremoveOnlyNullAnnotations - if true only null type annotations are removed, otherwise all type annotations.public FieldBinding[] unResolvedFields()
unResolvedFields in class SourceTypeBindingpublic MethodBinding[] methods()
methods in class SourceTypeBinding
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||