Package jminusminus
Class JThrowStatement
java.lang.Object
jminusminus.JAST
jminusminus.JStatement
jminusminus.JThrowStatement
An AST node for a throw-statement.
-
Field Summary
Fields inherited from class jminusminus.JAST
compilationUnit, line
-
Constructor Summary
ConstructorDescriptionJThrowStatement
(int line, JExpression expr) Constructs an AST node for a throw-statement. -
Method Summary
Modifier and TypeMethodDescriptionPerforms semantic analysis on this AST and returns the (possibly modified) AST.void
Performs code generation for this AST.void
toJSON
(JSONElement json) Stores information about this AST in JSON format.Methods inherited from class jminusminus.JAST
line, partialCodegen, unescape
-
Constructor Details
-
JThrowStatement
Constructs an AST node for a throw-statement.- Parameters:
line
- line in which the throw-statement appears in the source file.expr
- the returned expression.
-
-
Method Details
-
analyze
Performs semantic analysis on this AST and returns the (possibly modified) AST. -
codegen
Performs code generation for this AST. -
toJSON
Stores information about this AST in JSON format.
-