Package jminusminus
Class JVariableDeclaration
java.lang.Object
jminusminus.JAST
jminusminus.JStatement
jminusminus.JVariableDeclaration
The AST node for a local variable declaration. Local variables are declared by its analyze()
 method, which also re-writes any initializations as assignment statements, in turn generated
 by its codegen() method.
- 
Field SummaryFields inherited from class jminusminus.JASTcompilationUnit, line
- 
Constructor SummaryConstructorsConstructorDescriptionJVariableDeclaration(int line, ArrayList<JVariableDeclarator> decls) Constructs an AST node for a variable declaration.
- 
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- 
JVariableDeclarationConstructs an AST node for a variable declaration.- Parameters:
- line- line in which the variable declaration occurs in the source file.
- decls- variable declarators.
 
 
- 
- 
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.
 
-