Package org.jruby.ast
Class NilImplicitNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.NilNode
org.jruby.ast.NilImplicitNode
- All Implemented Interfaces:
InvisibleNode
,SideEffectFree
A node which behaves like a nil node, but is not actually present in the AST as a syntactical
element (e.g. IDE's should ignore occurrences of this node. We have this as separate subclass
so that IDE consumers can more easily ignore these.
-
Field Summary
FieldsFields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isNil()
Whether the node evaluates to nil and has no side effects.Methods inherited from class org.jruby.ast.NilNode
accept, childNodes, getNodeType, needsDefinitionCheck
Methods inherited from class org.jruby.ast.Node
containsVariableAssignment, createList, createList, createList, createList, executesOnce, getFile, getLine, getNodeName, isNewline, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline