Package jminusminus
Class JNewOp
java.lang.Object
jminusminus.JAST
jminusminus.JStatement
jminusminus.JExpression
jminusminus.JNewOp
The AST node for a new expression. It keeps track of the constructor representing the
 expression, its arguments and their types.
- 
Field SummaryFields inherited from class jminusminus.JExpressionisStatementExpression, typeFields inherited from class jminusminus.JASTcompilationUnit, line
- 
Constructor SummaryConstructorsConstructorDescriptionJNewOp(int line, Type type, ArrayList<JExpression> arguments) Constructs an AST node for a new expression.
- 
Method SummaryModifier and TypeMethodDescriptionAnalyzes and returns a JExpression.voidPerforms code generation for this AST.voidtoJSON(JSONElement json) Stores information about this AST in JSON format.Methods inherited from class jminusminus.JExpressioncodegen, isStatementExpression, typeMethods inherited from class jminusminus.JASTline, partialCodegen, unescape
- 
Constructor Details- 
JNewOpConstructs an AST node for a new expression.- Parameters:
- line- the line in which the "new" expression occurs in the source file.
- type- the type being constructed.
- arguments- arguments to the constructor.
 
 
- 
- 
Method Details- 
analyzeAnalyzes and returns a JExpression.- Specified by:
- analyzein class- JExpression
- Parameters:
- context- context in which names are resolved.
- Returns:
- the analyzed (and possibly rewritten) AST subtree.
 
- 
codegenPerforms code generation for this AST.
- 
toJSONStores information about this AST in JSON format.
 
-