Package org.jruby.ast
Class AliasNode
java.lang.Object
org.jruby.ast.Node
org.jruby.ast.AliasNode
Represents an alias statement (
alias newName oldName
).-
Field Summary
Fields inherited from class org.jruby.ast.Node
containsVariableAssignment, newline
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(NodeVisitor<T> iVisitor) Accept for the visitor pattern.Gets the newName.Gets the oldName.Methods inherited from class org.jruby.ast.Node
containsVariableAssignment, createList, createList, createList, createList, executesOnce, getFile, getLine, getNodeName, isNewline, isNil, needsDefinitionCheck, setLine, setNewline, toString, toString, toStringExtraInfo, toStringInternal, unsetNewline
-
Constructor Details
-
AliasNode
-
-
Method Details
-
getNodeType
- Specified by:
getNodeType
in classNode
- Returns:
- the nodeId
-
accept
Accept for the visitor pattern. -
getNewName
Gets the newName.- Returns:
- the newName as in the alias statement :
alias newName oldName
-
getOldName
Gets the oldName.- Returns:
- the oldName as in the alias statement :
alias newName oldName
-
childNodes
- Specified by:
childNodes
in classNode
-