Package org.eolang.jeo.representation
Class BytecodeRepresentation
- java.lang.Object
-
- org.eolang.jeo.representation.BytecodeRepresentation
-
public final class BytecodeRepresentation extends Object
Intermediate representation of a class files which can be optimized from bytecode.- Since:
- 0.1
-
-
Constructor Summary
Constructors Constructor Description BytecodeRepresentation(Path clazz)Constructor.BytecodeRepresentation(Bytecode bytecode)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Read class name from bytecode.com.jcabi.xml.XMLtoEO()Convert to EOlang XML representation (XMIR).com.jcabi.xml.XMLtoEO(boolean count)Converts bytecode into XML.com.jcabi.xml.XMLtoEO(boolean count, DisassembleMode mode)Converts bytecode into XML.
-
-
-
Method Detail
-
name
public String name()
Read class name from bytecode.- Returns:
- Class name.
-
toEO
public com.jcabi.xml.XML toEO()
Convert to EOlang XML representation (XMIR).- Returns:
- XML.
-
toEO
public com.jcabi.xml.XML toEO(boolean count)
Converts bytecode into XML.- Parameters:
count- Do we add number to opcode name or not?- Returns:
- XML representation of bytecode.
-
toEO
public com.jcabi.xml.XML toEO(boolean count, DisassembleMode mode)Converts bytecode into XML.- Parameters:
count- Do we add number to opcode name or not?mode- Disassemble mode.- Returns:
- XML representation of bytecode.
-
-