public class ExpressionSymbol extends Symbol implements DerivedExpression
LanguageObject.Util
outputName, SEPARATOR
Constructor and Description |
---|
ExpressionSymbol(String name,
Expression expression)
Construct an ExpressionSymbol with name and expression.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.
|
Object |
clone()
Return a deep copy of this object
|
boolean |
equals(Object obj)
ExpressionSymbol matching is not based upon the name
|
Expression |
getExpression()
Get the expression for this symbol
|
Class |
getType()
Get the type of the symbol
|
int |
hashCode()
Return a hash code for this symbol.
|
void |
setExpression(Expression expression)
Set the expression represented by this symbol.
|
getName, getName, getOutputName, getOutputName, getShortName, getShortName, getShortName, setName, setOutputName, setShortName, toString
public ExpressionSymbol(String name, Expression expression)
public Expression getExpression()
public void setExpression(Expression expression)
expression
- Expression for this expression 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 int hashCode()
Symbol
hashCode
in class Symbol
Symbol.hashCode()
public boolean equals(Object obj)
equals
in class Symbol
obj
- Other objectSymbol.equals(java.lang.Object)
Copyright © 2020. All rights reserved.