public class NilNode extends Node implements SideEffectFree
containsVariableAssignment, newline
Constructor and Description |
---|
NilNode(ISourcePosition position) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(NodeVisitor<T> iVisitor)
Accept for the visitor pattern.
|
java.util.List<Node> |
childNodes() |
NodeType |
getNodeType() |
boolean |
isNil()
Whether the node evaluates to nil and has no side effects.
|
boolean |
needsDefinitionCheck()
Check whether the given node is considered always "defined" or whether it
has some form of definition check.
|
containsVariableAssignment, createList, createList, createList, createList, executesOnce, findFirstChild, getFile, getLine, getNodeName, getPosition, isNewline, setNewline, setPosition, toString, toString, toStringInternal
public NilNode(ISourcePosition position)
public NodeType getNodeType()
getNodeType
in class Node
public <T> T accept(NodeVisitor<T> iVisitor)
public java.util.List<Node> childNodes()
childNodes
in class Node
public boolean isNil()
Node
public boolean needsDefinitionCheck()
Node
needsDefinitionCheck
in class Node
Copyright © 2001-2022 JRuby. All Rights Reserved.