Class This

  • All Implemented Interfaces:
    AstNode, Typed, Xmir

    public final class This
    extends Object
    implements AstNode, Typed
    This output node. In java, it is represented as the keyword "this". In EO, it is represented as the keyword "$".
    Since:
    0.1
    • Constructor Detail

      • This

        public This()
        Default ctor. If no type is provided, the default type is Object.
        Since:
        0.2
      • This

        public This​(org.eolang.jeo.representation.xmir.XmlNode node)
        Constructor.
        Parameters:
        node - XML node.
      • This

        public This​(org.objectweb.asm.Type type)
        Constructor.
        Parameters:
        type - Type of this node.
      • This

        public This​(Attributes attributes)
        Constructor.
        Parameters:
        attributes - Attributes.
    • Method Detail

      • toXmir

        public Iterable<org.xembly.Directive> toXmir()
        Description copied from interface: Xmir
        Convert node to XMIR.
        Specified by:
        toXmir in interface Xmir
        Returns:
        XMIR XML.
      • opcodes

        public List<AstNode> opcodes()
        Description copied from interface: AstNode
        Bytecode instructions.
        Specified by:
        opcodes in interface AstNode
        Returns:
        List of opcodes.
      • type

        public org.objectweb.asm.Type type()
        Description copied from interface: Typed
        Node type.
        Specified by:
        type in interface Typed
        Returns:
        Type.