Package jminusminus
Class JFieldDeclaration
java.lang.Object
jminusminus.JAST
jminusminus.JFieldDeclaration
- All Implemented Interfaces:
- JMember
The AST node for a field declaration.
- 
Field SummaryFields inherited from class jminusminus.JASTcompilationUnit, line
- 
Constructor SummaryConstructorsConstructorDescriptionJFieldDeclaration(int line, ArrayList<String> mods, ArrayList<JVariableDeclarator> decls) Constructs an AST node for a field declaration.
- 
Method SummaryModifier and TypeMethodDescriptionPerforms semantic analysis on this AST and returns the (possibly modified) AST.voidPerforms code generation for this AST.voidcodegenInitializations(CLEmitter output) Generates code for the field initializations.mods()Returns the list of modifiers.voidpreAnalyze(Context context, CLEmitter partial) Declares the member names in the specified (class) context and generates the member headers in the partial class.voidtoJSON(JSONElement json) Stores information about this AST in JSON format.Methods inherited from class jminusminus.JASTline, partialCodegen, unescape
- 
Constructor Details- 
JFieldDeclarationConstructs an AST node for a field declaration.- Parameters:
- line- line in which the variable declaration occurs in the source file.
- mods- field modifiers.
- decls- variable declarators.
 
 
- 
- 
Method Details- 
modsReturns the list of modifiers.- Returns:
- the list of modifiers.
 
- 
preAnalyzeDeclares the member names in the specified (class) context and generates the member headers in the partial class.- Specified by:
- preAnalyzein interface- JMember
- Parameters:
- context- class context in which names are resolved.
- partial- the code emitter.
 
- 
analyzePerforms semantic analysis on this AST and returns the (possibly modified) AST.
- 
codegenPerforms code generation for this AST.
- 
codegenInitializationsGenerates code for the field initializations.- Parameters:
- output- the code emitter.
 
- 
toJSONStores information about this AST in JSON format.
 
-