Package org.jboss.jandex
Class RecordComponentInternal
- java.lang.Object
-
- org.jboss.jandex.RecordComponentInternal
-
final class RecordComponentInternal extends java.lang.Object
The shared internal representation for RecordComponentInfo objects.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
RecordComponentInternal.NameComparator
-
Field Summary
Fields Modifier and Type Field Description private AnnotationInstance[]
annotations
(package private) static RecordComponentInternal[]
EMPTY_ARRAY
private byte[]
name
(package private) static RecordComponentInternal.NameComparator
NAME_COMPARATOR
private Type
type
-
Constructor Summary
Constructors Constructor Description RecordComponentInternal(byte[] name, Type type)
RecordComponentInternal(byte[] name, Type type, 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) boolean
hasAnnotation(DotName name)
int
hashCode()
(package private) boolean
internEquals(java.lang.Object o)
(package private) int
internHashCode()
(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 RecordComponentInternal[] EMPTY_ARRAY
-
name
private final byte[] name
-
type
private Type type
-
annotations
private AnnotationInstance[] annotations
-
NAME_COMPARATOR
static final RecordComponentInternal.NameComparator NAME_COMPARATOR
-
-
Constructor Detail
-
RecordComponentInternal
RecordComponentInternal(byte[] name, Type type)
-
RecordComponentInternal
RecordComponentInternal(byte[] name, Type type, 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
-
internEquals
boolean internEquals(java.lang.Object o)
-
internHashCode
int internHashCode()
-
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)
-
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)
-
-