Class AnnotationElement
java.lang.Object
org.infinispan.protostream.descriptors.AnnotationElement
- Direct Known Subclasses:
AnnotationElement.Attribute
,AnnotationElement.Value
- Since:
- 2.0
- Author:
- [email protected]
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static enum
On what kind of descriptor can we place that annotation?static final class
static final class
static enum
What type is the attribute?static final class
An identifier is a bit like a string literal but it does not have the quotation marks and it cannot contain white space.static final class
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionfinal long
Text position, encoded in the form of along
.static final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
UNKNOWN_POSITION
public static final long UNKNOWN_POSITION- See Also:
-
position
public final long positionText position, encoded in the form of along
. Upper half is the line number, lower half is the column.
-
-
Constructor Details
-
AnnotationElement
protected AnnotationElement(long position)
-
-
Method Details
-
line
public static int line(long pos) -
column
public static int column(long pos) -
makePosition
public static long makePosition(int line, int column) -
positionToString
-
acceptVisitor
-