Package org.qdl_lang.statements
Class TryCatch
- java.lang.Object
- 
- org.qdl_lang.statements.TryCatch
 
- 
- All Implemented Interfaces:
- Serializable,- Statement
 
 public class TryCatch extends Object implements Statement Created by Jeff Gaynor 
 on 1/22/20 at 10:36 AM- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringERROR_CODE_NAMEstatic StringERROR_MESSAGE_NAMEstatic StringERROR_STATE_NAMEstatic LongRESERVED_ASSERTION_CODEstatic LongRESERVED_SYSTEM_ERROR_CODEstatic LongRESERVED_USER_ERROR_CODE
 - 
Constructor SummaryConstructors Constructor Description TryCatch()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description QDLValueevaluate(State state)List<Statement>getCatchStatements()List<String>getSourceCode()TokenPositiongetTokenPosition()List<Statement>getTryStatements()booleanhasTokenPosition()voidsetCatchStatements(List<Statement> catchStatements)voidsetSourceCode(List<String> sourceCode)voidsetTokenPosition(TokenPosition tokenPosition)Set the location of this token from the parser.voidsetTryStatements(List<Statement> tryStatements)
 
- 
- 
- 
Field Detail- 
RESERVED_SYSTEM_ERROR_CODEpublic static final Long RESERVED_SYSTEM_ERROR_CODE 
 - 
RESERVED_ASSERTION_CODEpublic static final Long RESERVED_ASSERTION_CODE 
 - 
RESERVED_USER_ERROR_CODEpublic static final Long RESERVED_USER_ERROR_CODE 
 - 
ERROR_CODE_NAMEpublic static final String ERROR_CODE_NAME - See Also:
- Constant Field Values
 
 - 
ERROR_MESSAGE_NAMEpublic static final String ERROR_MESSAGE_NAME - See Also:
- Constant Field Values
 
 - 
ERROR_STATE_NAMEpublic static final String ERROR_STATE_NAME - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
setTokenPositionpublic 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 interface- Statement
 
 - 
getTokenPositionpublic TokenPosition getTokenPosition() - Specified by:
- getTokenPositionin interface- Statement
 
 - 
hasTokenPositionpublic boolean hasTokenPosition() - Specified by:
- hasTokenPositionin interface- Statement
 
 - 
getSourceCodepublic List<String> getSourceCode() - Specified by:
- getSourceCodein interface- Statement
 
 - 
setSourceCodepublic void setSourceCode(List<String> sourceCode) - Specified by:
- setSourceCodein interface- Statement
 
 
- 
 
-