public class ExpressionGroupInfo extends ExpressionNode
| Modifier and Type | Field and Description |
|---|---|
static int |
AND
Logic operator type which is applied between two Expressions.
|
static int |
OR
Logic operator type which is applied between two Expressions.
|
| Constructor and Description |
|---|
ExpressionGroupInfo()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addExpression(ExpressionNode expressionInfo)
Adds a Expression into the Expression Group.
|
ExpressionNode |
deleteExpression(int index)
Removes a Expression from the Expression Group.
|
int |
getExpressionLogicType()
Gets the logic type of this Expression Group between others.
|
java.util.List<ExpressionNode> |
getExpressions()
Gets all sub Expression Groups and Expressions of this Expression Group.
|
void |
setExpressionLogicType(int expressionLogicType)
Sets the logic type of this Expression Group between others.
|
void |
setExpressions(java.util.List<ExpressionNode> expressions)
Sets a set of all sub Expression Groups and Expressions.
|
java.lang.String |
toString() |
public static final int AND
public static final int OR
public ExpressionGroupInfo()
public ExpressionNode deleteExpression(int index)
public boolean addExpression(ExpressionNode expressionInfo)
expressionInfo - A sub Expression Group or Expression.true if the Expression node was inserted successfully, otherwise return false.public java.util.List<ExpressionNode> getExpressions()
public void setExpressions(java.util.List<ExpressionNode> expressions)
expressions - a list of all sub Expression Groups and Expressionspublic int getExpressionLogicType()
AND or OR .public void setExpressionLogicType(int expressionLogicType)
throws java.lang.IllegalArgumentException
expressionLogicType - the logic type of this Expression Group between others.
I.e, it is AND or OR .java.lang.IllegalArgumentExceptionpublic java.lang.String toString()
toString in class java.lang.Object