public static class InvokeDynamic.InvocationProvider.Target.ForMethodDescription extends Object implements InvokeDynamic.InvocationProvider.Target, InvokeDynamic.InvocationProvider.Target.Resolved
InvokeDynamic.InvocationProvider.Target.ForMethodDescription, InvokeDynamic.InvocationProvider.Target.Resolved
InvokeDynamic.InvocationProvider.Target.Resolved.Simple
Modifier | Constructor and Description |
---|---|
protected |
ForMethodDescription(MethodDescription.InDefinedShape methodDescription)
Creates a new target for substituting a given method.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
String |
getInternalName()
Returns the internal name of the requested method.
|
List<TypeDescription> |
getParameterTypes()
Returns the types of the values on the operand stack.
|
TypeDescription |
getReturnType()
Returns the requested return type.
|
StackManipulation |
getStackManipulation()
Returns the stack manipulation that loads the arguments onto the operand stack.
|
int |
hashCode() |
InvokeDynamic.InvocationProvider.Target.Resolved |
resolve(TypeDescription instrumentedType,
Assigner assigner,
Assigner.Typing typing)
Resolves the target.
|
String |
toString() |
protected ForMethodDescription(MethodDescription.InDefinedShape methodDescription)
methodDescription
- The method that is being substituted.public InvokeDynamic.InvocationProvider.Target.Resolved resolve(TypeDescription instrumentedType, Assigner assigner, Assigner.Typing typing)
InvokeDynamic.InvocationProvider.Target
resolve
in interface InvokeDynamic.InvocationProvider.Target
instrumentedType
- The instrumented type.assigner
- The assigner to be used.typing
- Indicates if dynamic type castings should be attempted for incompatible assignments.public String getInternalName()
InvokeDynamic.InvocationProvider.Target.Resolved
getInternalName
in interface InvokeDynamic.InvocationProvider.Target.Resolved
public TypeDescription getReturnType()
InvokeDynamic.InvocationProvider.Target.Resolved
getReturnType
in interface InvokeDynamic.InvocationProvider.Target.Resolved
public StackManipulation getStackManipulation()
InvokeDynamic.InvocationProvider.Target.Resolved
getStackManipulation
in interface InvokeDynamic.InvocationProvider.Target.Resolved
public List<TypeDescription> getParameterTypes()
InvokeDynamic.InvocationProvider.Target.Resolved
getParameterTypes
in interface InvokeDynamic.InvocationProvider.Target.Resolved
Copyright © 2014–2017. All rights reserved.