Class Invocation

  • All Implemented Interfaces:
    AstNode

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

      • 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,
                          String method,
                          List<AstNode> arguments)
        Constructor.
        Parameters:
        source - Source or target on which the invocation is performed
        method - Method name
        arguments - Arguments
    • Method Detail

      • print

        public String print()
        Description copied from interface: AstNode
        Print ast node and all it's children.
        Specified by:
        print in interface AstNode
        Returns:
        String output.
      • toXmir

        public Iterable<org.xembly.Directive> toXmir()
        Description copied from interface: AstNode
        Convert node to XMIR.
        Specified by:
        toXmir in interface AstNode
        Returns:
        XMIR XML.
      • identifier

        public String identifier()
        Description copied from interface: AstNode
        Node id.
        Specified by:
        identifier in interface AstNode
        Returns:
        Node id.