Class MethodConstant.ForConstructor
- java.lang.Object
-
- net.bytebuddy.implementation.bytecode.constant.MethodConstant
-
- net.bytebuddy.implementation.bytecode.constant.MethodConstant.ForConstructor
-
- All Implemented Interfaces:
MethodConstant.CanCache
,StackManipulation
- Enclosing class:
- MethodConstant
protected static class MethodConstant.ForConstructor extends MethodConstant implements MethodConstant.CanCache
Creates aMethodConstant
for loading aConstructor
instance onto the operand stack.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.bytebuddy.implementation.bytecode.constant.MethodConstant
MethodConstant.CachedConstructor, MethodConstant.CachedMethod, MethodConstant.CanCache, MethodConstant.CanCacheIllegal, MethodConstant.ForConstructor, MethodConstant.ForMethod
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.bytecode.StackManipulation
StackManipulation.Compound, StackManipulation.Illegal, StackManipulation.Size, StackManipulation.Trivial
-
-
Field Summary
-
Fields inherited from class net.bytebuddy.implementation.bytecode.constant.MethodConstant
methodDescription
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForConstructor(MethodDescription.InDefinedShape methodDescription)
Creates a newMethodConstant
for creating aConstructor
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class net.bytebuddy.implementation.bytecode.constant.MethodConstant
apply, cached, forMethod, isValid
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.implementation.bytecode.constant.MethodConstant.CanCache
cached
-
Methods inherited from interface net.bytebuddy.implementation.bytecode.StackManipulation
apply, isValid
-
-
-
-
Constructor Detail
-
ForConstructor
protected ForConstructor(MethodDescription.InDefinedShape methodDescription)
Creates a newMethodConstant
for creating aConstructor
instance.- Parameters:
methodDescription
- The constructor to be loaded onto the stack.
-
-
Method Detail
-
preparation
protected StackManipulation preparation()
Description copied from class:MethodConstant
Returns a stack manipulation that loads the values that are required for loading a method constant onto the operand stack.- Specified by:
preparation
in classMethodConstant
- Returns:
- A stack manipulation for loading a method or constructor onto the operand stack.
-
accessorMethod
protected MethodDescription accessorMethod()
Description copied from class:MethodConstant
Returns the method for loading a declared method or constructor onto the operand stack.- Specified by:
accessorMethod
in classMethodConstant
- Returns:
- The method for loading a declared method or constructor onto the operand stack.
-
-