Package jminusminus
Class JBlock
java.lang.Object
jminusminus.JAST
jminusminus.JStatement
jminusminus.JBlock
The AST node for a block, which delimits a nested level of scope.
- 
Field SummaryFields inherited from class jminusminus.JASTcompilationUnit, line
- 
Constructor SummaryConstructorsConstructorDescriptionJBlock(int line, ArrayList<JStatement> statements) Constructs an AST node for a block.
- 
Method SummaryModifier and TypeMethodDescriptionPerforms semantic analysis on this AST and returns the (possibly modified) AST.voidPerforms code generation for this AST.Returns the list of statements comprising this block.voidtoJSON(JSONElement json) Stores information about this AST in JSON format.Methods inherited from class jminusminus.JASTline, partialCodegen, unescape
- 
Constructor Details- 
JBlockConstructs an AST node for a block.- Parameters:
- line- line in which the block occurs in the source file.
- statements- list of statements forming the block body.
 
 
- 
- 
Method Details- 
statementsReturns the list of statements comprising this block.- Returns:
- the list of statements comprising this block.
 
- 
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.
 
-