Package jminusminus
Class JConstructorDeclaration
java.lang.Object
jminusminus.JAST
jminusminus.JMethodDeclaration
jminusminus.JConstructorDeclaration
- All Implemented Interfaces:
- JMember
The AST node for a constructor declaration.
- 
Field SummaryFields inherited from class jminusminus.JMethodDeclarationbody, context, descriptor, exceptions, isAbstract, isPrivate, isStatic, mods, name, params, returnTypeFields inherited from class jminusminus.JASTcompilationUnit, line
- 
Constructor SummaryConstructorsConstructorDescriptionJConstructorDeclaration(int line, ArrayList<String> mods, String name, ArrayList<JFormalParameter> params, ArrayList<TypeName> exceptions, JBlock body) Constructs an AST node for a constructor declaration.
- 
Method SummaryModifier and TypeMethodDescriptionPerforms semantic analysis on this AST and returns the (possibly modified) AST.voidPerforms code generation for this AST.voidpartialCodegen(Context context, CLEmitter partial) Generates a partial class for a type, reflecting only the member information required to do analysis.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.
- 
Constructor Details- 
JConstructorDeclarationpublic JConstructorDeclaration(int line, ArrayList<String> mods, String name, ArrayList<JFormalParameter> params, ArrayList<TypeName> exceptions, JBlock body) Constructs an AST node for a constructor declaration.- Parameters:
- line- line in which the constructor declaration occurs in the source file.
- mods- modifiers.
- name- constructor name.
- params- the formal parameters.
- exceptions- exceptions thrown.
- body- constructor body.
 
 
- 
- 
Method Details- 
preAnalyzeDeclares the member names in the specified (class) context and generates the member headers in the partial class.- Specified by:
- preAnalyzein interface- JMember
- Overrides:
- preAnalyzein class- JMethodDeclaration
- 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.- Overrides:
- analyzein class- JMethodDeclaration
- Parameters:
- context- the environment (scope) in which code is analyzed.
- Returns:
- the (possibly modified) AST.
 
- 
partialCodegenGenerates a partial class for a type, reflecting only the member information required to do analysis.- Overrides:
- partialCodegenin class- JMethodDeclaration
- Parameters:
- context- the parent (class) context.
- partial- the code emitter.
 
- 
codegenPerforms code generation for this AST.- Overrides:
- codegenin class- JMethodDeclaration
- Parameters:
- output- the code emitter.
 
- 
toJSONStores information about this AST in JSON format.- Overrides:
- toJSONin class- JMethodDeclaration
- Parameters:
- json- the JSON emitter.
 
 
-