ch.sahits.phpclassgenerator
Class MethodDeclaration

java.lang.Object
  extended by 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

Field Summary
private  boolean _static
           
private  java.util.Vector<java.lang.String> arguments
           
private  java.lang.String documentation
           
private  java.lang.String methodBody
           
private  java.lang.String methodName
           
private  java.lang.String nl
           
private  java.lang.String visibility
           
 
Constructor Summary
MethodDeclaration()
          Default constructor
 
Method Summary
 void addArgument(java.lang.String arg)
          Add an argument to the argument list
 void addDocumentationRow(java.lang.String doc)
          Add a new line of documentation
 java.util.Vector<java.lang.String> getArguments()
           
 java.lang.String getDocumentation()
           
 java.lang.String getMethodBody()
           
 java.lang.String getMethodName()
           
 java.lang.String getVisibility()
           
 boolean isStatic()
           
 void setDocumentation(java.lang.String documentation)
           
 void setMethodBody(java.lang.String methodBody)
           
 void setMethodName(java.lang.String methodName)
           
 void setStatic(boolean _static)
           
 void setVisibility(java.lang.String visibility)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

MethodDeclaration

public MethodDeclaration()
Default constructor

Method Detail

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()