|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.query.sql.symbol.Reference
public class Reference
This class represents a reference (positional from the user query, or to an element from another scope). This reference may resolve to many different values during evaluation. For any particular bound value, it is treated as a constant.
| Nested Class Summary | |
|---|---|
static interface |
Reference.Constraint
|
| Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject |
|---|
LanguageObject.Util |
| Constructor Summary | |
|---|---|
Reference(ElementSymbol expression)
Constructor for an element Reference. |
|
Reference(int refIndex)
Constructor for a positional Reference. |
|
| Method Summary | |
|---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
java.lang.Object |
clone()
Implement clone to make objects cloneable. |
boolean |
equals(java.lang.Object obj)
Compare this constant to another constant for equality. |
Reference.Constraint |
getConstraint()
|
java.lang.String |
getContextSymbol()
|
ElementSymbol |
getExpression()
|
int |
getIndex()
|
java.lang.Class<?> |
getType()
Get the return type of this expression. |
Expression |
getValueExpression()
|
int |
hashCode()
Define hash code to be that of the underlying object to make it stable. |
boolean |
isCorrelated()
|
boolean |
isPositional()
|
boolean |
isResolved()
Return true if expression has been fully resolved. |
void |
setConstraint(Reference.Constraint constraint)
|
void |
setExpression(ElementSymbol expression)
Should never be called - used for an xml hack |
void |
setType(java.lang.Class<?> type)
|
java.lang.String |
toString()
Return a String representation of this object using SQLStringVisitor. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Reference(int refIndex)
public Reference(ElementSymbol expression)
| Method Detail |
|---|
public Reference.Constraint getConstraint()
public void setConstraint(Reference.Constraint constraint)
public boolean isResolved()
Expression
isResolved in interface Expressionpublic int getIndex()
public java.lang.String getContextSymbol()
getContextSymbol in interface ContextReferencepublic Expression getValueExpression()
getValueExpression in interface ContextReferencepublic ElementSymbol getExpression()
public java.lang.Class<?> getType()
ExpressionExpression.isResolved() returns true).
getType in interface Expressionpublic void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor in interface LanguageObjectvisitor - Visitor being usedpublic java.lang.Object clone()
LanguageObject
clone in interface LanguageObjectclone in class java.lang.ObjectObject.clone()public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Other object
public void setType(java.lang.Class<?> type)
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean isCorrelated()
public boolean isPositional()
public void setExpression(ElementSymbol expression)
expression -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||