Package org.eolang.jeo.representation
Class XmirRepresentation
- java.lang.Object
-
- org.eolang.jeo.representation.XmirRepresentation
-
public final class XmirRepresentation extends Object
Intermediate representation of class files from XMIR format.This class provides a unified interface for working with XMIR (EO XML representation) files. It can read XMIR from files or XML objects and convert them to Java bytecode.
- Since:
- 0.1.0
-
-
Constructor Summary
Constructors Constructor Description XmirRepresentation(com.jcabi.xml.XML xml)
Constructor.XmirRepresentation(Path path)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Retrieves class name from XMIR.Bytecode
toBytecode()
Convert to bytecode.
-
-
-
Constructor Detail
-
XmirRepresentation
public XmirRepresentation(Path path)
Constructor.- Parameters:
path
- The path to XMIR file to read
-
XmirRepresentation
public XmirRepresentation(com.jcabi.xml.XML xml)
Constructor.- Parameters:
xml
- The XML object containing XMIR representation
-
-
Method Detail
-
name
public String name()
Retrieves class name from XMIR.This method intentionally uses classes from
org.w3c.dom
instead ofcom.jcabi.xml
for performance reasons.- Returns:
- Fully qualified class name
-
toBytecode
public Bytecode toBytecode()
Convert to bytecode.- Returns:
- Bytecode object containing the compiled class
-
-