org.eclipse.jdt.internal.compiler.lookup
类 SourceTypeBinding
java.lang.Object
org.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.SourceTypeBinding
- 直接已知子类:
- NestedTypeBinding
public class SourceTypeBinding
- extends ReferenceBinding
| 从类 org.eclipse.jdt.internal.compiler.lookup.TypeBinding 继承的字段 |
BOOLEAN, BYTE, CHAR, DOUBLE, FLOAT, id, INT, LONG, NULL, SHORT, tagBits, VOID |
| 从类 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 |
|
方法摘要 |
SyntheticMethodBinding |
addSyntheticBridgeMethod(MethodBinding inheritedMethodToBridge)
|
SyntheticMethodBinding |
addSyntheticBridgeMethod(MethodBinding inheritedMethodToBridge,
MethodBinding targetMethod)
|
SyntheticMethodBinding |
addSyntheticEnumMethod(char[] selector)
|
FieldBinding |
addSyntheticFieldForAssert(BlockScope blockScope)
|
FieldBinding |
addSyntheticFieldForClassLiteral(TypeBinding targetType,
BlockScope blockScope)
|
FieldBinding |
addSyntheticFieldForEnumValues()
|
FieldBinding |
addSyntheticFieldForInnerclass(LocalVariableBinding actualOuterLocalVariable)
|
FieldBinding |
addSyntheticFieldForInnerclass(ReferenceBinding enclosingType)
|
SyntheticFieldBinding |
addSyntheticFieldForSwitchEnum(char[] fieldName,
String key)
|
SyntheticMethodBinding |
addSyntheticMethod(FieldBinding targetField,
boolean isReadAccess,
boolean isSuperAccess)
|
SyntheticMethodBinding |
addSyntheticMethod(MethodBinding targetMethod,
boolean isSuperAccess)
|
SyntheticMethodBinding |
addSyntheticMethodForEnumInitialization(int begin,
int end)
|
SyntheticMethodBinding |
addSyntheticMethodForSwitchEnum(TypeBinding enumBinding)
|
char[] |
computeUniqueKey(boolean isLeaf)
p.X {} -> Lp/X; |
FieldBinding[] |
fields()
|
char[] |
genericSignature()
superclass superinterface1 ... superinterfaceN
;U:Ljava/lang/Object;V::Ljava/lang/Runnable;:Ljava/lang/Cloneable;:Ljava/util/Map;>Ljava/lang/Exception;Ljava/lang/Runnable; |
char[] |
genericTypeSignature()
Answer the receiver classfile signature. |
long |
getAnnotationTagBits()
Compute the tagbits for standard annotations. |
MethodBinding[] |
getDefaultAbstractMethods()
|
MethodBinding |
getExactConstructor(TypeBinding[] argumentTypes)
|
MethodBinding |
getExactMethod(char[] selector,
TypeBinding[] argumentTypes,
CompilationUnitScope refScope)
|
FieldBinding |
getField(char[] fieldName,
boolean needResolve)
|
MethodBinding[] |
getMethods(char[] selector)
|
SyntheticMethodBinding |
getSyntheticBridgeMethod(MethodBinding inheritedMethodToBridge)
|
FieldBinding |
getSyntheticField(LocalVariableBinding actualOuterLocalVariable)
|
FieldBinding |
getSyntheticField(ReferenceBinding targetEnclosingType,
boolean onlyExactMatch)
|
boolean |
hasMemberTypes()
|
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 |
int |
kind()
|
ReferenceBinding[] |
memberTypes()
|
MethodBinding[] |
methods()
|
FieldBinding |
resolveTypeFor(FieldBinding field)
|
MethodBinding |
resolveTypesFor(MethodBinding method)
|
AnnotationHolder |
retrieveAnnotationHolder(Binding binding,
boolean forceInitialization)
|
void |
setFields(FieldBinding[] fields)
|
void |
setMethods(MethodBinding[] methods)
|
int |
sourceEnd()
|
int |
sourceStart()
|
ReferenceBinding |
superclass()
|
ReferenceBinding[] |
superInterfaces()
|
FieldBinding[] |
syntheticFields()
Answer the collection of synthetic fields to append into the classfile |
SyntheticMethodBinding[] |
syntheticMethods()
|
void |
tagIndirectlyAccessibleMembers()
|
String |
toString()
|
TypeVariableBinding[] |
typeVariables()
|
FieldBinding[] |
unResolvedFields()
|
| 从类 org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding 继承的方法 |
availableFields, availableMethods, binarySearch, binarySearch, canBeInstantiated, canBeSeenBy, canBeSeenBy, canBeSeenBy, computeGenericTypeSignature, computeId, constantPoolName, debugName, depth, detectAnnotationCycle, enclosingTypeAt, enumConstantCount, fieldCount, getAccessFlags, getAnnotations, getEnclosingInstancesSlotSize, getFileName, getMemberType, getMethods, getOuterLocalVariablesSlotSize, getPackage, getTypeVariable, hashCode, hasIncompatibleSuperType, hasRestrictedAccess, implementsInterface, isAbstract, isAnnotationType, isBinaryBinding, isClass, isCompatibleWith, isDefault, isDeprecated, isEnum, isFinal, isHierarchyBeingActivelyConnected, isHierarchyBeingConnected, isInterface, isOrEnclosedByPrivateType, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSuperclassOf, isThrowable, isUncheckedException, isUsed, isViewedAsDeprecated, outermostEnclosingType, qualifiedSourceName, readableName, setAnnotations, shortReadableName, signature, sortFields, sortMethods, sourceName, syntheticEnclosingInstanceTypes, syntheticOuterLocalVariables |
| 从类 org.eclipse.jdt.internal.compiler.lookup.TypeBinding 继承的方法 |
capture, closestMatch, collectMissingTypes, collectSubstitutes, dimensions, enclosingType, erasure, findSuperTypeOriginatingFrom, findSuperTypeOriginatingFrom, genericCast, getErasureCompatibleType, isAnonymousType, isArrayType, isBaseType, isBoundParameterizedType, isCapture, isHierarchyInconsistent, isIntersectionType, isLocalType, isMemberType, isNestedType, isNumericType, isParameterizedType, isParameterizedTypeWithActualArguments, isParameterizedWithOwnVariables, isProvablyDistinct, isRawType, isReifiable, isTypeArgumentContainedBy, isTypeVariable, isUnboundWildcard, isWildcard, leafComponentType, needsUncheckedConversion, original, qualifiedPackageName, swapUnresolved, wellKnownType |
superclass
public ReferenceBinding superclass
superInterfaces
public ReferenceBinding[] superInterfaces
memberTypes
public ReferenceBinding[] memberTypes
typeVariables
public TypeVariableBinding[] typeVariables
scope
public ClassScope scope
SourceTypeBinding
public SourceTypeBinding(char[][] compoundName,
PackageBinding fPackage,
ClassScope scope)
addSyntheticFieldForInnerclass
public FieldBinding addSyntheticFieldForInnerclass(LocalVariableBinding actualOuterLocalVariable)
addSyntheticFieldForInnerclass
public FieldBinding addSyntheticFieldForInnerclass(ReferenceBinding enclosingType)
addSyntheticFieldForClassLiteral
public FieldBinding addSyntheticFieldForClassLiteral(TypeBinding targetType,
BlockScope blockScope)
addSyntheticFieldForAssert
public FieldBinding addSyntheticFieldForAssert(BlockScope blockScope)
addSyntheticFieldForEnumValues
public FieldBinding addSyntheticFieldForEnumValues()
addSyntheticMethod
public SyntheticMethodBinding addSyntheticMethod(FieldBinding targetField,
boolean isReadAccess,
boolean isSuperAccess)
addSyntheticEnumMethod
public SyntheticMethodBinding addSyntheticEnumMethod(char[] selector)
addSyntheticFieldForSwitchEnum
public SyntheticFieldBinding addSyntheticFieldForSwitchEnum(char[] fieldName,
String key)
addSyntheticMethodForSwitchEnum
public SyntheticMethodBinding addSyntheticMethodForSwitchEnum(TypeBinding enumBinding)
addSyntheticMethodForEnumInitialization
public SyntheticMethodBinding addSyntheticMethodForEnumInitialization(int begin,
int end)
addSyntheticMethod
public SyntheticMethodBinding addSyntheticMethod(MethodBinding targetMethod,
boolean isSuperAccess)
addSyntheticBridgeMethod
public SyntheticMethodBinding addSyntheticBridgeMethod(MethodBinding inheritedMethodToBridge,
MethodBinding targetMethod)
addSyntheticBridgeMethod
public SyntheticMethodBinding addSyntheticBridgeMethod(MethodBinding inheritedMethodToBridge)
kind
public int kind()
- 覆盖:
- 类
TypeBinding 中的 kind
computeUniqueKey
public char[] computeUniqueKey(boolean isLeaf)
- 从类
ReferenceBinding 复制的描述
- p.X {} -> Lp/X;
- 覆盖:
- 类
ReferenceBinding 中的 computeUniqueKey
fields
public FieldBinding[] fields()
- 覆盖:
- 类
ReferenceBinding 中的 fields
genericTypeSignature
public char[] genericTypeSignature()
- 从类
TypeBinding 复制的描述
- Answer the receiver classfile signature.
Arrays & base types do not distinguish between signature() & constantPoolName().
NOTE: This method should only be used during/after code gen.
- 覆盖:
- 类
TypeBinding 中的 genericTypeSignature
- 另请参见:
TypeBinding.genericTypeSignature()
genericSignature
public char[] genericSignature()
- superclass superinterface1 ... superinterfaceN
;U:Ljava/lang/Object;V::Ljava/lang/Runnable;:Ljava/lang/Cloneable;:Ljava/util/Map;>Ljava/lang/Exception;Ljava/lang/Runnable;
getAnnotationTagBits
public long getAnnotationTagBits()
- Compute the tagbits for standard annotations. For source types, these could require
lazily resolving corresponding annotation nodes, in case of forward references.
- 覆盖:
- 类
ReferenceBinding 中的 getAnnotationTagBits
- 另请参见:
Binding.getAnnotationTagBits()
getDefaultAbstractMethods
public MethodBinding[] getDefaultAbstractMethods()
getExactConstructor
public MethodBinding getExactConstructor(TypeBinding[] argumentTypes)
- 覆盖:
- 类
ReferenceBinding 中的 getExactConstructor
getExactMethod
public MethodBinding getExactMethod(char[] selector,
TypeBinding[] argumentTypes,
CompilationUnitScope refScope)
- 覆盖:
- 类
ReferenceBinding 中的 getExactMethod
getField
public FieldBinding getField(char[] fieldName,
boolean needResolve)
- 覆盖:
- 类
ReferenceBinding 中的 getField
getMethods
public MethodBinding[] getMethods(char[] selector)
- 覆盖:
- 类
ReferenceBinding 中的 getMethods
getSyntheticField
public FieldBinding getSyntheticField(LocalVariableBinding actualOuterLocalVariable)
getSyntheticField
public FieldBinding getSyntheticField(ReferenceBinding targetEnclosingType,
boolean onlyExactMatch)
getSyntheticBridgeMethod
public SyntheticMethodBinding getSyntheticBridgeMethod(MethodBinding inheritedMethodToBridge)
initializeDeprecatedAnnotationTagBits
public void initializeDeprecatedAnnotationTagBits()
- 从类
Binding 复制的描述
- Compute the tag bits for @Deprecated annotations, avoiding resolving
entire annotation if not necessary.
- 覆盖:
- 类
Binding 中的 initializeDeprecatedAnnotationTagBits
- 另请参见:
Binding.initializeDeprecatedAnnotationTagBits()
isEquivalentTo
public 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.
- 覆盖:
- 类
TypeBinding 中的 isEquivalentTo
isGenericType
public boolean isGenericType()
- 覆盖:
- 类
TypeBinding 中的 isGenericType
isHierarchyConnected
public boolean isHierarchyConnected()
- 从类
ReferenceBinding 复制的描述
- Returns true if the type hierarchy is connected
- 覆盖:
- 类
ReferenceBinding 中的 isHierarchyConnected
memberTypes
public ReferenceBinding[] memberTypes()
- 覆盖:
- 类
ReferenceBinding 中的 memberTypes
hasMemberTypes
public boolean hasMemberTypes()
- 覆盖:
- 类
ReferenceBinding 中的 hasMemberTypes
methods
public MethodBinding[] methods()
- 覆盖:
- 类
ReferenceBinding 中的 methods
resolveTypeFor
public FieldBinding resolveTypeFor(FieldBinding field)
resolveTypesFor
public MethodBinding resolveTypesFor(MethodBinding method)
retrieveAnnotationHolder
public AnnotationHolder retrieveAnnotationHolder(Binding binding,
boolean forceInitialization)
- 覆盖:
- 类
ReferenceBinding 中的 retrieveAnnotationHolder
setFields
public void setFields(FieldBinding[] fields)
setMethods
public void setMethods(MethodBinding[] methods)
sourceEnd
public final int sourceEnd()
sourceStart
public final int sourceStart()
superclass
public ReferenceBinding superclass()
- 覆盖:
- 类
ReferenceBinding 中的 superclass
superInterfaces
public ReferenceBinding[] superInterfaces()
- 覆盖:
- 类
ReferenceBinding 中的 superInterfaces
syntheticMethods
public SyntheticMethodBinding[] syntheticMethods()
syntheticFields
public FieldBinding[] syntheticFields()
- Answer the collection of synthetic fields to append into the classfile
toString
public String toString()
- 覆盖:
- 类
Object 中的 toString
typeVariables
public TypeVariableBinding[] typeVariables()
- 覆盖:
- 类
TypeBinding 中的 typeVariables
unResolvedFields
public FieldBinding[] unResolvedFields()
- 覆盖:
- 类
ReferenceBinding 中的 unResolvedFields
tagIndirectlyAccessibleMembers
public void tagIndirectlyAccessibleMembers()
Copyright © 2013. All Rights Reserved.