Package org.mozilla.zest.core.v1
Class ZestAssertion
- java.lang.Object
-
- org.mozilla.zest.core.v1.ZestElement
-
- org.mozilla.zest.core.v1.ZestAssertion
-
public class ZestAssertion extends ZestElement
The Class ZestAssertion.
-
-
Field Summary
-
Fields inherited from class org.mozilla.zest.core.v1.ZestElement
JSON_ELEMENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description ZestAssertion()Instantiates a new zest assertion.ZestAssertion(ZestExpressionElement rootExpr)Instantiates a new zest assertion.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZestElementdeepCopy()Deep copy.ZestExpressionElementgetRootExpression()Gets the root expression.booleanisSameSubclass(ZestElement ze)Checks if is same subclass.booleanisValid(ZestRuntime runtime)Checks if is valid.ZestExpressionElementsetRootExpression(ZestExpressionElement new_rootExpression)Sets the root expression.-
Methods inherited from class org.mozilla.zest.core.v1.ZestElement
getElementType, setElementType
-
-
-
-
Constructor Detail
-
ZestAssertion
public ZestAssertion()
Instantiates a new zest assertion.
-
ZestAssertion
public ZestAssertion(ZestExpressionElement rootExpr)
Instantiates a new zest assertion.- Parameters:
rootExpr- the root expr
-
-
Method Detail
-
getRootExpression
public ZestExpressionElement getRootExpression()
Gets the root expression.- Returns:
- the root expression
-
setRootExpression
public ZestExpressionElement setRootExpression(ZestExpressionElement new_rootExpression)
Sets the root expression.- Parameters:
new_rootExpression- the new_root expression- Returns:
- the zest expression element
-
isValid
public boolean isValid(ZestRuntime runtime)
Checks if is valid.- Parameters:
runtime- the runtime- Returns:
- true, if is valid
-
isSameSubclass
public boolean isSameSubclass(ZestElement ze)
Description copied from class:ZestElementChecks if is same subclass.- Overrides:
isSameSubclassin classZestElement- Parameters:
ze- the ze- Returns:
- true, if is same subclass
-
deepCopy
public ZestElement deepCopy()
Description copied from class:ZestElementDeep copy.- Specified by:
deepCopyin classZestElement- Returns:
- the zest element
-
-