Package gudusoft.gsqlparser.nodes.mssql
Class TTryCatchSqlNode
Object
gudusoft.gsqlparser.nodes.TParseTreeNode
gudusoft.gsqlparser.nodes.mssql.TTryCatchSqlNode
- All Implemented Interfaces:
Visitable,Iterator<TSourceToken>
Parse tree node for SQL Server TRY...CATCH block.
Contains separate statement lists for the TRY block and CATCH block.
-
Field Summary
Fields inherited from class gudusoft.gsqlparser.nodes.TParseTreeNode
dbvendor, doubleLinkedTokenListToString, nodeActionAppend, nodeActionInsert, nodeActionRemove, nodeActionUnknown, nodeActionUpdate, nodeActionUpdateText, nodeChangeEndToken, nodeChangeStartToken -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the statements inside the BEGIN CATCH ...Get the statements inside the BEGIN TRY ...voidInitialize with TRY statements only (no CATCH block).voidInitialize with both TRY and CATCH statements.voidsetCatchStmts(TStatementListSqlNode catchStmts) voidsetTryStmts(TStatementListSqlNode tryStmts) Methods inherited from class gudusoft.gsqlparser.nodes.TParseTreeNode
accept, acceptChildren, addAllMyTokensToTokenList, addToTokenChain, appendNewNode, calculateTokenCount, doAppendNewNode, doParse, fastSetString, getAnchorNode, getColumnNo, getCommentAfterNode, getCommentBeforeNode, getCompactString, getDummyTag, getEndToken, getEvaluateDatatype, getEvalValue, getGsqlparser, getLineNo, getLocation, getMd5, getNodeStatus, getNodeType, getParentObjectName, getPlainText, getStartToken, getTokenCount, hasNext, init, init, init, init, insertAfterAToken, insertNewNodeBeforeMe, isChanged, isTokensInChain, next, refreshAllNodesTokenCount, remove, removeAllMyTokensFromTokenList, removeTokens, removeTokensBetweenNodes, removeTokensBetweenToken, replaceWithNewNode, resetIterator, setAnchorNode, setChanged, setDummyTag, setEndToken, setEndToken, setEndToken, setEndToken, setEndToken, setEndTokenDirectly, setEvaluateDatatype, setEvalValue, setGsqlparser, setIncludingComment, setLocation, setNewSubNode, setNodeStatus, setNodeType, setParent, setPlainText, setStartToken, setStartToken, setStartToken, setStartToken, setStartTokenDirectly, setString, setString2, subNodeInNode, toScript, toString, toString2Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
TTryCatchSqlNode
public TTryCatchSqlNode()
-
-
Method Details
-
init
Initialize with TRY statements only (no CATCH block).- Overrides:
initin classTParseTreeNode- Parameters:
arg1- first argument
-
init
Initialize with both TRY and CATCH statements.- Overrides:
initin classTParseTreeNode
-
getTryStmts
Get the statements inside the BEGIN TRY ... END TRY block. -
getCatchStmts
Get the statements inside the BEGIN CATCH ... END CATCH block. May be null if there is no CATCH block. -
setTryStmts
-
setCatchStmts
-