Package jminusminus
Class JStatementExpression
java.lang.Object
jminusminus.JAST
jminusminus.JStatement
jminusminus.JStatementExpression
The AST node for an expression that appears as a statement. Only the expressions that have a
 side-effect are valid statement expressions.
- 
Field SummaryFieldsFields inherited from class jminusminus.JASTcompilationUnit, line
- 
Constructor SummaryConstructorsConstructorDescriptionJStatementExpression(int line, JExpression expr) Constructs an AST node for a statement expression.
- 
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
- 
Field Details- 
exprThe expression.
 
- 
- 
Constructor Details- 
JStatementExpressionConstructs an AST node for a statement expression.- Parameters:
- line- line in which the expression occurs in the source file.
- expr- the 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.
 
-