protected static class DynamicType.Builder.AbstractBase.MethodToken extends Object implements LatentMethodMatcher
LatentMethodMatcher.Resolved| Modifier and Type | Field and Description | 
|---|---|
| protected List<TypeDescription> | exceptionTypesA list of exception type descriptions for the method. | 
| protected String | internalNameThe internal name of the method. | 
| protected int | modifiersThe modifiers of the method. | 
| protected List<TypeDescription> | parameterTypesA list of parameter type descriptions for the method which might be represented by the
  TargetTypeplaceholder. | 
| protected TypeDescription | returnTypeA description of the return type of the method or a type describing the
  TargetTypeplaceholder. | 
| Constructor and Description | 
|---|
| MethodToken(List<? extends TypeDescription> parameterTypes,
           List<? extends TypeDescription> exceptionTypes,
           int modifiers)Creates a new method token representing a constructor to implement for the built dynamic type. | 
| MethodToken(String internalName,
           TypeDescription returnType,
           List<? extends TypeDescription> parameterTypes,
           List<? extends TypeDescription> exceptionTypes,
           int modifiers)Creates a new method token representing a method to implement for the built dynamic type. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object other) | 
| List<TypeDescription> | getExceptionTypes()Returns a list of exception types of this method token. | 
| String | getInternalName()Returns the internal name of this method token. | 
| int | getModifiers()Returns the modifiers for this method token. | 
| List<TypeDescription> | getParameterTypes()Returns a list of descriptions of the parameter types of this method token. | 
| TypeDescription | getReturnType()Returns a description of the return type of this method token. | 
| int | hashCode() | 
| ElementMatcher<? super MethodDescription> | resolve(TypeDescription instrumentedType)Resolves the latent method matcher. | 
| protected List<TypeDescription> | resolveExceptionTypes(TypeDescription instrumentedType)Resolves the declared exception types for the method. | 
| protected List<TypeDescription> | resolveParameterTypes(TypeDescription instrumentedType)Resolves the parameter types for the method which could be represented by the
  TargetTypeplaceholder type. | 
| protected TypeDescription | resolveReturnType(TypeDescription instrumentedType)Resolves the return type for the method which could be represented by the
  TargetTypeplaceholder type. | 
| String | toString() | 
protected final String internalName
protected final TypeDescription returnType
TargetType placeholder.protected final List<TypeDescription> parameterTypes
TargetType placeholder.protected final List<TypeDescription> exceptionTypes
protected final int modifiers
public MethodToken(List<? extends TypeDescription> parameterTypes, List<? extends TypeDescription> exceptionTypes, int modifiers)
parameterTypes - A list of parameters for the constructor.exceptionTypes - A list of exception types that are declared for the constructor.modifiers - The modifiers of the constructor.public MethodToken(String internalName, TypeDescription returnType, List<? extends TypeDescription> parameterTypes, List<? extends TypeDescription> exceptionTypes, int modifiers)
internalName - The internal name of the method.returnType - The return type of the method.parameterTypes - A list of parameters for the method.exceptionTypes - A list of exception types that are declared for the method.modifiers - The modifiers of the method.public ElementMatcher<? super MethodDescription> resolve(TypeDescription instrumentedType)
LatentMethodMatcherresolve in interface LatentMethodMatcherinstrumentedType - The instrumented type.protected TypeDescription resolveReturnType(TypeDescription instrumentedType)
TargetType placeholder type.instrumentedType - The instrumented place which is used for replacement.protected List<TypeDescription> resolveParameterTypes(TypeDescription instrumentedType)
TargetType placeholder type.instrumentedType - The instrumented place which is used for replacement.protected List<TypeDescription> resolveExceptionTypes(TypeDescription instrumentedType)
instrumentedType - The instrumented place which is used for replacement.public String getInternalName()
public TypeDescription getReturnType()
public List<TypeDescription> getParameterTypes()
public List<TypeDescription> getExceptionTypes()
public int getModifiers()
Copyright © 2014–2015. All rights reserved.