protected static class MethodConstant.ForMethod extends MethodConstant implements MethodConstant.CanCache
MethodConstant
for loading
a Method
instance onto the operand stack.MethodConstant.Cached, MethodConstant.CanCache, MethodConstant.CanCacheIllegal, MethodConstant.ForConstructor, MethodConstant.ForMethod
StackManipulation.Compound, StackManipulation.Illegal, StackManipulation.LegalTrivial, StackManipulation.Size
methodDescription
Modifier | Constructor and Description |
---|---|
protected |
ForMethod(MethodDescription methodDescription)
Creates a new
MethodConstant for
creating a Method instance. |
Modifier and Type | Method and Description |
---|---|
protected String |
getDescriptor()
Returns the descriptor of the
Class method for creating this method constant. |
protected String |
getMethodName()
Returns the name of the
Class method for creating this method constant. |
protected StackManipulation.Size |
prepare(MethodVisitor methodVisitor)
Applies all preparation to the given method visitor.
|
String |
toString() |
apply, cached, equals, forMethod, hashCode, isValid
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
cached
apply, isValid
protected ForMethod(MethodDescription methodDescription)
MethodConstant
for
creating a Method
instance.methodDescription
- The method to be loaded onto the stack.protected StackManipulation.Size prepare(MethodVisitor methodVisitor)
MethodConstant
prepare
in class MethodConstant
methodVisitor
- The method visitor to which the preparation is applied.protected String getMethodName()
MethodConstant
Class
method for creating this method constant.getMethodName
in class MethodConstant
protected String getDescriptor()
MethodConstant
Class
method for creating this method constant.getDescriptor
in class MethodConstant
Copyright © 2014–2015. All rights reserved.