public class AliasSymbol extends Symbol implements DerivedExpression
LanguageObject.Util
outputName, SEPARATOR
Constructor and Description |
---|
AliasSymbol(String name,
Expression symbol)
Construct an AliasSymbol given the alias name and the underlying symbol.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.
|
Object |
clone()
Return a copy of this object.
|
boolean |
equals(Object obj)
Compare the symbol based ONLY on name.
|
Expression |
getSymbol()
Get the underlying symbol
|
Class<?> |
getType()
Get the type of the symbol
|
void |
setSymbol(Expression symbol)
Set the underlying symbol
|
getName, getName, getOutputName, getOutputName, getShortName, getShortName, getShortName, hashCode, setName, setOutputName, setShortName, toString
public AliasSymbol(String name, Expression symbol)
name
- Name of the aliassymbol
- Underlying symbolpublic Expression getSymbol()
public void setSymbol(Expression symbol)
symbol
- New symbolpublic Class<?> getType()
getType
in interface Expression
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor
in interface LanguageObject
visitor
- Visitor being usedpublic Object clone()
clone
in interface LanguageObject
clone
in class Symbol
public boolean equals(Object obj)
Symbol
equals
in class Symbol
obj
- Other objectSymbol.equals(java.lang.Object)
Copyright © 2019. All rights reserved.