org.jruby.ast
Class AliasNode

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

public class AliasNode
extends AbstractNode

An AliasNode represents an alias statement. ast node for the alias newName oldName

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

Constructor Summary
AliasNode(ISourcePosition position, java.lang.String newName, java.lang.String oldName)
           
 
Method Summary
 void accept(INodeVisitor iVisitor)
          Accept for the visitor pattern.
 java.lang.String getNewName()
          Gets the newName.
 java.lang.String getOldName()
          Gets the oldName.
 
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

AliasNode

public AliasNode(ISourcePosition position,
                 java.lang.String newName,
                 java.lang.String oldName)
Method Detail

accept

public void accept(INodeVisitor iVisitor)
Accept for the visitor pattern.

Parameters:
iVisitor - the visitor

getNewName

public java.lang.String getNewName()
Gets the newName.

Returns:
the newName as in the alias statement : alias newName oldName

getOldName

public java.lang.String getOldName()
Gets the oldName.

Returns:
the oldName as in the alias statement : alias newName oldName


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.