Package net.bytebuddy.description.field
Class FieldDescription.SignatureToken
- java.lang.Object
-
- net.bytebuddy.description.field.FieldDescription.SignatureToken
-
- Enclosing interface:
- FieldDescription
public static class FieldDescription.SignatureToken extends Object
A token that uniquely identifies a field by its name and type erasure.
-
-
Constructor Summary
Constructors Constructor Description SignatureToken(String name, TypeDescription type)Creates a new signature token.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)StringgetName()Returns the name of the represented field.TypeDescriptiongetType()Returns the type of the represented field.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
SignatureToken
public SignatureToken(String name, TypeDescription type)
Creates a new signature token.- Parameters:
name- The field's name.type- The field's raw type.
-
-
Method Detail
-
getName
public String getName()
Returns the name of the represented field.- Returns:
- The name of the represented field.
-
getType
public TypeDescription getType()
Returns the type of the represented field.- Returns:
- The type of the represented field.
-
-