public static class ParameterList.ForTokens extends ParameterList.AbstractBase<ParameterDescription.InDefinedShape>
ParameterList.AbstractBase<S extends ParameterDescription>, ParameterList.Empty<S extends ParameterDescription>, ParameterList.Explicit<S extends ParameterDescription>, ParameterList.ForLoadedExecutable<T>, ParameterList.ForTokens, ParameterList.TypeSubstituting
Modifier and Type | Field and Description |
---|---|
private MethodDescription.InDefinedShape |
declaringMethod
The method that is declaring the represented token.
|
private java.util.List<? extends ParameterDescription.Token> |
tokens
The list of tokens to represent.
|
Constructor and Description |
---|
ForTokens(MethodDescription.InDefinedShape declaringMethod,
java.util.List<? extends ParameterDescription.Token> tokens)
Creates a new parameter list for the provided tokens.
|
Modifier and Type | Method and Description |
---|---|
ParameterDescription.InDefinedShape |
get(int index) |
int |
size() |
asDefined, asTokenList, asTypeList, hasExplicitMetaData, 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 MethodDescription.InDefinedShape declaringMethod
private final java.util.List<? extends ParameterDescription.Token> tokens
public ForTokens(MethodDescription.InDefinedShape declaringMethod, java.util.List<? extends ParameterDescription.Token> tokens)
declaringMethod
- The method that is declaring the represented token.tokens
- The list of tokens to represent.public ParameterDescription.InDefinedShape get(int index)
get
in interface java.util.List<ParameterDescription.InDefinedShape>
get
in class java.util.AbstractList<ParameterDescription.InDefinedShape>
public int size()
size
in interface java.util.Collection<ParameterDescription.InDefinedShape>
size
in interface java.util.List<ParameterDescription.InDefinedShape>
size
in class java.util.AbstractCollection<ParameterDescription.InDefinedShape>