public static class MethodDescription.Token extends Object implements ByteCodeElement.Token<MethodDescription.Token>
ByteCodeElement.Token.TokenList<S extends ByteCodeElement.Token<S>>| Constructor and Description | 
|---|
| Token(String internalName,
     int modifiers,
     GenericTypeDescription returnType,
     List<? extends GenericTypeDescription> parameterTypes)Creates a new method token with simple values. | 
| Token(String internalName,
     int modifiers,
     List<GenericTypeDescription> typeVariables,
     GenericTypeDescription returnType,
     List<? extends ParameterDescription.Token> parameterTokens,
     List<? extends GenericTypeDescription> exceptionTypes,
     List<? extends AnnotationDescription> annotations,
     Object defaultValue)Creates a new token for a method description. | 
| Modifier and Type | Method and Description | 
|---|---|
| MethodDescription.Token | accept(GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)Transforms the types represented by this token by applying the given visitor to them. | 
| MethodDescription.TypeToken | asTypeToken()Transforms this method token into a type token. | 
| boolean | equals(Object other) | 
| AnnotationList | getAnnotations()Returns the annotations of the represented method. | 
| Object | getDefaultValue()Returns the default value of the represented method. | 
| GenericTypeList | getExceptionTypes()Returns the exception types of the represented method. | 
| String | getInternalName()Returns the internal name of the represented method. | 
| int | getModifiers()Returns the modifiers of the represented method. | 
| ByteCodeElement.Token.TokenList<ParameterDescription.Token> | getParameterTokens()Returns the parameter tokens of the represented method. | 
| GenericTypeDescription | getReturnType()Returns the return type of the represented method. | 
| GenericTypeList | getTypeVariables()Returns the type variables of the the represented method. | 
| int | hashCode() | 
| boolean | isIdenticalTo(MethodDescription.Token token)Checks if this token is fully identical to the provided token. | 
| String | toString() | 
public Token(String internalName, int modifiers, GenericTypeDescription returnType, List<? extends GenericTypeDescription> parameterTypes)
internalName - The internal name of the represented method.modifiers - The modifiers of the represented method.returnType - The return type of the represented method.parameterTypes - The parameter types of this method.public Token(String internalName, int modifiers, List<GenericTypeDescription> typeVariables, GenericTypeDescription returnType, List<? extends ParameterDescription.Token> parameterTokens, List<? extends GenericTypeDescription> exceptionTypes, List<? extends AnnotationDescription> annotations, Object defaultValue)
internalName - The internal name of the represented method.modifiers - The modifiers of the represented method.typeVariables - The type variables of the the represented method.returnType - The return type of the represented method.parameterTokens - The parameter tokens of the represented method.exceptionTypes - The exception types of the represented method.annotations - The annotations of the represented method.defaultValue - The default value of the represented method or null if no such value exists.public String getInternalName()
public int getModifiers()
public GenericTypeList getTypeVariables()
public GenericTypeDescription getReturnType()
public ByteCodeElement.Token.TokenList<ParameterDescription.Token> getParameterTokens()
public GenericTypeList getExceptionTypes()
public AnnotationList getAnnotations()
public Object getDefaultValue()
null if no such value exists.public MethodDescription.TypeToken asTypeToken()
public MethodDescription.Token accept(GenericTypeDescription.Visitor<? extends GenericTypeDescription> visitor)
ByteCodeElement.Tokenaccept in interface ByteCodeElement.Token<MethodDescription.Token>visitor - The visitor to transform all types that are represented by this token.public boolean isIdenticalTo(MethodDescription.Token token)
ByteCodeElement.TokenisIdenticalTo in interface ByteCodeElement.Token<MethodDescription.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.