Package org.eolang.jeo.representation
Class XmirRepresentation
- java.lang.Object
-
- org.eolang.jeo.representation.XmirRepresentation
-
- All Implemented Interfaces:
Representation
public final class XmirRepresentation extends Object implements Representation
Intermediate representation of a class files from XMIR.- Since:
- 0.1.0
-
-
Constructor Summary
Constructors Constructor Description XmirRepresentation(com.jcabi.xml.XML xml)
Constructor.XmirRepresentation(com.jcabi.xml.XML xml, String source)
Constructor.XmirRepresentation(com.jcabi.xml.XML xml, String source, boolean verify)
Constructor.XmirRepresentation(Path path)
Constructor.XmirRepresentation(Path path, boolean verify)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Details
details()
Details of representation.Bytecode
toBytecode()
Convert to bytecode.com.jcabi.xml.XML
toEO()
Convert to EOlang XML representation (XMIR).
-
-
-
Constructor Detail
-
XmirRepresentation
public XmirRepresentation(Path path)
Constructor.- Parameters:
path
- Path to XML file.
-
XmirRepresentation
public XmirRepresentation(Path path, boolean verify)
Constructor.- Parameters:
path
- Path to XML file.verify
- Verify bytecode.
-
XmirRepresentation
public XmirRepresentation(com.jcabi.xml.XML xml)
Constructor.- Parameters:
xml
- XML.
-
XmirRepresentation
public XmirRepresentation(com.jcabi.xml.XML xml, String source)
Constructor.- Parameters:
xml
- XML.source
- Source of the XML.
-
XmirRepresentation
public XmirRepresentation(com.jcabi.xml.XML xml, String source, boolean verify)
Constructor.- Parameters:
xml
- XML.source
- Source of the XML.verify
- Verify bytecode.
-
-
Method Detail
-
details
public Details details()
Description copied from interface:Representation
Details of representation. Additional info about representation which might include the source file, the name of a class or an object, etc.- Specified by:
details
in interfaceRepresentation
- Returns:
- Representation details instance.
-
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.
-
-