protected static class DynamicType.Builder.AbstractBase.MethodToken extends Object implements MethodRegistry.LatentMethodMatcher
MethodRegistry.LatentMethodMatcher.Simple| Modifier and Type | Field and Description | 
|---|---|
protected List<TypeDescription> | 
exceptionTypes
A list of exception type descriptions for the method. 
 | 
protected String | 
internalName
The internal name of the method. 
 | 
protected int | 
modifiers
The modifiers of the method. 
 | 
protected List<TypeDescription> | 
parameterTypes
A list of parameter type descriptions for the method which might be represented by the
  
TargetType placeholder. | 
protected TypeDescription | 
returnType
A description of the return type of the method or a type describing the
  
TargetType placeholder. | 
| 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()  | 
MethodMatcher | 
manifest(TypeDescription instrumentedType)
Manifests a 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
  
TargetType placeholder type. | 
protected TypeDescription | 
resolveReturnType(TypeDescription instrumentedType)
Resolves the return type for the method which could be represented by the
  
TargetType placeholder 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 MethodMatcher manifest(TypeDescription instrumentedType)
MethodRegistry.LatentMethodMatchermanifest in interface MethodRegistry.LatentMethodMatcherinstrumentedType - The description of the type that is subject to instrumentation.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. All rights reserved.