Package iota
Class IFormalParameter
java.lang.Object
iota.IAST
iota.IFormalParameter
The AST node for a formal parameter declaration.
-
Field Summary
Fields inherited from class iota.IAST
compilationUnit, line
-
Constructor Summary
ConstructorsConstructorDescriptionIFormalParameter
(int line, String name, Type type) Constructs an AST node for a formal parameter declaration. -
Method Summary
Modifier and TypeMethodDescriptionPerforms second phase of semantic analysis on this AST and returns the (possibly modified) AST.void
Performs code generation for this AST.name()
Returns the parameter's name.void
Sets the parameter's type to the specified type.type()
Returns the parameter's type.Methods inherited from class iota.IAST
line, preAnalyze, toJSON
-
Constructor Details
-
IFormalParameter
Constructs 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
-
name
Returns the parameter's name.- Returns:
- the parameter's name.
-
type
Returns the parameter's type.- Returns:
- the parameter's type.
-
setType
Sets the parameter's type to the specified type.- Parameters:
type
- the new type.
-
analyze
Performs second phase of semantic analysis on this AST and returns the (possibly modified) AST. -
codegen
Performs code generation for this AST.
-