|
||||||||||
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 Expression
public int getIndex()
public java.lang.String getContextSymbol()
getContextSymbol
in interface ContextReference
public Expression getValueExpression()
getValueExpression
in interface ContextReference
public ElementSymbol getExpression()
public java.lang.Class<?> getType()
Expression
Expression.isResolved()
returns true).
getType
in interface Expression
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor
in interface LanguageObject
visitor
- Visitor being usedpublic java.lang.Object clone()
LanguageObject
clone
in interface LanguageObject
clone
in class java.lang.Object
Object.clone()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Other object
public void setType(java.lang.Class<?> type)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public 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 |