ca.ubc.cs.elide.nodes
Class ParameterNode
java.lang.Object
|
+--ca.ubc.cs.elide.nodes.ParseNode
|
+--ca.ubc.cs.elide.nodes.ChildBearingNode
|
+--ca.ubc.cs.elide.nodes.ModifierBearingNode
|
+--ca.ubc.cs.elide.nodes.ParameterNode
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class ParameterNode
- extends ModifierBearingNode
A ParameterNode
provides information about a single
formal parameter of a method.
When creating a MethodNode
with ClassNode.extend
or
NodeFactory.createMethod
, these are automatically created and
added.
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getType()
Returns the name of the type of this parameter, as a String. |
void |
setType(java.lang.String type)
Sets the name of the type of this parameter. |
Methods inherited from class ca.ubc.cs.elide.nodes.ModifierBearingNode |
getModifiers, makeDefaultAccess, makePrivate, makeProtected, makePublic, setAbstract, setFinal, setNative, setStatic, setSynchronized, setTransient, setVolatile |
Methods inherited from class ca.ubc.cs.elide.nodes.ParseNode |
findType, get, getComment, getDeclaringClass, getName, getPackage, getParent, getRoot, put, registerType, setComment, setName, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ParameterNode
public ParameterNode()
ParameterNode
public ParameterNode(java.lang.String name,
java.lang.String type)
getType
public java.lang.String getType()
- Returns the name of the type of this parameter, as a String.
ClassNode.forName
can be used to retrieve a ClassNode
for the type, if one is available.
setType
public void setType(java.lang.String type)
- Sets the name of the type of this parameter.