Package org.jruby.ast
Class ArrayPatternNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.ArrayPatternNode
-
Field Summary
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline -
Constructor Summary
ConstructorsConstructorDescriptionArrayPatternNode(int line, ListNode preArgs, Node restArg, ListNode postArgs) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(NodeVisitor<T> visitor) Node[]getPost()Node[]getPre()booleanbooleanbooleanintintintvoidsetConstant(Node constant) voidsetPreArgs(ListNode preArgs) booleanMethods inherited from class org.jruby.ast.Node
containsVariableAssignment, createList, createList, createList, createList, executesOnce, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Constructor Details
-
ArrayPatternNode
-
-
Method Details
-
accept
-
childNodes
- Specified by:
childNodesin classNode
-
getNodeType
- Specified by:
getNodeTypein classNode- Returns:
- the nodeId
-
setConstant
-
hasConstant
public boolean hasConstant() -
getConstant
-
getPre
-
getPreArgs
-
getPost
-
getPostArgs
-
setPreArgs
-
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()
-