ch.sahits.phpclassgenerator
Class ClassDeclaration

java.lang.Object
  extended by ch.sahits.phpclassgenerator.ClassDeclaration

public class ClassDeclaration
extends java.lang.Object

Definition of the class

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  java.util.Vector<java.lang.String> includes
           
private  java.util.Vector<java.lang.String> members
           
private  java.util.Vector<MethodDeclaration> methods
           
private  java.lang.String nl
           
 
Constructor Summary
ClassDeclaration()
          Default constructor
 
Method Summary
 void addInclude(java.lang.String include)
          Add an include
 void addMember(java.lang.String variable)
          Add a member variable
 void addMethod(MethodDeclaration method)
          Add a whole method
 java.lang.String[] getIncludes()
          Get all includes
 java.lang.String[] getMembers()
          Get all member variables
 MethodDeclaration[] getMethods()
          Get all method declarations
 java.lang.String toString()
          String repesentation of the class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

includes

private java.util.Vector<java.lang.String> includes

members

private java.util.Vector<java.lang.String> members

methods

private java.util.Vector<MethodDeclaration> methods

nl

private java.lang.String nl
Constructor Detail

ClassDeclaration

public ClassDeclaration()
Default constructor

Method Detail

addInclude

public void addInclude(java.lang.String include)
Add an include

Parameters:
include - include file

addMember

public void addMember(java.lang.String variable)
Add a member variable

Parameters:
variable - declaration

addMethod

public void addMethod(MethodDeclaration method)
Add a whole method

Parameters:
method - method declaration
See Also:
MethodDeclaration

getIncludes

public java.lang.String[] getIncludes()
Get all includes

Returns:
the includes as array

getMembers

public java.lang.String[] getMembers()
Get all member variables

Returns:
the members as array

getMethods

public MethodDeclaration[] getMethods()
Get all method declarations

Returns:
the methods as arry

toString

public java.lang.String toString()
String repesentation of the class

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()