public static class MethodList.ForTokens 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 TypeDescription |
declaringType
The method's declaring type.
|
private java.util.List<? extends MethodDescription.Token> |
tokens
The list of method tokens to represent.
|
Constructor and Description |
---|
ForTokens(TypeDescription declaringType,
java.util.List<? extends MethodDescription.Token> tokens)
Creates a new list of method descriptions for a list of detached tokens.
|
ForTokens(TypeDescription declaringType,
MethodDescription.Token... token)
Creates a new list of method descriptions for a list of detached tokens.
|
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 TypeDescription declaringType
private final java.util.List<? extends MethodDescription.Token> tokens
public ForTokens(TypeDescription declaringType, MethodDescription.Token... token)
declaringType
- The method's declaring type.token
- The list of method tokens to represent.public ForTokens(TypeDescription declaringType, java.util.List<? extends MethodDescription.Token> tokens)
declaringType
- The method's declaring type.tokens
- The list of method tokens to represent.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>