protected static class MethodConstant.ForMethod extends MethodConstant implements MethodConstant.CanCache
MethodConstant
for loading
a Method
instance onto the operand stack.MethodConstant.CachedConstructor, MethodConstant.CachedMethod, MethodConstant.CanCache, MethodConstant.CanCacheIllegal, MethodConstant.ForConstructor, MethodConstant.ForMethod
StackManipulation.Compound, StackManipulation.Illegal, StackManipulation.Size, StackManipulation.Trivial
methodDescription
Modifier | Constructor and Description |
---|---|
protected |
ForMethod(MethodDescription.InDefinedShape methodDescription)
Creates a new
MethodConstant for
creating a Method instance. |
Modifier and Type | Method and Description |
---|---|
protected MethodDescription |
accessorMethod()
Returns the method for loading a declared method or constructor onto the operand stack.
|
protected StackManipulation |
preparation()
Returns a stack manipulation that loads the values that are required for loading a method constant onto the operand stack.
|
apply, cached, forMethod, isValid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cached
apply, isValid
protected ForMethod(MethodDescription.InDefinedShape methodDescription)
MethodConstant
for
creating a Method
instance.methodDescription
- The method to be loaded onto the stack.protected StackManipulation preparation()
MethodConstant
preparation
in class MethodConstant
protected MethodDescription accessorMethod()
MethodConstant
accessorMethod
in class MethodConstant
Copyright © 2014–2018. All rights reserved.