Package org.qdl_lang.statements
Class AssertStatement
- java.lang.Object
-
- org.qdl_lang.statements.AssertStatement
-
- All Implemented Interfaces:
Serializable,Statement
public class AssertStatement extends Object implements Statement
Created by Jeff Gaynor
on 6/1/21 at 12:53 PM- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssertStatement(TokenPosition tokenPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QDLValueevaluate(State state)ExpressionInterfacegetConditional()ExpressionInterfacegetMesssge()List<String>getSourceCode()TokenPositiongetTokenPosition()booleanhasTokenPosition()voidsetConditional(ExpressionInterface conditional)voidsetMesssge(ExpressionInterface messsge)voidsetSourceCode(List<String> sourceCode)voidsetTokenPosition(TokenPosition tokenPosition)Set the location of this token from the parser.
-
-
-
Constructor Detail
-
AssertStatement
public AssertStatement(TokenPosition tokenPosition)
-
-
Method Detail
-
setTokenPosition
public void setTokenPosition(TokenPosition tokenPosition)
Description copied from interface:StatementSet the location of this token from the parser. This is used for error notifications later.- Specified by:
setTokenPositionin interfaceStatement
-
getTokenPosition
public TokenPosition getTokenPosition()
- Specified by:
getTokenPositionin interfaceStatement
-
hasTokenPosition
public boolean hasTokenPosition()
- Specified by:
hasTokenPositionin interfaceStatement
-
getConditional
public ExpressionInterface getConditional()
-
setConditional
public void setConditional(ExpressionInterface conditional)
-
getMesssge
public ExpressionInterface getMesssge()
-
setMesssge
public void setMesssge(ExpressionInterface messsge)
-
getSourceCode
public List<String> getSourceCode()
- Specified by:
getSourceCodein interfaceStatement
-
setSourceCode
public void setSourceCode(List<String> sourceCode)
- Specified by:
setSourceCodein interfaceStatement
-
-