ch.sahits.phpclassgenerator
Class MethodDeclaration
java.lang.Object
ch.sahits.phpclassgenerator.MethodDeclaration
public class MethodDeclaration
- extends java.lang.Object
Represents the structure of a PHP method
- Version:
- 1.0
$Revision: 1.2 $ changed by $Author: hotzst $ at $Date: 2007/08/18 16:39:05 $
- Author:
- Andi Hotz, (c) 2007
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
documentation
private java.lang.String documentation
visibility
private java.lang.String visibility
_static
private boolean _static
methodName
private java.lang.String methodName
arguments
private java.util.Vector<java.lang.String> arguments
methodBody
private java.lang.String methodBody
nl
private java.lang.String nl
MethodDeclaration
public MethodDeclaration()
- Default constructor
getDocumentation
public java.lang.String getDocumentation()
- Returns:
- the documentation
setDocumentation
public void setDocumentation(java.lang.String documentation)
- Parameters:
documentation - the documentation to set
getVisibility
public java.lang.String getVisibility()
- Returns:
- the visibility
setVisibility
public void setVisibility(java.lang.String visibility)
- Parameters:
visibility - the visibility to set
getMethodName
public java.lang.String getMethodName()
- Returns:
- the methodName
setMethodName
public void setMethodName(java.lang.String methodName)
- Parameters:
methodName - the methodName to set
getMethodBody
public java.lang.String getMethodBody()
- Returns:
- the methodBody
setMethodBody
public void setMethodBody(java.lang.String methodBody)
- Parameters:
methodBody - the methodBody to set
getArguments
public java.util.Vector<java.lang.String> getArguments()
- Returns:
- the arguments
addArgument
public void addArgument(java.lang.String arg)
- Add an argument to the argument list
- Parameters:
arg - argument
isStatic
public boolean isStatic()
- Returns:
- the _static
setStatic
public void setStatic(boolean _static)
- Parameters:
_static - the _static to set
addDocumentationRow
public void addDocumentationRow(java.lang.String doc)
- Add a new line of documentation
- Parameters:
doc -
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- Returns:
- String representation of the method declaration
- See Also:
Object.toString()