Package org.eolang.jeo.representation
Class BytecodeRepresentation
- java.lang.Object
-
- org.eolang.jeo.representation.BytecodeRepresentation
-
- All Implemented Interfaces:
Representation
public final class BytecodeRepresentation extends Object implements Representation
Intermediate representation of a class files which can be optimized from bytecode. In order to implement this class you can also use that site to check if bytecode is correct: https://godbolt.org/- Since:
- 0.1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eolang.jeo.Representation
Representation.Named
-
-
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 Detailsdetails()Details of representation.Stringname()Name of the class or an object.BytecodetoBytecode()Convert to bytecode.com.jcabi.xml.XMLtoEO()Convert to EOlang XML representation (XMIR).
-
-
-
Method Detail
-
details
public Details details()
Description copied from interface:RepresentationDetails of representation. Additional info about representation.- Specified by:
detailsin interfaceRepresentation- Returns:
- Representation details instance.
-
name
public String name()
Description copied from interface:RepresentationName of the class or an object.- Specified by:
namein interfaceRepresentation- Returns:
- Name.
-
toEO
public com.jcabi.xml.XML toEO()
Description copied from interface:RepresentationConvert to EOlang XML representation (XMIR).- Specified by:
toEOin interfaceRepresentation- Returns:
- XML.
-
toBytecode
public Bytecode toBytecode()
Description copied from interface:RepresentationConvert to bytecode.- Specified by:
toBytecodein interfaceRepresentation- Returns:
- Array of bytes.
-
-