Class InterfaceInvocation

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

public final class InterfaceInvocation extends Object implements AstNode, Typed
Interface invocation.
Since:
0.2
  • Constructor Details

    • InterfaceInvocation

      public InterfaceInvocation(org.eolang.jeo.representation.xmir.XmlNode node, Parser parser)
      Constructor.
      Parameters:
      node - XML node.
      parser - Parser, which can extract AstNode from XmlNode.
    • InterfaceInvocation

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

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

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