Top Description Fields Constructors Methods
org.jruby.ast

public Class AliasNode

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

Represents an alias statement (alias newName oldName).

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
AliasNode(int line, Node newName, Node oldName)

Method Summary

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

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

Accept for the visitor pattern.

public List<Node>
public Node

Returns:

the newName as in the alias statement : alias newName oldName
getNewName
()

Gets the newName.

public NodeType
public Node

Returns:

the oldName as in the alias statement : alias newName oldName
getOldName
()

Gets the oldName.

Inherited from org.jruby.ast.Node:
containsVariableAssignmentcreateListcreateListcreateListcreateListexecutesOncegetFilegetLinegetNodeNameisNewlineisNilneedsDefinitionChecksetLinesetNewlinetoStringtoStringtoStringExtraInfotoStringInternalunsetNewline

Field Detail

newNameback to summary
private final Node newName
oldNameback to summary
private final Node oldName

Constructor Detail

AliasNodeback to summary
public AliasNode(int line, Node newName, Node oldName)

Method Detail

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

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

Accept for the visitor pattern.

Parameters
iVisitor:NodeVisitor<T>

the visitor

childNodesback to summary
public List<Node> childNodes()

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

getNewNameback to summary
public Node getNewName()

Gets the newName.

Returns:Node

the newName as in the alias statement : alias newName oldName

getNodeTypeback to summary
public NodeType getNodeType()

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

Returns:NodeType

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

the nodeId

getOldNameback to summary
public Node getOldName()

Gets the oldName.

Returns:Node

the oldName as in the alias statement : alias newName oldName