Package org.jboss.jandex
Class FieldInternal
- java.lang.Object
-
- org.jboss.jandex.FieldInternal
-
final class FieldInternal extends java.lang.Object
The shared internal representation for FieldInfo objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
FieldInternal.NameComparator
-
Field Summary
Fields Modifier and Type Field Description private AnnotationInstance[]
annotations
(package private) static FieldInternal[]
EMPTY_ARRAY
private short
flags
private byte[]
name
(package private) static FieldInternal.NameComparator
NAME_COMPARATOR
private Type
type
-
Constructor Summary
Constructors Constructor Description FieldInternal(byte[] name, Type type, short flags)
FieldInternal(byte[] name, Type type, short flags, AnnotationInstance[] annotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) AnnotationInstance
annotation(DotName name)
(package private) AnnotationInstance[]
annotationArray()
(package private) java.util.List<AnnotationInstance>
annotations()
boolean
equals(java.lang.Object o)
(package private) short
flags()
(package private) boolean
hasAnnotation(DotName name)
int
hashCode()
(package private) java.lang.String
name()
(package private) byte[]
nameBytes()
(package private) void
setAnnotations(java.util.List<AnnotationInstance> annotations)
(package private) void
setType(Type type)
java.lang.String
toString()
java.lang.String
toString(ClassInfo clazz)
(package private) Type
type()
-
-
-
Field Detail
-
EMPTY_ARRAY
static final FieldInternal[] EMPTY_ARRAY
-
name
private final byte[] name
-
type
private Type type
-
flags
private final short flags
-
annotations
private AnnotationInstance[] annotations
-
NAME_COMPARATOR
static final FieldInternal.NameComparator NAME_COMPARATOR
-
-
Constructor Detail
-
FieldInternal
FieldInternal(byte[] name, Type type, short flags)
-
FieldInternal
FieldInternal(byte[] name, Type type, short flags, AnnotationInstance[] annotations)
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
name
final java.lang.String name()
-
nameBytes
final byte[] nameBytes()
-
type
final Type type()
-
annotations
final java.util.List<AnnotationInstance> annotations()
-
annotationArray
final AnnotationInstance[] annotationArray()
-
annotation
final AnnotationInstance annotation(DotName name)
-
hasAnnotation
final boolean hasAnnotation(DotName name)
-
flags
final short flags()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toString
public java.lang.String toString(ClassInfo clazz)
-
setType
void setType(Type type)
-
setAnnotations
void setAnnotations(java.util.List<AnnotationInstance> annotations)
-
-