Class BytecodeRepresentation

  • All Implemented Interfaces:
    Representation

    public final class BytecodeRepresentation
    extends Object
    implements Representation
    Intermediate representation of a class files which can be optimized from bytecode.
    Since:
    0.1.0
    • Constructor Detail

      • BytecodeRepresentation

        public BytecodeRepresentation​(Path clazz)
        Constructor.
        Parameters:
        clazz - Path to the class file
    • Method Detail

      • 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 byte[] toBytecode()
        Description copied from interface: Representation
        Convert to bytecode.
        Specified by:
        toBytecode in interface Representation
        Returns:
        Array of bytes.