Package org.jboss.jandex
Class RecordComponentInfoGenerator
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<RecordComponentInfo>
-
- org.jboss.jandex.RecordComponentInfoGenerator
-
- All Implemented Interfaces:
java.lang.Iterable<RecordComponentInfo>
,java.util.Collection<RecordComponentInfo>
,java.util.List<RecordComponentInfo>
class RecordComponentInfoGenerator extends java.util.AbstractList<RecordComponentInfo>
A list which wraps RecordComponentInternal objects with a RecordComponentInfo, so that the declaring class' reference can be set. This lazy construction is used to conserve memory usage.
-
-
Field Summary
Fields Modifier and Type Field Description private ClassInfo
clazz
private byte[]
positions
private RecordComponentInternal[]
recordComponents
-
Constructor Summary
Constructors Constructor Description RecordComponentInfoGenerator(ClassInfo clazz, RecordComponentInternal[] recordComponents, byte[] positions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecordComponentInfo
get(int i)
int
size()
-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Field Detail
-
recordComponents
private final RecordComponentInternal[] recordComponents
-
clazz
private final ClassInfo clazz
-
positions
private final byte[] positions
-
-
Constructor Detail
-
RecordComponentInfoGenerator
public RecordComponentInfoGenerator(ClassInfo clazz, RecordComponentInternal[] recordComponents, byte[] positions)
-
-
Method Detail
-
get
public RecordComponentInfo get(int i)
- Specified by:
get
in interfacejava.util.List<RecordComponentInfo>
- Specified by:
get
in classjava.util.AbstractList<RecordComponentInfo>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<RecordComponentInfo>
- Specified by:
size
in interfacejava.util.List<RecordComponentInfo>
- Specified by:
size
in classjava.util.AbstractCollection<RecordComponentInfo>
-
-