Class Invocation

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

public final class Invocation extends Object implements AstNode, Typed
Invocation output node.
Since:
0.1
  • Constructor Details

    • Invocation

      public Invocation(org.eolang.jeo.representation.xmir.XmlNode node, Parser parser)
      Constructor.
      Parameters:
      node - XML node
      parser - Parser for child nodes.
    • Invocation

      public Invocation(AstNode source, String method, AstNode... args)
      Constructor.
      Parameters:
      source - Source or target on which the invocation is performed
      method - Method name
      args - Arguments
    • Invocation

      public Invocation(AstNode source, Attributes attributes, AstNode... args)
      Constructor.
      Parameters:
      source - Source or target on which the invocation is performed
      attributes - Method attributes
      args - Arguments
    • Invocation

      public Invocation(AstNode source, String method, List<AstNode> arguments)
      Constructor.
      Parameters:
      source - Source or target on which the invocation is performed
      method - Method name
      arguments - Arguments
    • Invocation

      public Invocation(AstNode source, String method, List<AstNode> arguments, String descriptor)
      Constructor.
      Parameters:
      source - Source or target on which the invocation is performed
      method - Method name
      arguments - Arguments
      descriptor - Descriptor
    • Invocation

      public Invocation(AstNode source, Attributes attributes, List<AstNode> arguments)
      Constructor.
      Parameters:
      source - Source or target on which the invocation is performed
      attributes - Method attributes
      arguments - Arguments
  • Method Details

    • 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.