Top Description Fields Constructors Methods
org.jruby.ast

public Class NewlineNode

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

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

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

Constructor Summary

AccessConstructor and Description
public
NewlineNode(int line, Node nextNode)
Deprecated

Method Summary

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

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

RubyMethod used by visitors.

public List<Node>
public Node

Returns:

Returns a Node
getNextNode
()

Gets the nextNode.

public NodeType
Inherited from org.jruby.ast.Node:
containsVariableAssignmentcreateListcreateListcreateListcreateListexecutesOncegetFilegetLinegetNodeNameisNewlineisNilneedsDefinitionChecksetLinesetNewlinetoStringtoStringtoStringExtraInfotoStringInternalunsetNewline

Field Detail

nextNodeback to summary
private final Node nextNode

Constructor Detail

NewlineNodeback to summary
public NewlineNode(int line, Node nextNode)

Deprecated

Annotations
@Deprecated

Method Detail

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

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

RubyMethod used by visitors. accepts the visitor

Parameters
iVisitor:NodeVisitor<T>

the visitor to accept

childNodesback to summary
public List<Node> childNodes()

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

getNextNodeback to summary
public Node getNextNode()

Gets the nextNode.

Returns:Node

Returns a Node

getNodeTypeback to summary
public NodeType getNodeType()

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

Returns:NodeType

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

the nodeId