Klasse NonNullDefaultAwareTypeAnnotationWalker
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.TypeAnnotationWalker
org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.NonNullDefaultAwareTypeAnnotationWalker
- Alle implementierten Schnittstellen:
ITypeAnnotationWalker
A type annotation walker that adds missing NonNull annotations according to the current default.
-
Feldübersicht
Von Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.TypeAnnotationWalker
matches, pathPtr, typeAnnotations
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.internal.compiler.env.ITypeAnnotationWalker
EMPTY_ANNOTATION_WALKER, NO_ANNOTATIONS
-
Konstruktorübersicht
KonstruktorBeschreibungNonNullDefaultAwareTypeAnnotationWalker
(int defaultNullness, LookupEnvironment environment) Create an initial walker without 'real' type annotations, but with a nonnull default.NonNullDefaultAwareTypeAnnotationWalker
(IBinaryTypeAnnotation[] typeAnnotations, int defaultNullness, LookupEnvironment environment) Create initial walker with non-empty type annotations. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetAnnotationsAtCursor
(int currentTypeId, boolean mayApplyArrayContentsDefaultNullness) Retrieve the type annotations at the current position reached by invocations of toXYZ() methods.protected TypeAnnotationWalker
restrict
(long newMatches, int newPathPtr) 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.protected ITypeAnnotationWalker
toNextDetail
(int detailKind) toSupertype
(short index, char[] superTypeSignature) Walk to the specified supertype either index based or name based: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.static ITypeAnnotationWalker
updateWalkerForParamNonNullDefault
(ITypeAnnotationWalker walker, int defaultNullness, LookupEnvironment environment) Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.compiler.classfmt.TypeAnnotationWalker
toNextNestedType, toReceiver, toTarget, toThrows
-
Konstruktordetails
-
NonNullDefaultAwareTypeAnnotationWalker
public NonNullDefaultAwareTypeAnnotationWalker(IBinaryTypeAnnotation[] typeAnnotations, int defaultNullness, LookupEnvironment environment) Create initial walker with non-empty type annotations. -
NonNullDefaultAwareTypeAnnotationWalker
Create an initial walker without 'real' type annotations, but with a nonnull default.
-
-
Methodendetails
-
restrict
- Setzt außer Kraft:
restrict
in KlasseTypeAnnotationWalker
-
toSupertype
Beschreibung aus Klasse kopiert:TypeAnnotationWalker
Walk to the specified supertype either index based or name based:(superTypesSignature is ignored in this implementation).
- Angegeben von:
toSupertype
in SchnittstelleITypeAnnotationWalker
- Setzt außer Kraft:
toSupertype
in KlasseTypeAnnotationWalker
- Parameter:
index
- -1 is superclass, else index into the list of superinterfacessuperTypeSignature
- name and type arguments of the super type to visit
-
toMethodParameter
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Walk to the index'th visible formal method parameter (i.e., not counting synthetic args).- Angegeben von:
toMethodParameter
in SchnittstelleITypeAnnotationWalker
- Setzt außer Kraft:
toMethodParameter
in KlasseTypeAnnotationWalker
-
toField
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Walk to a field.- Angegeben von:
toField
in SchnittstelleITypeAnnotationWalker
- Setzt außer Kraft:
toField
in KlasseTypeAnnotationWalker
-
toMethodReturn
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Walk to the return type of a method.- Angegeben von:
toMethodReturn
in SchnittstelleITypeAnnotationWalker
- Setzt außer Kraft:
toMethodReturn
in KlasseTypeAnnotationWalker
-
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
- Setzt außer Kraft:
toTypeBound
in KlasseTypeAnnotationWalker
- Parameter:
boundIndex
-
-
toWildcardBound
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Walk to the bound of a wildcard.- Angegeben von:
toWildcardBound
in SchnittstelleITypeAnnotationWalker
- Setzt außer Kraft:
toWildcardBound
in KlasseTypeAnnotationWalker
-
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
- Setzt außer Kraft:
toTypeParameterBounds
in KlasseTypeAnnotationWalker
- Parameter:
isClassTypeParameter
- whether we are looking at a class type parameter (else: method type parameter)parameterRank
- rank of the type parameter.
-
toTypeArgument
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Walk to the type argument of the given rank.- Angegeben von:
toTypeArgument
in SchnittstelleITypeAnnotationWalker
- Setzt außer Kraft:
toTypeArgument
in KlasseTypeAnnotationWalker
-
toTypeParameter
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Walk to the type parameter of the given rank.- Angegeben von:
toTypeParameter
in SchnittstelleITypeAnnotationWalker
- Setzt außer Kraft:
toTypeParameter
in KlasseTypeAnnotationWalker
- Parameter:
isClassTypeParameter
- whether we are looking for a class type parameter (else: method type parameter)rank
- rank of the type parameter
-
toNextDetail
- Setzt außer Kraft:
toNextDetail
in KlasseTypeAnnotationWalker
-
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
- Setzt außer Kraft:
getAnnotationsAtCursor
in KlasseTypeAnnotationWalker
- 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.
-
toNextArrayDimension
Beschreibung aus Schnittstelle kopiert:ITypeAnnotationWalker
Descend down one level of array dimensions.- Angegeben von:
toNextArrayDimension
in SchnittstelleITypeAnnotationWalker
- Setzt außer Kraft:
toNextArrayDimension
in KlasseTypeAnnotationWalker
-
updateWalkerForParamNonNullDefault
public static ITypeAnnotationWalker updateWalkerForParamNonNullDefault(ITypeAnnotationWalker walker, int defaultNullness, LookupEnvironment environment)
-