Class Xmir.Default

  • All Implemented Interfaces:
    Xmir
    Enclosing interface:
    Xmir

    public static final class Xmir.Default
    extends Object
    implements Xmir
    Default Xmir that prints EO with straight vertical methods. This class will help you turn XMIR (XML document) into EOLANG plain text source code. It's as simple as this:
     String eo = new Xmir.Default(xml).toEO();
    Here, the xml is a String or an instance of XML from the jcabi-xml package.
    • Constructor Detail

      • Default

        public Default​(com.jcabi.xml.XML src)
        Ctor.
        Parameters:
        src - The source
      • Default

        public Default​(com.jcabi.xml.XML src,
                       String classpath)
        Ctor.
        Parameters:
        src - The source
        classpath - To-EO transformation classpath
    • Method Detail

      • toEO

        public String toEO()
        Description copied from interface: Xmir
        Converts XMIR to EO.
        Specified by:
        toEO in interface Xmir
        Returns:
        EO representation as String