|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.birt.data.engine.api.querydefn.BaseExpression
org.eclipse.birt.data.engine.api.querydefn.ConditionalExpression
Default implementation of IConditionalExpression interface.
| Field Summary | |
protected IScriptExpression |
expr
|
protected IScriptExpression |
op1
|
protected IScriptExpression |
op2
|
protected int |
operator
|
| Fields inherited from class org.eclipse.birt.data.engine.api.querydefn.BaseExpression |
dataType, handle |
| Fields inherited from interface org.eclipse.birt.data.engine.api.IConditionalExpression |
OP_BETWEEN, OP_BOTTOM_N, OP_BOTTOM_PERCENT, OP_EQ, OP_FALSE, OP_GE, OP_GT, OP_LE, OP_LIKE, OP_LT, OP_MATCH, OP_NE, OP_NONE, OP_NOT_BETWEEN, OP_NOT_LIKE, OP_NOT_MATCH, OP_NOT_NULL, OP_NULL, OP_TOP_N, OP_TOP_PERCENT, OP_TRUE |
| Fields inherited from interface org.eclipse.birt.data.engine.api.IBaseExpression |
GROUP_OVERALL |
| Constructor Summary | |
ConditionalExpression(IScriptExpression expr,
int operator,
IScriptExpression op1,
IScriptExpression op2)
Constructs an instance, setting main expression, operator, and operands |
|
ConditionalExpression(java.lang.String expr,
int operator)
Constructs an instance, setting main expression and the operator (which takes no operands) |
|
ConditionalExpression(java.lang.String expr,
int operator,
java.lang.String operand1)
Constructs an instance, setting main expression, a unary operator, and its operand |
|
ConditionalExpression(java.lang.String expr,
int operator,
java.lang.String operand1,
java.lang.String operand2)
Constructs an instance, setting main expression, a binary operator, and its two operands |
|
| Method Summary | |
int |
getDataType()
Gets the data type of the expression. |
IScriptExpression |
getExpression()
Gets the main expression |
IScriptExpression |
getOperand1()
Gets the expression for operand 1. |
IScriptExpression |
getOperand2()
Gets the expression for operand 2. |
int |
getOperator()
Gets the operator. |
void |
setDataType(int dataType)
Sets the data type of the expression. |
void |
setGroupName(java.lang.String groupName)
Set the group name this expession belongs to. |
| Methods inherited from class org.eclipse.birt.data.engine.api.querydefn.BaseExpression |
getGroupName, getHandle, getID, setHandle, setID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.birt.data.engine.api.IBaseExpression |
getGroupName, getHandle, setHandle |
| Field Detail |
protected IScriptExpression expr
protected int operator
protected IScriptExpression op1
protected IScriptExpression op2
| Constructor Detail |
public ConditionalExpression(java.lang.String expr,
int operator)
public ConditionalExpression(java.lang.String expr,
int operator,
java.lang.String operand1)
public ConditionalExpression(java.lang.String expr,
int operator,
java.lang.String operand1,
java.lang.String operand2)
public ConditionalExpression(IScriptExpression expr,
int operator,
IScriptExpression op1,
IScriptExpression op2)
| Method Detail |
public IScriptExpression getExpression()
IConditionalExpression
getExpression in interface IConditionalExpressionIConditionalExpression.getExpression()public int getOperator()
IConditionalExpression
getOperator in interface IConditionalExpressionIConditionalExpression.getOperator()public IScriptExpression getOperand1()
IConditionalExpression
getOperand1 in interface IConditionalExpressionIConditionalExpression.getOperand1()public IScriptExpression getOperand2()
IConditionalExpression
getOperand2 in interface IConditionalExpressionIConditionalExpression.getOperand2()public int getDataType()
IBaseExpressionorg.eclipse.birt.core.data.DataType class.
If the result data type of the expression is not known,
return UNKNOWN_TYPE.
getDataType in interface IBaseExpressiongetDataType in class BaseExpressionIBaseExpression.getDataType()public void setDataType(int dataType)
BOOLEAN_TYPE
is expected.
setDataType in class BaseExpressionpublic void setGroupName(java.lang.String groupName)
IBaseExpression
setGroupName in interface IBaseExpressionsetGroupName in class BaseExpression
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||