Class PositionBasedTypeTarget
java.lang.Object
org.jboss.jandex.TypeTarget
org.jboss.jandex.PositionBasedTypeTarget
- All Implemented Interfaces:
AnnotationTarget
- Direct Known Subclasses:
ClassExtendsTypeTarget, MethodParameterTypeTarget, ThrowsTypeTarget, TypeParameterTypeTarget
A common parent for type targets which provide a position. Refer to the
subclass for information on the meaning of the position value.
- Since:
- 2.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class TypeTarget
TypeTarget.UsageNested classes/interfaces inherited from interface AnnotationTarget
AnnotationTarget.Kind -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPositionBasedTypeTarget(AnnotationTarget enclosingTarget, int position) PositionBasedTypeTarget(AnnotationTarget enclosingTarget, Type target, int position) -
Method Summary
Modifier and TypeMethodDescriptionfinal intposition()Returns a subclass specific position where the type is located.Methods inherited from class TypeTarget
annotation, annotations, annotations, annotationsWithRepeatable, asClass, asClassExtends, asDeclaration, asEmpty, asField, asMethod, asMethodParameter, asMethodParameterType, asRecordComponent, asThrows, asType, asTypeParameter, asTypeParameterBound, declaredAnnotation, declaredAnnotations, declaredAnnotationsWithRepeatable, enclosingTarget, hasAnnotation, hasDeclaredAnnotation, isDeclaration, kind, setTarget, target, usageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AnnotationTarget
annotation, annotation, annotations, annotations, annotationsWithRepeatable, annotationsWithRepeatable, declaredAnnotation, declaredAnnotation, declaredAnnotationsWithRepeatable, declaredAnnotationsWithRepeatable, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation
-
Field Details
-
position
private final short position
-
-
Constructor Details
-
PositionBasedTypeTarget
PositionBasedTypeTarget(AnnotationTarget enclosingTarget, int position) -
PositionBasedTypeTarget
PositionBasedTypeTarget(AnnotationTarget enclosingTarget, Type target, int position)
-
-
Method Details
-
position
public final int position()Returns a subclass specific position where the type is located.- Returns:
- the position
-