Package jminusminus
Class JFormalParameter
java.lang.Object
jminusminus.JAST
jminusminus.JFormalParameter
The AST node for a formal parameter declaration.
- 
Field SummaryFields inherited from class jminusminus.JASTcompilationUnit, line
- 
Constructor SummaryConstructorsConstructorDescriptionJFormalParameter(int line, String name, Type type) Constructs an AST node for a formal parameter declaration.
- 
Method SummaryModifier and TypeMethodDescriptionPerforms semantic analysis on this AST and returns the (possibly modified) AST.voidPerforms code generation for this AST.name()Returns the parameter's name.Sets the parameter's type to the specified type, and returns the new type.type()Returns the parameter's type.Methods inherited from class jminusminus.JASTline, partialCodegen, toJSON, unescape
- 
Constructor Details- 
JFormalParameterConstructs an AST node for a formal parameter declaration.- Parameters:
- line- line in which the parameter occurs in the source file.
- name- parameter name.
- type- parameter type.
 
 
- 
- 
Method Details- 
nameReturns the parameter's name.- Returns:
- the parameter's name.
 
- 
typeReturns the parameter's type.- Returns:
- the parameter's type.
 
- 
setTypeSets the parameter's type to the specified type, and returns the new type.- Parameters:
- newType- the new type.
- Returns:
- return the new type.
 
- 
analyzePerforms semantic analysis on this AST and returns the (possibly modified) AST.
- 
codegenPerforms code generation for this AST.
 
-