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(String name,
int modifiers,
String descriptor,
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod signatureResolution,
String[] exceptionName,
List<TypePool.LazyTypeDescription.AnnotationToken> annotationTokens,
Map<Integer,List<TypePool.LazyTypeDescription.AnnotationToken>> parameterAnnotationTokens,
List<TypePool.LazyTypeDescription.MethodToken.ParameterToken> parameterTokens,
AnnotationDescription.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 AnnotationDescription.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 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.
|
protected TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod |
getSignatureResolution()
Returns the generic type resolution of this method.
|
int |
hashCode() |
String |
toString() |
protected MethodToken(String name, int modifiers, String descriptor, TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod signatureResolution, String[] exceptionName, List<TypePool.LazyTypeDescription.AnnotationToken> annotationTokens, Map<Integer,List<TypePool.LazyTypeDescription.AnnotationToken>> parameterAnnotationTokens, List<TypePool.LazyTypeDescription.MethodToken.ParameterToken> parameterTokens, AnnotationDescription.AnnotationValue<?,?> defaultValue)
name
- The name of the method.modifiers
- The modifiers of the represented method.descriptor
- The descriptor of the represented method.signatureResolution
- The generic type resolution of this method.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 TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForMethod getSignatureResolution()
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 AnnotationDescription.AnnotationValue<?,?> getDefaultValue()
null
if no such values exists.null
if no such values exists.Copyright © 2014–2015. All rights reserved.