Package org.mozilla.zest.core.v1
Class ZestExpressionAnd
- java.lang.Object
-
- org.mozilla.zest.core.v1.ZestElement
-
- org.mozilla.zest.core.v1.ZestExpression
-
- org.mozilla.zest.core.v1.ZestStructuredExpression
-
- org.mozilla.zest.core.v1.ZestExpressionAnd
-
- All Implemented Interfaces:
ZestExpressionElement
public class ZestExpressionAnd extends ZestStructuredExpression
This class represent a List of AND clauses
-
-
Field Summary
-
Fields inherited from class org.mozilla.zest.core.v1.ZestElement
JSON_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description ZestExpressionAnd()Main construptor.ZestExpressionAnd(List<ZestExpressionElement> andList)Construptor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZestExpressionAnddeepCopy()Deep copy.booleanisTrue(ZestRuntime runtime)the boolean value result of the expression without inverse flag.StringtoString()-
Methods inherited from class org.mozilla.zest.core.v1.ZestStructuredExpression
addChildCondition, addChildCondition, clearChildren, getChild, getChildrenCondition, isLeaf, removeAllChildren, removeChildCondition, removeChildCondition, setChildrenCondition
-
Methods inherited from class org.mozilla.zest.core.v1.ZestExpression
evaluate, isInverse, setInverse
-
Methods inherited from class org.mozilla.zest.core.v1.ZestElement
getElementType, isSameSubclass, setElementType
-
-
-
-
Constructor Detail
-
ZestExpressionAnd
public ZestExpressionAnd()
Main construptor.
-
ZestExpressionAnd
public ZestExpressionAnd(List<ZestExpressionElement> andList)
Construptor.- Parameters:
andList- the list of AND clauses
-
-
Method Detail
-
deepCopy
public ZestExpressionAnd deepCopy()
Description copied from class:ZestElementDeep copy.- Specified by:
deepCopyin interfaceZestExpressionElement- Specified by:
deepCopyin classZestExpression- Returns:
- the zest element
- See Also:
ZestElement
-
isTrue
public boolean isTrue(ZestRuntime runtime)
Description copied from interface:ZestExpressionElementthe boolean value result of the expression without inverse flag.- Parameters:
runtime- the runtime- Returns:
- the boolean value of the expression without inverse flag
-
-