public static class MethodList.ForLoadedMethods extends MethodList.AbstractBase<MethodDescription.InDefinedShape>
MethodList.AbstractBase<S extends MethodDescription>, MethodList.Empty<S extends MethodDescription>, MethodList.Explicit<S extends MethodDescription>, MethodList.ForLoadedMethods, MethodList.ForTokens, MethodList.TypeSubstituting
Modifier and Type | Field and Description |
---|---|
private java.util.List<? extends java.lang.reflect.Constructor<?>> |
constructors
The loaded constructors that are represented by this method list.
|
private java.util.List<? extends java.lang.reflect.Method> |
methods
The loaded methods that are represented by this method list.
|
Constructor and Description |
---|
ForLoadedMethods(java.lang.Class<?> type)
Creates a new list for a loaded type.
|
ForLoadedMethods(java.lang.reflect.Constructor<?>[] constructor,
java.lang.reflect.Method[] method)
Creates a method list that represents the given constructors and methods in their given order.
|
ForLoadedMethods(java.util.List<? extends java.lang.reflect.Constructor<?>> constructors,
java.util.List<? extends java.lang.reflect.Method> methods)
Creates a method list that represents the given constructors and methods in their given order.
|
Modifier and Type | Method and Description |
---|---|
MethodDescription.InDefinedShape |
get(int index) |
int |
size() |
asDefined, asTokenList, wrap
filter, getOnly, subList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
filter, getOnly, subList
private final java.util.List<? extends java.lang.reflect.Method> methods
private final java.util.List<? extends java.lang.reflect.Constructor<?>> constructors
public ForLoadedMethods(java.lang.Class<?> type)
type
- The type to be represented by this method list.public ForLoadedMethods(java.lang.reflect.Constructor<?>[] constructor, java.lang.reflect.Method[] method)
constructor
- The constructors to be represented by the method list.method
- The methods to be represented by the method list.public ForLoadedMethods(java.util.List<? extends java.lang.reflect.Constructor<?>> constructors, java.util.List<? extends java.lang.reflect.Method> methods)
constructors
- The constructors to be represented by the method list.methods
- The methods to be represented by the method list.public MethodDescription.InDefinedShape get(int index)
get
in interface java.util.List<MethodDescription.InDefinedShape>
get
in class java.util.AbstractList<MethodDescription.InDefinedShape>
public int size()
size
in interface java.util.Collection<MethodDescription.InDefinedShape>
size
in interface java.util.List<MethodDescription.InDefinedShape>
size
in class java.util.AbstractCollection<MethodDescription.InDefinedShape>