Package jminusminus
Class JTryStatement
java.lang.Object
jminusminus.JAST
jminusminus.JStatement
jminusminus.JTryStatement
The AST node for a try-catch-finally statement.
- 
Field SummaryFields inherited from class jminusminus.JASTcompilationUnit, line
- 
Constructor SummaryConstructorsConstructorDescriptionJTryStatement(int line, JBlock tryBlock, ArrayList<JFormalParameter> parameters, ArrayList<JBlock> catchBlocks, JBlock finallyBlock) Constructs an AST node for a try-statement.
- 
Method SummaryModifier and TypeMethodDescriptionPerforms semantic analysis on this AST and returns the (possibly modified) AST.voidPerforms code generation for this AST.voidtoJSON(JSONElement json) Stores information about this AST in JSON format.Methods inherited from class jminusminus.JASTline, partialCodegen, unescape
- 
Constructor Details- 
JTryStatementpublic JTryStatement(int line, JBlock tryBlock, ArrayList<JFormalParameter> parameters, ArrayList<JBlock> catchBlocks, JBlock finallyBlock) Constructs an AST node for a try-statement.- Parameters:
- line- line in which the while-statement occurs in the source file.
- tryBlock- the try block.
- parameters- the catch parameters.
- catchBlocks- the catch blocks.
- finallyBlock- the finally block.
 
 
- 
- 
Method Details- 
analyzePerforms semantic analysis on this AST and returns the (possibly modified) AST.
- 
codegenPerforms code generation for this AST.
- 
toJSONStores information about this AST in JSON format.
 
-