public static class MethodList.TypeSubstituting extends MethodList.AbstractBase<MethodDescription.InGenericShape>
MethodDescription.TypeSubstituting
.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 |
---|---|
protected TypeDescription.Generic |
declaringType
The methods' declaring type.
|
protected java.util.List<? extends MethodDescription> |
methodDescriptions
The list of method descriptions to represent.
|
protected TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> |
visitor
The visitor to apply to each method description before returning it.
|
Constructor and Description |
---|
TypeSubstituting(TypeDescription.Generic declaringType,
java.util.List<? extends MethodDescription> methodDescriptions,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a new type substituting method list.
|
Modifier and Type | Method and Description |
---|---|
MethodDescription.InGenericShape |
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
protected final TypeDescription.Generic declaringType
protected final java.util.List<? extends MethodDescription> methodDescriptions
protected final TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor
public TypeSubstituting(TypeDescription.Generic declaringType, java.util.List<? extends MethodDescription> methodDescriptions, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
declaringType
- The methods' declaring type.methodDescriptions
- The list of method descriptions to represent.visitor
- The visitor to apply to each method description before returning it.public MethodDescription.InGenericShape get(int index)
get
in interface java.util.List<MethodDescription.InGenericShape>
get
in class java.util.AbstractList<MethodDescription.InGenericShape>
public int size()
size
in interface java.util.Collection<MethodDescription.InGenericShape>
size
in interface java.util.List<MethodDescription.InGenericShape>
size
in class java.util.AbstractCollection<MethodDescription.InGenericShape>