protected static class TypePool.LazyTypeDescription.MethodToken extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
TypePool.LazyTypeDescription.MethodToken.ParameterToken
A token representing a method's parameter.
|
Modifier | Constructor and Description |
---|---|
protected |
MethodToken(int modifiers,
String name,
String descriptor,
String genericSignature,
String[] exceptionName,
List<TypePool.LazyTypeDescription.AnnotationToken> annotationTokens,
Map<Integer,List<TypePool.LazyTypeDescription.AnnotationToken>> parameterAnnotationTokens,
List<TypePool.LazyTypeDescription.MethodToken.ParameterToken> parameterTokens,
TypePool.LazyTypeDescription.AnnotationValue<?,?> defaultValue)
Creates a new method token.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
protected List<TypePool.LazyTypeDescription.AnnotationToken> |
getAnnotationTokens()
Returns a list of annotation tokens declared by the represented method.
|
protected TypePool.LazyTypeDescription.AnnotationValue<?,?> |
getDefaultValue()
Returns the default value of the represented method or
null if no such values exists. |
protected String |
getDescriptor()
Returns the descriptor of the represented method.
|
protected String[] |
getExceptionName()
Returns the internal names of the exception type declared of the represented method.
|
protected String |
getGenericSignature()
Returns the generic signature of the method or
null if it is not generic. |
protected int |
getModifiers()
Returns the modifiers of the represented method.
|
protected String |
getName()
Returns the internal name of the represented method.
|
protected Map<Integer,List<TypePool.LazyTypeDescription.AnnotationToken>> |
getParameterAnnotationTokens()
Returns a map of parameter type indices to a list of annotation tokens representing these annotations.
|
protected List<TypePool.LazyTypeDescription.MethodToken.ParameterToken> |
getParameterTokens()
Returns the parameter tokens for this type.
|
int |
hashCode() |
String |
toString() |
protected MethodToken(int modifiers, String name, String descriptor, String genericSignature, String[] exceptionName, List<TypePool.LazyTypeDescription.AnnotationToken> annotationTokens, Map<Integer,List<TypePool.LazyTypeDescription.AnnotationToken>> parameterAnnotationTokens, List<TypePool.LazyTypeDescription.MethodToken.ParameterToken> parameterTokens, TypePool.LazyTypeDescription.AnnotationValue<?,?> defaultValue)
modifiers
- The modifiers of the represented method.name
- The internal name of the represented method.descriptor
- The descriptor of the represented method.genericSignature
- The generic signature of the method or null
if it is not generic.exceptionName
- An array of internal names of the exceptions of the represented method
or null
if there are no such exceptions.annotationTokens
- A list of annotation tokens that are present on the represented method.parameterAnnotationTokens
- A map of parameter indices to tokens that represent their annotations.parameterTokens
- A list of tokens describing meta data of the method's parameters.defaultValue
- The default value of this method or null
if there is no
such value.protected int getModifiers()
protected String getName()
protected String getDescriptor()
protected String getGenericSignature()
null
if it is not generic.null
if it is not generic.protected String[] getExceptionName()
protected List<TypePool.LazyTypeDescription.AnnotationToken> getAnnotationTokens()
protected Map<Integer,List<TypePool.LazyTypeDescription.AnnotationToken>> getParameterAnnotationTokens()
protected List<TypePool.LazyTypeDescription.MethodToken.ParameterToken> getParameterTokens()
protected TypePool.LazyTypeDescription.AnnotationValue<?,?> getDefaultValue()
null
if no such values exists.null
if no such values exists.Copyright © 2014–2015. All rights reserved.