Top Description Fields Constructors Methods
org.jruby.ast

public Class VAliasNode

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

Represents an alias of a global variable.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
VAliasNode(int line, RubySymbol newName, RubySymbol 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 RubySymbol

Returns:

Returns a String
getNewName
()

Gets the newName.

public NodeType
public RubySymbol

Returns:

Returns a String
getOldName
()

Gets the oldName.

Inherited from org.jruby.ast.Node:
containsVariableAssignmentcreateListcreateListcreateListcreateListexecutesOncegetFilegetLinegetNodeNameisNewlineisNilneedsDefinitionChecksetLinesetNewlinetoStringtoStringtoStringExtraInfotoStringInternalunsetNewline

Field Detail

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

Constructor Detail

VAliasNodeback to summary
public VAliasNode(int line, RubySymbol newName, RubySymbol 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 RubySymbol getNewName()

Gets the newName.

Returns:RubySymbol

Returns a String

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 RubySymbol getOldName()

Gets the oldName.

Returns:RubySymbol

Returns a String