Package ru.curs.celesta.score
Class BinaryTermOp
- java.lang.Object
-
- ru.curs.celesta.score.Expr
-
- ru.curs.celesta.score.BinaryTermOp
-
public final class BinaryTermOp extends Expr
+, -, *, /.
-
-
Field Summary
Fields Modifier and Type Field Description static int
CONCAT
Index for string concatenation operator.static int
MINUS
Index for subtraction operator.static int
OVER
Index for division operator.static int
PLUS
Index for addition operator.static int
TIMES
Index for multiplication operator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ExprVisitor visitor)
ViewColumnMeta<?>
getMeta()
Returns the expression type.List<Expr>
getOperands()
Returns the operands.int
getOperator()
Returns the operator.-
Methods inherited from class ru.curs.celesta.score.Expr
getCSQL, getSQL, resolveFieldRefs
-
-
-
-
Field Detail
-
PLUS
public static final int PLUS
Index for addition operator.- See Also:
- Constant Field Values
-
MINUS
public static final int MINUS
Index for subtraction operator.- See Also:
- Constant Field Values
-
TIMES
public static final int TIMES
Index for multiplication operator.- See Also:
- Constant Field Values
-
OVER
public static final int OVER
Index for division operator.- See Also:
- Constant Field Values
-
CONCAT
public static final int CONCAT
Index for string concatenation operator.- See Also:
- Constant Field Values
-
-
Method Detail
-
getOperator
public int getOperator()
Returns the operator.
-
getMeta
public ViewColumnMeta<?> getMeta()
Description copied from class:Expr
Returns the expression type.
-
accept
public void accept(ExprVisitor visitor) throws ParseException
- Throws:
ParseException
-
-