|
||||||||||
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
public class ConditionalExpression
Default implementation of IConditionalExpression
interface.
Field Summary | |
---|---|
protected IScriptExpression |
expr
|
protected IBaseExpression |
op1
|
protected IBaseExpression |
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_IN, OP_LE, OP_LIKE, OP_LT, OP_MATCH, OP_NE, OP_NONE, OP_NOT_BETWEEN, OP_NOT_IN, 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,
IBaseExpression op1,
IBaseExpression 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.util.List operand)
Constructs an instance, setting main expression, a unary operator, and its Collection operand |
|
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 |
IBaseExpression |
getOperand1()
Gets the expression for operand 1. |
IBaseExpression |
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 IBaseExpression op1
protected IBaseExpression 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, IBaseExpression op1, IBaseExpression op2)
public ConditionalExpression(java.lang.String expr, int operator, java.util.List operand)
Method Detail |
---|
public IScriptExpression getExpression()
IConditionalExpression
getExpression
in interface IConditionalExpression
IConditionalExpression.getExpression()
public int getOperator()
IConditionalExpression
getOperator
in interface IConditionalExpression
IConditionalExpression.getOperator()
public IBaseExpression getOperand1()
IConditionalExpression
getOperand1
in interface IConditionalExpression
IConditionalExpression.getOperand1()
public IBaseExpression getOperand2()
IConditionalExpression
getOperand2
in interface IConditionalExpression
IConditionalExpression.getOperand2()
public int getDataType()
IBaseExpression
org.eclipse.birt.core.data.DataType
class.
If the result data type of the expression is not known,
return UNKNOWN_TYPE
.
getDataType
in interface IBaseExpression
getDataType
in class BaseExpression
IBaseExpression.getDataType()
public void setDataType(int dataType)
BOOLEAN_TYPE
is expected.
setDataType
in class BaseExpression
public void setGroupName(java.lang.String groupName)
IBaseExpression
setGroupName
in interface IBaseExpression
setGroupName
in class BaseExpression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |