Package net.bytebuddy.description.method
Class MethodDescription.SignatureToken
java.lang.Object
net.bytebuddy.description.method.MethodDescription.SignatureToken
- Enclosing interface:
MethodDescription
A token representing a method's name and raw return and parameter types.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe internal name of the represented method.private final List<? extends TypeDescription> The represented method's raw parameter types.private final TypeDescriptionThe represented method's raw return type. -
Constructor Summary
ConstructorsConstructorDescriptionSignatureToken(String name, TypeDescription returnType, List<? extends TypeDescription> parameterTypes) Creates a new type token.SignatureToken(String name, TypeDescription returnType, TypeDescription... parameterType) Creates a new type token. -
Method Summary
-
Field Details
-
name
The internal name of the represented method. -
returnType
The represented method's raw return type. -
parameterTypes
The represented method's raw parameter types.
-
-
Constructor Details
-
SignatureToken
Creates a new type token.- Parameters:
name- The internal name of the represented method.returnType- The represented method's raw return type.parameterType- The represented method's raw parameter types.
-
SignatureToken
public SignatureToken(String name, TypeDescription returnType, List<? extends TypeDescription> parameterTypes) Creates a new type token.- Parameters:
name- The internal name of the represented method.returnType- The represented method's raw return type.parameterTypes- The represented method's raw parameter types.
-
-
Method Details
-
getName
Returns the internal name of the represented method.- Returns:
- The internal name of the represented method.
-
getReturnType
Returns this token's return type.- Returns:
- This token's return type.
-
getParameterTypes
Returns this token's parameter types.- Returns:
- This token's parameter types.
-
asTypeToken
Returns this signature token as a type token.- Returns:
- This signature token as a type token.
-
getDescriptor
Returns a method descriptor for this token.- Returns:
- A method descriptor for this token.
-
hashCode
-
equals
-
toString
-