Class 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 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 of com.jcabi.xml for performance reasons.

        Returns:
        Fully qualified class name
      • toBytecode

        public Bytecode toBytecode()
        Convert to bytecode.
        Returns:
        Bytecode object containing the compiled class