|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.sail.query.MathExpr
A mathematical expression consisting an operator and two arguments.
| Field Summary | |
static int |
DIVIDE
The division (/) operator. |
static int |
MULTIPLY
The multiplication (*) operator. |
static int |
PLUS
The plus (+) operator. |
static int |
REMAINDER
The remainder (%) operator. |
static int |
SUBTRACT
The subtraction (-) operator. |
| Constructor Summary | |
MathExpr(ValueExpr leftArg,
ValueExpr rightArg,
int op)
|
|
| Method Summary | |
ValueExpr |
getLeftArg()
|
int |
getOperator()
|
ValueExpr |
getRightArg()
|
String |
getString()
Gets the String value for this expression. |
Value |
getValue()
Gets the value of this expression. |
static Literal |
getValue(Literal leftLit,
Literal rightLit,
int op)
|
void |
getVariables(Collection variables)
Gets all variables that are used in this StringExpr. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int PLUS
public static final int SUBTRACT
public static final int MULTIPLY
public static final int DIVIDE
public static final int REMAINDER
| Constructor Detail |
public MathExpr(ValueExpr leftArg,
ValueExpr rightArg,
int op)
| Method Detail |
public ValueExpr getLeftArg()
public ValueExpr getRightArg()
public int getOperator()
public void getVariables(Collection variables)
StringExpr
getVariables in interface StringExprvariables - a Collection to add relevant Var objects to.public String getString()
StringExpr
getString in interface StringExprpublic Value getValue()
ValueExpr
getValue in interface ValueExpr
public static Literal getValue(Literal leftLit,
Literal rightLit,
int op)
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||