Package jminusminus
Class JReturnStatement
java.lang.Object
jminusminus.JAST
jminusminus.JStatement
jminusminus.JReturnStatement
The AST node for a return-statement. If the enclosing method is non-void, then there is a
 value to return, so we keep track of the expression denoting that value and its type.
- 
Field SummaryFields inherited from class jminusminus.JASTcompilationUnit, line
- 
Constructor SummaryConstructorsConstructorDescriptionJReturnStatement(int line, JExpression expr) Constructs an AST node for a return-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- 
JReturnStatementConstructs an AST node for a return-statement.- Parameters:
- line- line in which the return-statement appears in the source file.
- expr- the returned expression.
 
 
- 
- 
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.
 
-