|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.compiler.lookup.LookupEnvironment
public class LookupEnvironment
Fields inherited from interface org.eclipse.jdt.internal.compiler.lookup.ProblemReasons |
---|
Ambiguous, IllegalSuperTypeVariable, InheritedNameHidesEnclosingName, InternalNameProvided, InvalidTypeForStaticImport, NoError, NonStaticReferenceInConstructorInvocation, NonStaticReferenceInStaticContext, NotFound, NotVisible, ParameterBoundMismatch, ParameterizedMethodTypeMismatch, ReceiverTypeNotVisible, TypeArgumentsForRawGenericMethod, TypeParameterArityMismatch |
Constructor Summary | |
---|---|
LookupEnvironment(ITypeRequestor typeRequestor,
CompilerOptions globalOptions,
ProblemReporter problemReporter,
INameEnvironment nameEnvironment)
|
Method Summary | |
---|---|
ReferenceBinding |
askForType(char[][] compoundName)
Ask the name environment for a type which corresponds to the compoundName. |
void |
buildTypeBindings(CompilationUnitDeclaration unit,
AccessRestriction accessRestriction)
|
BinaryTypeBinding |
cacheBinaryType(IBinaryType binaryType,
AccessRestriction accessRestriction)
|
BinaryTypeBinding |
cacheBinaryType(IBinaryType binaryType,
boolean needFieldsAndMethods,
AccessRestriction accessRestriction)
|
void |
clearCachedTypeBindings()
Clears cached type bindings. |
void |
completeTypeBindings()
|
void |
completeTypeBindings(CompilationUnitDeclaration parsedUnit)
|
void |
completeTypeBindings(CompilationUnitDeclaration parsedUnit,
boolean buildFieldsAndMethods)
|
TypeBinding |
computeBoxingType(TypeBinding type)
|
TypeBinding |
convertEliminatingTypeVariables(TypeBinding originalType,
ReferenceBinding genericType,
int rank,
java.util.Set eliminatedVariables)
|
ReferenceBinding |
convertToParameterizedType(ReferenceBinding originalType)
Convert a given source type into a parameterized form if generic. |
TypeBinding |
convertToRawType(TypeBinding type,
boolean forceRawEnclosingType)
Returns the given binding's raw type binding. |
TypeBinding |
convertUnresolvedBinaryToRawType(TypeBinding type)
|
AnnotationBinding |
createAnnotation(ReferenceBinding annotationType,
ElementValuePair[] pairs)
|
ArrayBinding |
createArrayType(TypeBinding leafComponentType,
int dimensionCount)
|
BinaryTypeBinding |
createBinaryTypeFrom(IBinaryType binaryType,
PackageBinding packageBinding,
AccessRestriction accessRestriction)
|
BinaryTypeBinding |
createBinaryTypeFrom(IBinaryType binaryType,
PackageBinding packageBinding,
boolean needFieldsAndMethods,
AccessRestriction accessRestriction)
|
MissingTypeBinding |
createMissingType(PackageBinding packageBinding,
char[][] compoundName)
|
PackageBinding |
createPackage(char[][] compoundName)
|
ParameterizedGenericMethodBinding |
createParameterizedGenericMethod(MethodBinding genericMethod,
RawTypeBinding rawType)
|
ParameterizedGenericMethodBinding |
createParameterizedGenericMethod(MethodBinding genericMethod,
TypeBinding[] typeArguments)
|
ParameterizedTypeBinding |
createParameterizedType(ReferenceBinding genericType,
TypeBinding[] typeArguments,
ReferenceBinding enclosingType)
|
RawTypeBinding |
createRawType(ReferenceBinding genericType,
ReferenceBinding enclosingType)
|
WildcardBinding |
createWildcard(ReferenceBinding genericType,
int rank,
TypeBinding bound,
TypeBinding[] otherBounds,
int boundKind)
|
AccessRestriction |
getAccessRestriction(TypeBinding type)
Returns the access restriction associated to a given type, or null if none |
ReferenceBinding |
getCachedType(char[][] compoundName)
Answer the type for the compoundName if it exists in the cache. |
ReferenceBinding |
getResolvedType(char[][] compoundName,
Scope scope)
|
ReferenceBinding |
getType(char[][] compoundName)
|
TypeBinding |
getTypeFromTypeSignature(SignatureWrapper wrapper,
TypeVariableBinding[] staticVariables,
ReferenceBinding enclosingType,
char[][][] missingTypeNames)
|
MethodVerifier |
methodVerifier()
|
PackageBinding |
public_computePackageFrom(char[][] constantPoolName,
boolean isMissing)
|
void |
rebuildTypeBindings(CompilationUnitDeclaration unit)
Rebuilds type bindings of the given compilation unit to take into account of RAC-introduced fields, methods, and classes. |
void |
releaseClassFiles(ClassFile[] classFiles)
|
void |
reset()
|
void |
setAccessRestriction(ReferenceBinding type,
AccessRestriction accessRestriction)
Associate a given type with some access restriction (did not store the restriction directly into binding, since sparse information) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public PackageBinding defaultPackage
public INameEnvironment nameEnvironment
public CompilerOptions globalOptions
public ProblemReporter problemReporter
public ClassFilePool classFilePool
public ITypeRequestor typeRequestor
public CompilationUnitDeclaration unitBeingCompleted
public java.lang.Object missingClassFileLocation
Constructor Detail |
---|
public LookupEnvironment(ITypeRequestor typeRequestor, CompilerOptions globalOptions, ProblemReporter problemReporter, INameEnvironment nameEnvironment)
Method Detail |
---|
public ReferenceBinding askForType(char[][] compoundName)
public void buildTypeBindings(CompilationUnitDeclaration unit, AccessRestriction accessRestriction)
public BinaryTypeBinding cacheBinaryType(IBinaryType binaryType, AccessRestriction accessRestriction)
public BinaryTypeBinding cacheBinaryType(IBinaryType binaryType, boolean needFieldsAndMethods, AccessRestriction accessRestriction)
public void completeTypeBindings()
public void rebuildTypeBindings(CompilationUnitDeclaration unit)
public void clearCachedTypeBindings()
reset()
public void completeTypeBindings(CompilationUnitDeclaration parsedUnit)
public void completeTypeBindings(CompilationUnitDeclaration parsedUnit, boolean buildFieldsAndMethods)
public TypeBinding computeBoxingType(TypeBinding type)
public PackageBinding public_computePackageFrom(char[][] constantPoolName, boolean isMissing)
public TypeBinding convertEliminatingTypeVariables(TypeBinding originalType, ReferenceBinding genericType, int rank, java.util.Set eliminatedVariables)
public ReferenceBinding convertToParameterizedType(ReferenceBinding originalType)
public TypeBinding convertToRawType(TypeBinding type, boolean forceRawEnclosingType)
type
- the TypeBinding to raw convertforceRawEnclosingType
- forces recursive raw conversion of enclosing types (used in Javadoc references only)
public TypeBinding convertUnresolvedBinaryToRawType(TypeBinding type)
public AnnotationBinding createAnnotation(ReferenceBinding annotationType, ElementValuePair[] pairs)
public ArrayBinding createArrayType(TypeBinding leafComponentType, int dimensionCount)
public BinaryTypeBinding createBinaryTypeFrom(IBinaryType binaryType, PackageBinding packageBinding, AccessRestriction accessRestriction)
public BinaryTypeBinding createBinaryTypeFrom(IBinaryType binaryType, PackageBinding packageBinding, boolean needFieldsAndMethods, AccessRestriction accessRestriction)
public MissingTypeBinding createMissingType(PackageBinding packageBinding, char[][] compoundName)
public PackageBinding createPackage(char[][] compoundName)
public ParameterizedGenericMethodBinding createParameterizedGenericMethod(MethodBinding genericMethod, RawTypeBinding rawType)
public ParameterizedGenericMethodBinding createParameterizedGenericMethod(MethodBinding genericMethod, TypeBinding[] typeArguments)
public ParameterizedTypeBinding createParameterizedType(ReferenceBinding genericType, TypeBinding[] typeArguments, ReferenceBinding enclosingType)
public RawTypeBinding createRawType(ReferenceBinding genericType, ReferenceBinding enclosingType)
public WildcardBinding createWildcard(ReferenceBinding genericType, int rank, TypeBinding bound, TypeBinding[] otherBounds, int boundKind)
public AccessRestriction getAccessRestriction(TypeBinding type)
public ReferenceBinding getCachedType(char[][] compoundName)
public ReferenceBinding getResolvedType(char[][] compoundName, Scope scope)
public ReferenceBinding getType(char[][] compoundName)
public TypeBinding getTypeFromTypeSignature(SignatureWrapper wrapper, TypeVariableBinding[] staticVariables, ReferenceBinding enclosingType, char[][][] missingTypeNames)
public MethodVerifier methodVerifier()
public void releaseClassFiles(ClassFile[] classFiles)
public void reset()
public void setAccessRestriction(ReferenceBinding type, AccessRestriction accessRestriction)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |