public static class FieldDescription.Token extends Object implements ByteCodeElement.Token<FieldDescription.Token>
ByteCodeElement.Token.TokenList<S extends ByteCodeElement.Token<S>>| Constructor and Description |
|---|
Token(String name,
int modifiers,
GenericTypeDescription type)
Creates a new field token without annotations.
|
Token(String name,
int modifiers,
GenericTypeDescription type,
List<? extends AnnotationDescription> annotations)
Creates a new field token.
|
| Modifier and Type | Method and Description |
|---|---|
FieldDescription.Token |
accept(GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
Transforms the types represented by this token by applying the given visitor to them.
|
boolean |
equals(Object other) |
AnnotationList |
getAnnotations()
Returns the annotations of the represented field.
|
int |
getModifiers()
Returns the modifiers of the represented field.
|
String |
getName()
Returns the name of the represented field.
|
GenericTypeDescription |
getType()
Returns the type of the represented field.
|
int |
hashCode() |
boolean |
isIdenticalTo(FieldDescription.Token token)
Checks if this token is fully identical to the provided token.
|
String |
toString() |
public Token(String name, int modifiers, GenericTypeDescription type)
name - The name of the represented field.modifiers - The modifiers of the represented field.type - The type of the represented field.public Token(String name, int modifiers, GenericTypeDescription type, List<? extends AnnotationDescription> annotations)
name - The name of the represented field.modifiers - The modifiers of the represented field.type - The type of the represented field.annotations - The annotations of the represented field.public String getName()
public GenericTypeDescription getType()
public int getModifiers()
public AnnotationList getAnnotations()
public FieldDescription.Token accept(GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
ByteCodeElement.Tokenaccept in interface ByteCodeElement.Token<FieldDescription.Token>visitor - The visitor to transform all types that are represented by this token.public boolean isIdenticalTo(FieldDescription.Token token)
ByteCodeElement.TokenisIdenticalTo in interface ByteCodeElement.Token<FieldDescription.Token>token - The token to compare this token with.true if this token is identical to the given token.Copyright © 2014–2015. All rights reserved.