Package org.jruby.ast

Class ArrayPatternNode

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

public class ArrayPatternNode extends Node
  • Constructor Details

    • ArrayPatternNode

      public ArrayPatternNode(int line, ListNode preArgs, Node restArg, ListNode postArgs)
  • Method Details

    • accept

      public <T> T accept(NodeVisitor<T> visitor)
      Specified by:
      accept in class Node
    • childNodes

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

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

      public void setConstant(Node constant)
    • hasConstant

      public boolean hasConstant()
    • getConstant

      public Node getConstant()
    • getPre

      public Node[] getPre()
    • getPreArgs

      public ListNode getPreArgs()
    • getPost

      public Node[] getPost()
    • getPostArgs

      public ListNode getPostArgs()
    • setPreArgs

      public void setPreArgs(ListNode preArgs)
    • getRestArg

      public Node getRestArg()
    • hasRestArg

      public boolean hasRestArg()
    • isNamedRestArg

      public boolean isNamedRestArg()
    • usesRestNum

      public boolean usesRestNum()
    • preArgsNum

      public int preArgsNum()
    • postArgsNum

      public int postArgsNum()
    • minimumArgsNum

      public int minimumArgsNum()