org.jruby.ast
Class NewlineNode

java.lang.Object
  extended byorg.jruby.ast.AbstractNode
      extended byorg.jruby.ast.NewlineNode
All Implemented Interfaces:
INode, java.io.Serializable

public class NewlineNode
extends AbstractNode

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.

Version:
$Revision: 1.3 $
Author:
jpetersen
See Also:
Serialized Form

Constructor Summary
NewlineNode(ISourcePosition position, INode nextNode)
           
 
Method Summary
 void accept(INodeVisitor iVisitor)
          Method used by visitors.
 INode getNextNode()
          Gets the nextNode.
 
Methods inherited from class org.jruby.ast.AbstractNode
getPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewlineNode

public NewlineNode(ISourcePosition position,
                   INode nextNode)
Method Detail

accept

public void accept(INodeVisitor iVisitor)
Method used by visitors. accepts the visitor

Parameters:
iVisitor - the visitor to accept

getNextNode

public INode getNextNode()
Gets the nextNode.

Returns:
Returns a INode


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.