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 Details

    • XmirRepresentation

      public XmirRepresentation(Path path)
      Constructor.
      Parameters:
      path - Path to XML file.
    • 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.
  • Method Details

    • 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 interface Representation
      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 interface Representation
      Returns:
      XML.
    • toBytecode

      public Bytecode toBytecode()
      Description copied from interface: Representation
      Convert to bytecode.
      Specified by:
      toBytecode in interface Representation
      Returns:
      Array of bytes.
    • size

      public long size()
      Description copied from interface: Representation
      Size of the representation.
      Specified by:
      size in interface Representation
      Returns:
      Size.