Package org.jruby.ast

Class YieldNode

java.lang.Object
org.jruby.ast.Node
org.jruby.ast.YieldNode

public class YieldNode extends Node
Represents a yield statement.
  • Constructor Details

    • YieldNode

      public YieldNode(int line, Node argsNode)
      Construct a new YieldNode.
      Parameters:
      line - position of the node in the source
      argsNode - the arguments to the yield (null == no args)
  • Method Details

    • getNodeType

      public NodeType getNodeType()
      Specified by:
      getNodeType in class Node
      Returns:
      the nodeId
    • accept

      public <T> T accept(NodeVisitor<T> iVisitor)
      Accept for the visitor pattern.
      Specified by:
      accept in class Node
      Parameters:
      iVisitor - the visitor
    • getArgsNode

      public Node getArgsNode()
      Gets the argsNode.
      Returns:
      Returns a Node
    • childNodes

      public List<Node> childNodes()
      Specified by:
      childNodes in class Node