Package org.mozilla.zest.core.v1
Class ZestExpressionStatusCode
- java.lang.Object
-
- org.mozilla.zest.core.v1.ZestElement
-
- org.mozilla.zest.core.v1.ZestExpression
-
- org.mozilla.zest.core.v1.ZestExpressionStatusCode
-
- All Implemented Interfaces:
ZestExpressionElement
public class ZestExpressionStatusCode extends ZestExpression
The Class ZestExpressionStatusCode.
-
-
Field Summary
-
Fields inherited from class org.mozilla.zest.core.v1.ZestElement
JSON_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description ZestExpressionStatusCode()Instantiates a new zest expression status code.ZestExpressionStatusCode(int code)Instantiates a new zest expression status code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZestExpressionStatusCodedeepCopy()Deep copy.intgetCode()Gets the code.booleanisTrue(ZestRuntime runtime)the boolean value result of the expression without inverse flag.voidsetCode(int code)Sets the code.StringtoString()-
Methods inherited from class org.mozilla.zest.core.v1.ZestExpression
evaluate, isInverse, isLeaf, setInverse
-
Methods inherited from class org.mozilla.zest.core.v1.ZestElement
getElementType, isSameSubclass, setElementType
-
-
-
-
Method Detail
-
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
-
getCode
public int getCode()
Gets the code.- Returns:
- the code
-
setCode
public void setCode(int code)
Sets the code.- Parameters:
code- the new code
-
deepCopy
public ZestExpressionStatusCode deepCopy()
Description copied from class:ZestElementDeep copy.- Specified by:
deepCopyin interfaceZestExpressionElement- Specified by:
deepCopyin classZestExpression- Returns:
- the zest element
- See Also:
ZestElement
-
-