org.jruby.ast
Class AliasNode
java.lang.Object
org.jruby.ast.AbstractNode
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AliasNode
public AliasNode(ISourcePosition position,
java.lang.String newName,
java.lang.String oldName)
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.