|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjects.Cast
public class Cast
A type cast of an SQL expression.
| Constructor Summary | |
|---|---|
Cast(Term expr,
Type type)
Creates a new Cast. |
|
| Method Summary | |
|---|---|
static Cast |
castToString(Term expr)
|
boolean |
equals(java.lang.Object o)
|
Term |
getExpression()
Returns the expression whose type has to be casted. |
java.lang.String |
getSqlValue(EvalContext eval)
Returns the SQL expression for this term. |
Type |
getType()
Returns the type to which the expression has to be casted. |
int |
hashCode()
|
boolean |
isConstant()
Tests whether the cast can be evaluated without an object. |
boolean |
isJoin()
Tests whether this expression enforces any kind of join. |
boolean |
isSelection()
Tests whether this expression is a selection. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Cast(Term expr,
Type type)
| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic final Term getExpression()
public final Type getType()
public java.lang.String getSqlValue(EvalContext eval)
getSqlValue in interface Termpublic int hashCode()
hashCode in class java.lang.Objectpublic final boolean isConstant()
isConstant in interface Termpublic final boolean isJoin()
Term
isJoin in interface Termpublic final boolean isSelection()
TermWith selection is an expression meant that binds a Member to
one Literal.
isSelection in interface Termpublic java.lang.String toString()
toString in class java.lang.Objectpublic static Cast castToString(Term expr)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||