Class NewAddress

  • All Implemented Interfaces:
    AstNode, Typed, Xmir

    public final class NewAddress
    extends Object
    implements AstNode, Typed
    This class represents NEW instruction in the JVM bytecode.
    Since:
    0.2
    • Constructor Detail

      • NewAddress

        public NewAddress​(org.eolang.jeo.representation.xmir.XmlNode node)
        Constructor.
        Parameters:
        node - The XMIR node with a type to parse.
      • NewAddress

        public NewAddress​(String type)
        Constructor.
        Parameters:
        type - The type.
    • Method Detail

      • opcodes

        public List<AstNode> opcodes()
        Description copied from interface: AstNode
        Bytecode instructions.
        Specified by:
        opcodes in interface AstNode
        Returns:
        List of opcodes.
      • 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.
      • type

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