public static class FieldList.ForTokens extends FieldList.AbstractBase<FieldDescription.InDefinedShape>
FieldList.AbstractBase<S extends FieldDescription>, FieldList.Empty<S extends FieldDescription>, FieldList.Explicit<S extends FieldDescription>, FieldList.ForLoadedFields, FieldList.ForTokens, FieldList.TypeSubstituting
Modifier and Type | Field and Description |
---|---|
private TypeDescription |
declaringType
The declaring type of the represented fields.
|
private java.util.List<? extends FieldDescription.Token> |
tokens
A list of the represented fields' tokens.
|
Constructor and Description |
---|
ForTokens(TypeDescription declaringType,
FieldDescription.Token... token)
Creates a new field list from a list of field tokens.
|
ForTokens(TypeDescription declaringType,
java.util.List<? extends FieldDescription.Token> tokens)
Creates a new field list from a list of field tokens.
|
Modifier and Type | Method and Description |
---|---|
FieldDescription.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 FieldDescription.Token> tokens
public ForTokens(TypeDescription declaringType, FieldDescription.Token... token)
declaringType
- The declaring type of the represented fields.token
- A list of the represented fields' tokens.public ForTokens(TypeDescription declaringType, java.util.List<? extends FieldDescription.Token> tokens)
declaringType
- The declaring type of the represented fields.tokens
- A list of the represented fields' tokens.public FieldDescription.InDefinedShape get(int index)
get
in interface java.util.List<FieldDescription.InDefinedShape>
get
in class java.util.AbstractList<FieldDescription.InDefinedShape>
public int size()
size
in interface java.util.Collection<FieldDescription.InDefinedShape>
size
in interface java.util.List<FieldDescription.InDefinedShape>
size
in class java.util.AbstractCollection<FieldDescription.InDefinedShape>