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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eolang.jeo.Representation
Representation.Named
-
-
Constructor Summary
Constructors Constructor Description XmirRepresentation(com.jcabi.xml.XML xml)Constructor.XmirRepresentation(XmirObject object)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Name of the class or an object.byte[]toBytecode()Convert to bytecode.com.jcabi.xml.XMLtoEO()Convert to EOlang XML representation (XMIR).
-
-
-
Constructor Detail
-
XmirRepresentation
public XmirRepresentation(XmirObject object)
Constructor.- Parameters:
object- EO object as XML.
-
XmirRepresentation
public XmirRepresentation(com.jcabi.xml.XML xml)
Constructor.- Parameters:
xml- XML.
-
-
Method Detail
-
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 byte[] toBytecode()
Description copied from interface:RepresentationConvert to bytecode.- Specified by:
toBytecodein interfaceRepresentation- Returns:
- Array of bytes.
-
-