1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package org.apache.expreval.expr;
22
23 import org.apache.expreval.expr.node.GenericValue;
24 import org.apache.hadoop.hbase.hbql.client.HBqlException;
25
26 import java.util.List;
27
28 public abstract class DelegateStmt<T extends GenericExpression> extends GenericExpression {
29
30 private T typedExpr = null;
31
32 protected DelegateStmt(final ExpressionType type, GenericValue... args) {
33 super(type, args);
34 }
35
36 protected DelegateStmt(final ExpressionType type, final List<GenericValue> args) {
37 super(type, args);
38 }
39
40 protected DelegateStmt(final ExpressionType type, final GenericValue arg, final List<GenericValue> argList) {
41 super(type, arg, argList);
42 }
43
44 protected T getTypedExpr() {
45 return this.typedExpr;
46 }
47
48 protected void setTypedExpr(final T typedExpr) throws HBqlException {
49 this.typedExpr = typedExpr;
50
51 this.getTypedExpr().setExpressionContext(this.getExpressionContext());
52 }
53 }