Package org.qdl_lang.statements
Class BlockStatement
- java.lang.Object
-
- org.qdl_lang.statements.BlockStatement
-
- All Implemented Interfaces:
Serializable,Statement
- Direct Known Subclasses:
LocalBlockStatement
public class BlockStatement extends Object implements Statement
Created by Jeff Gaynor
on 6/22/21 at 6:34 AM- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description BlockStatement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QDLValueevaluate(State state)List<String>getSourceCode()List<Statement>getStatements()TokenPositiongetTokenPosition()booleanhasTokenPosition()voidsetSourceCode(List<String> sourceCode)voidsetStatements(List<Statement> statements)voidsetTokenPosition(TokenPosition tokenPosition)Set the location of this token from the parser.
-
-
-
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
-
getSourceCode
public List<String> getSourceCode()
- Specified by:
getSourceCodein interfaceStatement
-
setSourceCode
public void setSourceCode(List<String> sourceCode)
- Specified by:
setSourceCodein interfaceStatement
-
-