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 ClassInfoclazzprivate MethodInternal[]methodsprivate 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 MethodInfoget(int i)intsize()-
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:
getin interfacejava.util.List<MethodInfo>- Specified by:
getin classjava.util.AbstractList<MethodInfo>
-
size
public int size()
- Specified by:
sizein interfacejava.util.Collection<MethodInfo>- Specified by:
sizein interfacejava.util.List<MethodInfo>- Specified by:
sizein classjava.util.AbstractCollection<MethodInfo>
-
-