Package org.jruby.ast
Class NewlineNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.NewlineNode
Note: This is a dead class but we leave it because people write against Visitor
and we do not want those consumers to break.
A new (logical) source code line.
This is used to change the value of the ruby interpreter source and line values.
There is one such node for each logical line. Logical line differs
from physical line in that a ';' can be used to make several logical
line out of a physical line and a physical line if it is in a comment
or in a string does not necessarily correspond to a physical line.
This is normally a wrapper around another more significant node.
The parser generates such a node around each separate statement.
-
Field Summary
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(NodeVisitor<T> iVisitor) RubyMethod used by visitors.Gets the nextNode.Methods 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
-
NewlineNode
Deprecated.
-
-
Method Details
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
accept
RubyMethod used by visitors. accepts the visitor -
getNextNode
Gets the nextNode.- Returns:
- Returns a Node
-
childNodes
- Specified by:
childNodes
in classNode
-