Klasse ExternalAnnotationProvider.TypeParametersAnnotationWalker
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.ExternalAnnotationProvider.TypeParametersAnnotationWalker
- Alle implementierten Schnittstellen:
ITypeAnnotationWalker
- Umschließende Klasse:
ExternalAnnotationProvider
Walker that may serve the annotations on type parameters of the current class or method.
-
Feldübersicht
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.internal.compiler.env.ITypeAnnotationWalker
EMPTY_ANNOTATION_WALKER, NO_ANNOTATIONS
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetAnnotationsAtCursor
(int currentTypeId, boolean mayApplyArrayContentsDefaultNullness) Retrieve the type annotations at the current position reached by invocations of toXYZ() methods.toField()
Walk to a field.toMethodParameter
(short index) Walk to the index'th visible formal method parameter (i.e., not counting synthetic args).Walk to the return type of a method.Descend down one level of array dimensions.Descend down one level of type nesting.Walk to the receiver type of a method.toSupertype
(short index, char[] superTypeSignature) Walk to the specified supertype either index based or name based:toThrows
(int index) Walk to the throws type at the given index.toTypeArgument
(int rank) Walk to the type argument of the given rank.toTypeBound
(short boundIndex) Detail ofITypeAnnotationWalker.toTypeParameterBounds(boolean, int)
: walk to the bounds of the previously selected type parameter.toTypeParameter
(boolean isClassTypeParameter, int rank) Walk to the type parameter of the given rank.toTypeParameterBounds
(boolean isClassTypeParameter, int parameterRank) Walk to the bounds of a type parameter of either a class or a method (signaled by isClassTypeParameter).Walk to the bound of a wildcard.
-
Methodendetails
-
toTypeParameter
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Walk to the type parameter of the given rank.- Angegeben von:
toTypeParameter
in SchnittstelleITypeAnnotationWalker
- Parameter:
isClassTypeParameter
- whether we are looking for a class type parameter (else: method type parameter)rank
- rank of the type parameter
-
toTypeParameterBounds
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Walk to the bounds of a type parameter of either a class or a method (signaled by isClassTypeParameter). Clients must then callITypeAnnotationWalker.toTypeBound(short)
on the resulting walker.- Angegeben von:
toTypeParameterBounds
in SchnittstelleITypeAnnotationWalker
- Parameter:
isClassTypeParameter
- whether we are looking at a class type parameter (else: method type parameter)parameterRank
- rank of the type parameter.
-
toTypeBound
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Detail ofITypeAnnotationWalker.toTypeParameterBounds(boolean, int)
: walk to the bounds of the previously selected type parameter.- Angegeben von:
toTypeBound
in SchnittstelleITypeAnnotationWalker
- Parameter:
boundIndex
-
-
toField
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Walk to a field. -
toMethodReturn
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Walk to the return type of a method. -
toMethodParameter
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Walk to the index'th visible formal method parameter (i.e., not counting synthetic args). -
toThrows
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Walk to the throws type at the given index. -
getAnnotationsAtCursor
public IBinaryAnnotation[] getAnnotationsAtCursor(int currentTypeId, boolean mayApplyArrayContentsDefaultNullness) Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Retrieve the type annotations at the current position reached by invocations of toXYZ() methods.- Angegeben von:
getAnnotationsAtCursor
in SchnittstelleITypeAnnotationWalker
- Parameter:
currentTypeId
- the id of the type being annotated; 0 signals don't care / unknown; -1 signals if annotating a wildcard or a use of a type variable.
-
toReceiver
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Walk to the receiver type of a method. Note: Type annotations on receiver are not currently used by the compiler.- Angegeben von:
toReceiver
in SchnittstelleITypeAnnotationWalker
-
toSupertype
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Walk to the specified supertype either index based or name based:- Angegeben von:
toSupertype
in SchnittstelleITypeAnnotationWalker
- Parameter:
index
- -1 is superclass, else index into the list of superinterfacessuperTypeSignature
- name and type arguments of the super type to visit
-
toTypeArgument
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Walk to the type argument of the given rank.- Angegeben von:
toTypeArgument
in SchnittstelleITypeAnnotationWalker
-
toWildcardBound
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Walk to the bound of a wildcard.- Angegeben von:
toWildcardBound
in SchnittstelleITypeAnnotationWalker
-
toNextArrayDimension
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Descend down one level of array dimensions.- Angegeben von:
toNextArrayDimension
in SchnittstelleITypeAnnotationWalker
-
toNextNestedType
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Descend down one level of type nesting.- Angegeben von:
toNextNestedType
in SchnittstelleITypeAnnotationWalker
-