public class NameEnvironmentAnswer
extends java.lang.Object
| Constructor and Description |
|---|
NameEnvironmentAnswer(IBinaryType binaryType,
AccessRestriction accessRestriction) |
NameEnvironmentAnswer(ICompilationUnit compilationUnit,
AccessRestriction accessRestriction) |
NameEnvironmentAnswer(ISourceType[] sourceTypes,
AccessRestriction accessRestriction,
java.lang.String externalAnnotationPath) |
| 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() |
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 |
isSourceType()
Answer whether the receiver contains the unresolved source form of the type.
|
void |
setBinaryType(IBinaryType newType) |
java.lang.String |
toString() |
public NameEnvironmentAnswer(IBinaryType binaryType, AccessRestriction accessRestriction)
public NameEnvironmentAnswer(ICompilationUnit compilationUnit, AccessRestriction accessRestriction)
public NameEnvironmentAnswer(ISourceType[] sourceTypes, AccessRestriction accessRestriction, java.lang.String externalAnnotationPath)
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 boolean isBinaryType()
public boolean isCompilationUnit()
public boolean isSourceType()
public boolean ignoreIfBetter()
public boolean isBetter(NameEnvironmentAnswer otherAnswer)