Class PositionBasedTypeTarget

java.lang.Object
org.jboss.jandex.TypeTarget
org.jboss.jandex.PositionBasedTypeTarget
All Implemented Interfaces:
AnnotationTarget
Direct Known Subclasses:
ClassExtendsTypeTarget, MethodParameterTypeTarget, ThrowsTypeTarget, TypeParameterTypeTarget

public abstract class PositionBasedTypeTarget extends TypeTarget
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:
  • Field Details

    • position

      private short position
    • adjusted

      private boolean adjusted
  • Constructor Details

    • PositionBasedTypeTarget

      PositionBasedTypeTarget(AnnotationTarget enclosingTarget, int position)
    • PositionBasedTypeTarget

      PositionBasedTypeTarget(AnnotationTarget enclosingTarget, Type target, int position)
  • Method Details

    • adjustUp

      void adjustUp()
    • position

      public final int position()
      Returns a subclass specific position where the type is located.
      Returns:
      the position