Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name
The name of the formal parameter
|
protected java.lang.String |
type
The type of the formal parameter
|
Constructor and Description |
---|
Formal(int lineNum,
java.lang.String type,
java.lang.String name)
Formal constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(visitor.Visitor v,
java.lang.Object o)
Visitor method
|
java.lang.String |
getName()
Get the name of the formal parameter
|
java.lang.String |
getType()
Get the type of the formal parameter
|
getLineNum
protected java.lang.String type
protected java.lang.String name
public Formal(int lineNum, java.lang.String type, java.lang.String name)
lineNum
- source line number corresponding to this AST nodetype
- the type of the formal parametername
- the name of the formal parameter