Top Fields Constructors Methods
org.jruby.ast

public Class HashPatternNode

extends Node
Class Inheritance
Imports
org.jruby.ast.visitor.NodeVisitor, org.jruby.util.KeyValuePair, java.util.ArrayList, .List

Field Summary

Modifier and TypeField and Description
private Node
private final HashNode
private final Node
Inherited from org.jruby.ast.Node:
containsVariableAssignmentEMPTY_LISTnewline

Constructor Summary

AccessConstructor and Description
public
HashPatternNode(int line, Node restArg, HashNode keywordArgs)

Method Summary

Modifier and TypeMethod and Description
public <T> T
accept(NodeVisitor<T> visitor)

Implements abstract org.jruby.ast.Node.accept.

public List<Node>
public int
public Node
public Node[]
public HashNode
public NodeType
public Node
public boolean
public boolean
public boolean
public boolean
public void
setConstant(Node constant)

Inherited from org.jruby.ast.Node:
containsVariableAssignmentcreateListcreateListcreateListcreateListexecutesOncegetFilegetLinegetNodeNameisNewlineisNilneedsDefinitionChecksetLinesetNewlinetoStringtoStringtoStringExtraInfotoStringInternalunsetNewline

Field Detail

constantback to summary
private Node constant
keywordArgsback to summary
private final HashNode keywordArgs
restArgback to summary
private final Node restArg

Constructor Detail

HashPatternNodeback to summary
public HashPatternNode(int line, Node restArg, HashNode keywordArgs)

Method Detail

acceptback to summary
public <T> T accept(NodeVisitor<T> visitor)

Implements abstract org.jruby.ast.Node.accept.

Annotations
@Override
childNodesback to summary
public List<Node> childNodes()

Implements abstract org.jruby.ast.Node.childNodes.

Annotations
@Override
getArgumentSizeback to summary
public int getArgumentSize()
getConstantback to summary
public Node getConstant()
getKeysback to summary
public Node[] getKeys()
getKeywordArgsback to summary
public HashNode getKeywordArgs()
getNodeTypeback to summary
public NodeType getNodeType()

Implements abstract org.jruby.ast.Node.getNodeType.

Returns:NodeType

Doc from org.jruby.ast.Node.getNodeType.

the nodeId

Annotations
@Override
getRestArgback to summary
public Node getRestArg()
hashNamedKeywordRestArgback to summary
public boolean hashNamedKeywordRestArg()
hasKeywordArgsback to summary
public boolean hasKeywordArgs()
hasRestArgback to summary
public boolean hasRestArg()
isNamedRestArgback to summary
public boolean isNamedRestArg()
setConstantback to summary
public void setConstant(Node constant)