public abstract class AnnotationElement extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AnnotationElement.Annotation |
static class |
AnnotationElement.AnnotationTarget
Where 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 |
static class |
AnnotationElement.Literal
A String, Character, Boolean or a Number.
|
static class |
AnnotationElement.Value |
static class |
AnnotationElement.Visitor |
Modifier and Type | Field and Description |
---|---|
long |
position
Text position, encoded in the form of a
long . |
static long |
UNKNOWN_POSITION |
Modifier | Constructor and Description |
---|---|
protected |
AnnotationElement(long position) |
Modifier and Type | Method and 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) |
public static final long UNKNOWN_POSITION
public final long position
long
. Upper half is the line number, lower half is the column.public static int line(long pos)
public static int column(long pos)
public static long makePosition(int line, int column)
public static String positionToString(long pos)
public void acceptVisitor(AnnotationElement.Visitor visitor)
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.