Class StaticInvocation

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

public final class StaticInvocation extends Object implements AstNode, Typed
Static invocation ast node.
Since:
0.1
  • Constructor Details

    • StaticInvocation

      public StaticInvocation(String owner, String name, String descriptor, AstNode... arguments)
      Constructor.
      Parameters:
      owner - Owner class name
      name - Method name
      descriptor - Method descriptor
      arguments - Arguments
    • StaticInvocation

      public StaticInvocation(String owner, String name, String descriptor, List<AstNode> arguments)
      Constructor.
      Parameters:
      owner - Owner class name
      name - Method name
      descriptor - Method descriptor
      arguments - Arguments
    • StaticInvocation

      public StaticInvocation(org.eolang.jeo.representation.xmir.XmlNode node, Parser parser)
      Constructor.
      Parameters:
      node - XML node
      parser - Parser that will be used to parse the child nodes of the invocation.
    • StaticInvocation

      public StaticInvocation(org.eolang.jeo.representation.xmir.XmlNode node, List<AstNode> arguments)
      Constructor.
      Parameters:
      node - XML node
      arguments - Arguments
    • StaticInvocation

      public StaticInvocation(org.eolang.jeo.representation.xmir.XmlNode node, AstNode... arguments)
      Constructor.
      Parameters:
      node - XML node
      arguments - Arguments
    • StaticInvocation

      public StaticInvocation(Attributes attributes, Owner owner, AstNode... arguments)
      Constructor.
      Parameters:
      attributes - Method attributes
      owner - Owner class name
      arguments - Arguments
    • StaticInvocation

      public StaticInvocation(Attributes attributes, Owner owner, List<AstNode> arguments)
      Constructor.
      Parameters:
      attributes - Method attributes
      owner - Owner class name
      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.