public class CDMethod
extends java.lang.Object
Constructor and Description |
---|
CDMethod(CDLanguageSpecificString forwardspecifier,
CDType returntype,
java.lang.String name,
CDLanguageSpecificString backwardspecifier) |
Modifier and Type | Method and Description |
---|---|
CDBlock |
body()
Gets a reference to the method body.
|
CDVariable |
param(CDType type,
java.lang.String name)
Adds a new parameter to this method and returns a reference
to it.
|
void |
writeTo(CDFormatter f) |
public CDMethod(CDLanguageSpecificString forwardspecifier, CDType returntype, java.lang.String name, CDLanguageSpecificString backwardspecifier)
public CDVariable param(CDType type, java.lang.String name)
public CDBlock body()
public void writeTo(CDFormatter f) throws java.io.IOException
java.io.IOException