public class NameEnvironmentAnswer
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
ModuleBinding |
moduleBinding |
| Constructor and Description |
|---|
NameEnvironmentAnswer(IBinaryType binaryType,
AccessRestriction accessRestriction) |
NameEnvironmentAnswer(IBinaryType binaryType,
AccessRestriction accessRestriction,
char[] module) |
NameEnvironmentAnswer(ICompilationUnit compilationUnit,
AccessRestriction accessRestriction) |
NameEnvironmentAnswer(ICompilationUnit compilationUnit,
AccessRestriction accessRestriction,
char[] module) |
NameEnvironmentAnswer(ISourceType[] sourceTypes,
AccessRestriction accessRestriction,
java.lang.String externalAnnotationPath,
char[] module) |
NameEnvironmentAnswer(ReferenceBinding binding,
ModuleBinding module) |
| Modifier and Type | Method and Description |
|---|---|
AccessRestriction |
getAccessRestriction()
Returns the associated access restriction, or null if none.
|
IBinaryType |
getBinaryType()
Answer the resolved binary form for the type or null if the receiver represents a compilation unit or source
type.
|
ICompilationUnit |
getCompilationUnit()
Answer the compilation unit or null if the
receiver represents a binary or source type.
|
java.lang.String |
getExternalAnnotationPath() |
ReferenceBinding |
getResolvedBinding()
Answer the resolved compiler binding that was late found during askForName().
|
ISourceType[] |
getSourceTypes()
Answer the unresolved source forms for the type or null if the
receiver represents a compilation unit or binary type.
|
boolean |
ignoreIfBetter() |
boolean |
isBetter(NameEnvironmentAnswer otherAnswer) |
boolean |
isBinaryType()
Answer whether the receiver contains the resolved binary form of the type.
|
boolean |
isCompilationUnit()
Answer whether the receiver contains the compilation unit which defines the type.
|
boolean |
isResolvedBinding()
Answer whether the receiver contains the resolved compiler binding of the type.
|
boolean |
isSourceType()
Answer whether the receiver contains the unresolved source form of the type.
|
char[] |
moduleName()
Name of the module to which the CU in this answer is associated.
|
void |
setBinaryType(IBinaryType newType) |
java.lang.String |
toString() |
public ModuleBinding moduleBinding
public NameEnvironmentAnswer(IBinaryType binaryType, AccessRestriction accessRestriction)
public NameEnvironmentAnswer(IBinaryType binaryType, AccessRestriction accessRestriction, char[] module)
public NameEnvironmentAnswer(ICompilationUnit compilationUnit, AccessRestriction accessRestriction)
public NameEnvironmentAnswer(ICompilationUnit compilationUnit, AccessRestriction accessRestriction, char[] module)
public NameEnvironmentAnswer(ISourceType[] sourceTypes, AccessRestriction accessRestriction, java.lang.String externalAnnotationPath, char[] module)
public NameEnvironmentAnswer(ReferenceBinding binding, ModuleBinding module)
public java.lang.String toString()
toString in class java.lang.Objectpublic AccessRestriction getAccessRestriction()
public void setBinaryType(IBinaryType newType)
public IBinaryType getBinaryType()
public ICompilationUnit getCompilationUnit()
public java.lang.String getExternalAnnotationPath()
public ISourceType[] getSourceTypes()
public ReferenceBinding getResolvedBinding()
public boolean isBinaryType()
public boolean isCompilationUnit()
public boolean isSourceType()
public boolean isResolvedBinding()
public boolean ignoreIfBetter()
public char[] moduleName()
null when associated to the unnamed module.nullpublic boolean isBetter(NameEnvironmentAnswer otherAnswer)