Package org.eolang.jeo.representation
Class EoRepresentation
- java.lang.Object
-
- org.eolang.jeo.representation.EoRepresentation
-
- All Implemented Interfaces:
Representation
public final class EoRepresentation extends Object implements Representation
Intermediate representation of a class files from XMIR.- Since:
- 0.1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eolang.jeo.Representation
Representation.Named
-
-
Constructor Summary
Constructors Constructor Description EoRepresentation(com.jcabi.xml.XML xml)
Constructor.EoRepresentation(com.jcabi.xml.XML xml, String source)
Constructor.EoRepresentation(String... lines)
Constructor.EoRepresentation(Path path)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Details
details()
Details of representation.String
name()
Name of the class or an object.Bytecode
toBytecode()
Convert to bytecode.com.jcabi.xml.XML
toEO()
Convert to EOlang XML representation (XMIR).
-
-
-
Constructor Detail
-
EoRepresentation
public EoRepresentation(Path path)
Constructor.- Parameters:
path
- Path to XML file.
-
EoRepresentation
public EoRepresentation(String... lines)
Constructor.- Parameters:
lines
- Xml document lines.
-
EoRepresentation
public EoRepresentation(com.jcabi.xml.XML xml)
Constructor.- Parameters:
xml
- XML.
-
EoRepresentation
public EoRepresentation(com.jcabi.xml.XML xml, String source)
Constructor.- Parameters:
xml
- XML.source
- Source of the XML.
-
-
Method Detail
-
details
public Details details()
Description copied from interface:Representation
Details of representation. Additional info about representation.- Specified by:
details
in interfaceRepresentation
- Returns:
- Representation details instance.
-
name
public String name()
Description copied from interface:Representation
Name of the class or an object.- Specified by:
name
in interfaceRepresentation
- Returns:
- Name.
-
toEO
public com.jcabi.xml.XML toEO()
Description copied from interface:Representation
Convert to EOlang XML representation (XMIR).- Specified by:
toEO
in interfaceRepresentation
- Returns:
- XML.
-
toBytecode
public Bytecode toBytecode()
Description copied from interface:Representation
Convert to bytecode.- Specified by:
toBytecode
in interfaceRepresentation
- Returns:
- Array of bytes.
-
-