protected static class MethodConstant.ForConstructor extends MethodConstant implements MethodConstant.CanCache
MethodConstant
for loading
a Constructor
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 |
ForConstructor(MethodDescription.InDefinedShape methodDescription)
Creates a new
MethodConstant for
creating a Constructor 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 ForConstructor(MethodDescription.InDefinedShape methodDescription)
MethodConstant
for
creating a Constructor
instance.methodDescription
- The constructor 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.