|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mguennewig.pobjects.LiteralSet
public class LiteralSet
A set of literal values (a, b, c, ...), where the elements are
for example strings, numbers or an object.
| Constructor Summary | |
|---|---|
LiteralSet(java.lang.Object... values)
Create a set of literal values. |
|
| Method Summary | |
|---|---|
java.lang.Boolean |
contains(java.lang.Object value)
Tests whether value is part of the set. |
boolean |
containsNull()
Tests whether this set contains the null value. |
boolean |
equals(java.lang.Object obj)
Tests whether this literal set is equal to another object. |
java.lang.String |
getSqlValue(EvalContext eval)
Returns the SQL representation for this term. |
java.lang.Object |
getValue(int n)
Returns the value at position n. |
int |
hashCode()
|
boolean |
isConstant()
Tests whether the expression 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. |
int |
size()
Returns the number of values in this literal set. |
java.lang.String |
toString()
Returns a textual representation for this literal set. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LiteralSet(java.lang.Object... values)
java.lang.IllegalArgumentException - if no values are given.| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objecttrue if the other object is an existing literal set
with equal value list. Two value lists are equal, if they have the same
length and every value is equal and in the same order as in the other
list.public final java.lang.Boolean contains(java.lang.Object value)
value is part of the set.
true if value is part of the set,
null if the set contains null, otherwise
falsepublic final boolean containsNull()
null value.
public java.lang.String getSqlValue(EvalContext eval)
getSqlValue in interface Termeval - An unused evaluation context.toString()public final java.lang.Object getValue(int n)
n.
public int hashCode()
hashCode in class java.lang.Objectpublic final boolean isConstant()
Term
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 final int size()
public java.lang.String toString()
toString in class java.lang.ObjectLiteral.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||