Class BytecodeFrame
java.lang.Object
org.eolang.jeo.representation.bytecode.BytecodeFrame
- All Implemented Interfaces:
BytecodeEntry,Testable
Bytecode frame.
- Since:
- 0.6
-
Constructor Summary
ConstructorsConstructorDescriptionBytecodeFrame(int type, int nlocal, Object[] locals, int nstack, Object... stack) Constructor.BytecodeFrame(int type, List<Object> locals, List<Object> stack) Constructor. -
Method Summary
-
Constructor Details
-
BytecodeFrame
Constructor.- Parameters:
type- Frame type.locals- Local variables.stack- Stack elements.
-
BytecodeFrame
Constructor.- Parameters:
type- Frame type.nlocal- Number of local variables.locals- Local variables.nstack- Number of stack elements.stack- Stack elements.
-
-
Method Details
-
writeTo
public void writeTo(org.objectweb.asm.MethodVisitor visitor) Description copied from interface:BytecodeEntryWrite instruction to the method visitor.- Specified by:
writeToin interfaceBytecodeEntry- Parameters:
visitor- Method visitor.
-
directives
- Specified by:
directivesin interfaceBytecodeEntry
-
isLabel
public boolean isLabel()- Specified by:
isLabelin interfaceBytecodeEntry
-
isOpcode
public boolean isOpcode()- Specified by:
isOpcodein interfaceBytecodeEntry
-
impact
public int impact()- Specified by:
impactin interfaceBytecodeEntry
-
testCode
Description copied from interface:TestableGenerate test Java code.
-