Class Reference

java.lang.Object
org.eolang.opeo.ast.Reference
All Implemented Interfaces:
AstNode, Linked, Typed, Xmir

public final class Reference extends Object implements AstNode, Typed, Linked
Object reference in the stack.
Since:
0.1
  • Constructor Details

    • Reference

      public Reference()
      Constructor.
    • Reference

      public Reference(AstNode object)
      Constructor.
      Parameters:
      object - Object for which reference is created.
    • Reference

      public Reference(AtomicReference<AstNode> ref)
      Constructor.
      Parameters:
      ref - Object reference.
  • Method Details

    • link

      public void link(AstNode node)
      Description copied from interface: Linked
      Link the node.
      Specified by:
      link in interface Linked
      Parameters:
      node - The node to link.
    • current

      public AstNode current()
      Description copied from interface: Linked
      Retrieve the current node.
      Specified by:
      current in interface Linked
      Returns:
      The current node.
    • object

      public AstNode object()
      Get the object.
      Returns:
      Object.
    • 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.