|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.query.sql.symbol.Symbol
org.teiid.query.sql.symbol.SingleElementSymbol
org.teiid.query.sql.symbol.ExpressionSymbol
public class ExpressionSymbol
This is a subclass of Symbol representing an expression in the SELECT clause. The expression may be a constant, function, or scalar subquery. The name of this symbol is always generated and typically should not be displayed. If necessary, the ExpressionSymbol may be wrapped by an AliasSymbol to register the name in a query. The definition of the symbol is the functional expression. Resolution will produce a list of groups and elements used by the expression.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject |
---|
LanguageObject.Util |
Field Summary |
---|
Fields inherited from class org.teiid.query.sql.symbol.SingleElementSymbol |
---|
SEPARATOR |
Fields inherited from class org.teiid.query.sql.symbol.Symbol |
---|
outputName |
Constructor Summary | |
---|---|
|
ExpressionSymbol(String name,
Expression expression)
Construct an ExpressionSymbol with name and expression. |
protected |
ExpressionSymbol(String name,
String canonicalName,
Expression expression)
Constructor used for cloning |
Method Summary | |
---|---|
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. |
boolean |
isResolved()
If elementSymbols is not null return true, else return false |
void |
setExpression(Expression expression)
Set the expression represented by this symbol. |
Methods inherited from class org.teiid.query.sql.symbol.SingleElementSymbol |
---|
getShortName |
Methods inherited from class org.teiid.query.sql.symbol.Symbol |
---|
getCanonical, getCanonicalName, getName, getOutputName, getShortCanonicalName, getShortName, setName, setOutputName, setShortCanonicalName, setShortName, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ExpressionSymbol(String name, String canonicalName, Expression expression)
name
- canonicalName
- public ExpressionSymbol(String name, Expression expression)
Method Detail |
---|
public Expression getExpression()
public void setExpression(Expression expression)
expression
- Expression for this expression symbolpublic Class getType()
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
visitor
- Visitor being usedpublic boolean isResolved()
isResolved
in interface Expression
isResolved
in class Symbol
public 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 object
Symbol.equals(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |