Class AnnotationElement
- java.lang.Object
-
- org.infinispan.protostream.descriptors.AnnotationElement
-
- Direct Known Subclasses:
AnnotationElement.Attribute,AnnotationElement.Value
public abstract class AnnotationElement extends Object
- Since:
- 2.0
- Author:
- anistor@redhat.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnnotationElement.Annotationstatic classAnnotationElement.AnnotationTargetOn what kind of descriptor can we place that annotation?static classAnnotationElement.Arraystatic classAnnotationElement.Attributestatic classAnnotationElement.AttributeTypeWhat type is the attribute?static classAnnotationElement.IdentifierAn identifier is a bit like a string literal but it does not have the quotation marks and it cannot contain white space.static classAnnotationElement.Literalstatic classAnnotationElement.Valuestatic classAnnotationElement.Visitor
-
Field Summary
Fields Modifier and Type Field Description longpositionText position, encoded in the form of along.static longUNKNOWN_POSITION
-
Constructor Summary
Constructors Modifier Constructor Description protectedAnnotationElement(long position)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacceptVisitor(AnnotationElement.Visitor visitor)static intcolumn(long pos)static intline(long pos)static longmakePosition(int line, int column)static StringpositionToString(long pos)
-
-
-
Field Detail
-
UNKNOWN_POSITION
public static final long UNKNOWN_POSITION
- See Also:
- Constant Field Values
-
position
public final long position
Text position, encoded in the form of along. Upper half is the line number, lower half is the column.
-
-
Method Detail
-
line
public static int line(long pos)
-
column
public static int column(long pos)
-
makePosition
public static long makePosition(int line, int column)
-
positionToString
public static String positionToString(long pos)
-
acceptVisitor
public void acceptVisitor(AnnotationElement.Visitor visitor)
-
-