public class HashNode extends Node implements ILiteralNode
containsVariableAssignment, newline| Constructor and Description |
|---|
HashNode(int line) |
HashNode(int line,
KeyValuePair<Node,Node> pair) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(NodeVisitor<T> iVisitor)
Accept for the visitor pattern.
|
HashNode |
add(KeyValuePair<Node,Node> pair) |
java.util.List<Node> |
childNodes() |
NodeType |
getNodeType() |
java.util.List<KeyValuePair<Node,Node>> |
getPairs() |
boolean |
hasOnlyRestKwargs()
Detect whether only rest kwargs make up this hash.
|
boolean |
hasOnlySymbolKeys() |
boolean |
hasRestKwarg()
Detect presence of a rest kwarg (**kw).
|
boolean |
isEmpty() |
boolean |
isMaybeKwargs()
Is this hash looking like a keyword argument hash?
Technically we do not know at the callsite
|
containsVariableAssignment, createList, createList, createList, createList, executesOnce, findFirstChild, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewlinepublic HashNode(int line)
public HashNode(int line,
KeyValuePair<Node,Node> pair)
public boolean hasOnlySymbolKeys()
public boolean isMaybeKwargs()
public boolean hasRestKwarg()
public boolean hasOnlyRestKwargs()
public NodeType getNodeType()
getNodeType in class Nodepublic HashNode add(KeyValuePair<Node,Node> pair)
public <T> T accept(NodeVisitor<T> iVisitor)
public boolean isEmpty()
public java.util.List<KeyValuePair<Node,Node>> getPairs()
public java.util.List<Node> childNodes()
childNodes in class NodeCopyright © 2001-2022 JRuby. All Rights Reserved.