Package net.bytebuddy.description.method
Class MethodDescription.SignatureToken
- java.lang.Object
-
- net.bytebuddy.description.method.MethodDescription.SignatureToken
-
- Enclosing interface:
- MethodDescription
public static class MethodDescription.SignatureToken extends java.lang.Object
A token representing a method's name and raw return and parameter types.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
The internal name of the represented method.private java.util.List<? extends TypeDescription>
parameterTypes
The represented method's raw parameter types.private TypeDescription
returnType
The represented method's raw return type.
-
Constructor Summary
Constructors Constructor Description SignatureToken(java.lang.String name, TypeDescription returnType, java.util.List<? extends TypeDescription> parameterTypes)
Creates a new type token.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodDescription.TypeToken
asTypeToken()
Returns this signature token as a type token.boolean
equals(java.lang.Object other)
java.lang.String
getName()
Returns the internal name of the represented method.java.util.List<TypeDescription>
getParameterTypes()
Returns this token's parameter types.TypeDescription
getReturnType()
Returns this token's return type.int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
name
private final java.lang.String name
The internal name of the represented method.
-
returnType
private final TypeDescription returnType
The represented method's raw return type.
-
parameterTypes
private final java.util.List<? extends TypeDescription> parameterTypes
The represented method's raw parameter types.
-
-
Constructor Detail
-
SignatureToken
public SignatureToken(java.lang.String name, TypeDescription returnType, java.util.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 Detail
-
getName
public java.lang.String getName()
Returns the internal name of the represented method.- Returns:
- The internal name of the represented method.
-
getReturnType
public TypeDescription getReturnType()
Returns this token's return type.- Returns:
- This token's return type.
-
getParameterTypes
public java.util.List<TypeDescription> getParameterTypes()
Returns this token's parameter types.- Returns:
- This token's parameter types.
-
asTypeToken
public MethodDescription.TypeToken asTypeToken()
Returns this signature token as a type token.- Returns:
- This signature token as a type token.
-
hashCode
@Enhance("hashCode") public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-