Package org.eolang.jeo.representation
Class XmirRepresentation
java.lang.Object
org.eolang.jeo.representation.XmirRepresentation
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
ConstructorsConstructorDescriptionXmirRepresentation(com.jcabi.xml.XML xml) Constructor.XmirRepresentation(Path path) Constructor. -
Method Summary
-
Constructor Details
-
XmirRepresentation
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 Details
-
name
Retrieves class name from XMIR.This method intentionally uses classes from
org.w3c.dominstead ofcom.jcabi.xmlfor performance reasons.- Returns:
- Fully qualified class name
-
toBytecode
Convert to bytecode.- Returns:
- Bytecode object containing the compiled class
-