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:
- [email protected]
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnnotationElement.Annotation
static class
AnnotationElement.AnnotationTarget
On what kind of descriptor can we place that annotation?static class
AnnotationElement.Array
static class
AnnotationElement.Attribute
static class
AnnotationElement.AttributeType
What type is the attribute?static class
AnnotationElement.Identifier
An identifier is a bit like a string literal but it does not have the quotation marks and it cannot contain white space.static class
AnnotationElement.Literal
static class
AnnotationElement.Value
static class
AnnotationElement.Visitor
-
Field Summary
Fields Modifier and Type Field Description long
position
Text position, encoded in the form of along
.static long
UNKNOWN_POSITION
-
Constructor Summary
Constructors Modifier Constructor Description protected
AnnotationElement(long position)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptVisitor(AnnotationElement.Visitor visitor)
static int
column(long pos)
static int
line(long pos)
static long
makePosition(int line, int column)
static String
positionToString(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)
-
-