Package org.jboss.jandex
Class MethodInfoGenerator
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<MethodInfo>
-
- org.jboss.jandex.MethodInfoGenerator
-
- All Implemented Interfaces:
java.lang.Iterable<MethodInfo>
,java.util.Collection<MethodInfo>
,java.util.List<MethodInfo>
class MethodInfoGenerator extends java.util.AbstractList<MethodInfo>
A list which wraps MethodInternal objects with a MethodInfo, 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 MethodInternal[]
methods
private byte[]
positions
-
Constructor Summary
Constructors Constructor Description MethodInfoGenerator(ClassInfo clazz, MethodInternal[] methods, byte[] positions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodInfo
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
-
methods
private final MethodInternal[] methods
-
clazz
private final ClassInfo clazz
-
positions
private final byte[] positions
-
-
Constructor Detail
-
MethodInfoGenerator
public MethodInfoGenerator(ClassInfo clazz, MethodInternal[] methods, byte[] positions)
-
-
Method Detail
-
get
public MethodInfo get(int i)
- Specified by:
get
in interfacejava.util.List<MethodInfo>
- Specified by:
get
in classjava.util.AbstractList<MethodInfo>
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<MethodInfo>
- Specified by:
size
in interfacejava.util.List<MethodInfo>
- Specified by:
size
in classjava.util.AbstractCollection<MethodInfo>
-
-