Class ByteCodeAppender.Size
java.lang.Object
net.bytebuddy.implementation.bytecode.ByteCodeAppender.Size
- Enclosing interface:
ByteCodeAppender
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe size of the local variable array.private final intThe size of the operand stack.static final ByteCodeAppender.SizeA size of zero. -
Constructor Summary
ConstructorsConstructorDescriptionSize(int operandStackSize, int localVariableSize) Creates a size representation. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the required size of the local variable array.intReturns the required operand stack size.merge(ByteCodeAppender.Size other) Merges two sizes in order to describe the size that is required by both size descriptions.
-
Field Details
-
ZERO
A size of zero. -
operandStackSize
private final int operandStackSizeThe size of the operand stack. -
localVariableSize
private final int localVariableSizeThe size of the local variable array.
-
-
Constructor Details
-
Size
public Size(int operandStackSize, int localVariableSize) Creates a size representation.- Parameters:
operandStackSize- The operand stack size that is required for running given byte code.localVariableSize- The local variable array size that is required for running given byte code.
-
-
Method Details
-
getOperandStackSize
public int getOperandStackSize()Returns the required operand stack size.- Returns:
- The required operand stack size.
-
getLocalVariableSize
public int getLocalVariableSize()Returns the required size of the local variable array.- Returns:
- The required size of the local variable array.
-
merge
Merges two sizes in order to describe the size that is required by both size descriptions.- Parameters:
other- The other size description.- Returns:
- A size description incorporating both size requirements.
-