Klasse NameEnvironmentAnswer
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer
-
Feldübersicht
-
Konstruktorübersicht
KonstruktorBeschreibungNameEnvironmentAnswer
(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, String externalAnnotationPath, char[] module) NameEnvironmentAnswer
(ReferenceBinding binding, ModuleBinding module) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the associated access restriction, or null if none.Answer the resolved binary form for the type or null if the receiver represents a compilation unit or source type.Answer the compilation unit or null if the receiver represents a binary or source type.Answer the resolved compiler binding that was late found during askForName().Answer the unresolved source forms for the type or null if the receiver represents a compilation unit or binary type.boolean
boolean
isBetter
(NameEnvironmentAnswer otherAnswer) boolean
Answer whether the receiver contains the resolved binary form of the type.boolean
Answer whether the receiver contains the compilation unit which defines the type.boolean
Answer whether the receiver contains the resolved compiler binding of the type.boolean
Answer whether the receiver contains the unresolved source form of the type.char[]
Name of the module to which the CU in this answer is associated.void
setBinaryType
(IBinaryType newType) toString()
-
Felddetails
-
moduleBinding
-
-
Konstruktordetails
-
NameEnvironmentAnswer
-
NameEnvironmentAnswer
public NameEnvironmentAnswer(IBinaryType binaryType, AccessRestriction accessRestriction, char[] module) -
NameEnvironmentAnswer
-
NameEnvironmentAnswer
public NameEnvironmentAnswer(ICompilationUnit compilationUnit, AccessRestriction accessRestriction, char[] module) -
NameEnvironmentAnswer
public NameEnvironmentAnswer(ISourceType[] sourceTypes, AccessRestriction accessRestriction, String externalAnnotationPath, char[] module) -
NameEnvironmentAnswer
-
-
Methodendetails
-
toString
-
getAccessRestriction
Returns the associated access restriction, or null if none. -
setBinaryType
-
getBinaryType
Answer the resolved binary form for the type or null if the receiver represents a compilation unit or source type. -
getCompilationUnit
Answer the compilation unit or null if the receiver represents a binary or source type. -
getExternalAnnotationPath
-
getSourceTypes
Answer the unresolved source forms for the type or null if the receiver represents a compilation unit or binary type. Multiple source forms can be answered in case the originating compilation unit did contain several type at once. Then the first type is guaranteed to be the requested type. -
getResolvedBinding
Answer the resolved compiler binding that was late found during askForName(). -
isBinaryType
public boolean isBinaryType()Answer whether the receiver contains the resolved binary form of the type. -
isCompilationUnit
public boolean isCompilationUnit()Answer whether the receiver contains the compilation unit which defines the type. -
isSourceType
public boolean isSourceType()Answer whether the receiver contains the unresolved source form of the type. -
isResolvedBinding
public boolean isResolvedBinding()Answer whether the receiver contains the resolved compiler binding of the type. -
ignoreIfBetter
public boolean ignoreIfBetter() -
moduleName
public char[] moduleName()Name of the module to which the CU in this answer is associated.null
when associated to the unnamed module.- Gibt zurück:
- module name or
null
-
isBetter
-