testsgen.wttools
Class MethodImpl

java.lang.Object
  |
  +--testsgen.wttools.MethodImpl
All Implemented Interfaces:
java.lang.Comparable, MethodIfc

public class MethodImpl
extends java.lang.Object
implements MethodIfc

MethodImpl.java contains implementation of MethodIfc interface. Allow access to structures describing mathod like element found in parsed source code.

As methods I mean: functions, procedures, and constructors. Of course when we speak about java language we can only think about functions and constructors.

Created: Tue Dec 04 15:35:23 2001

Version:
$Revision: 1.9 $
Author:
Artur Hefczyc

Field Summary
protected  java.lang.String[] exceps
           
protected  int modifiers
           
protected  java.lang.String name
           
protected  java.lang.String[] params
           
protected  java.lang.String return_type
           
 
Constructor Summary
MethodImpl()
           
MethodImpl(java.lang.reflect.Constructor met)
           
MethodImpl(java.lang.reflect.Method met)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String[] getExceptionThrows()
           
 int getModifiersInfo()
           
 java.lang.String getName()
           
 java.lang.String[] getParamNames()
           
 java.lang.String getReturnTypeName()
           
 void setExceptionThrows(java.lang.String[] exc)
           
 void setModifiersInfo(int mod)
           
 void setName(java.lang.String name)
           
 void setParamNames(java.lang.String[] names)
           
 void setReturnTypeName(java.lang.String type_name)
           
 java.lang.String toString()
           
 java.lang.String toXML()
           
 void toXML(java.io.OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

return_type

protected java.lang.String return_type

params

protected java.lang.String[] params

exceps

protected java.lang.String[] exceps

modifiers

protected int modifiers
Constructor Detail

MethodImpl

public MethodImpl()

MethodImpl

public MethodImpl(java.lang.reflect.Method met)

MethodImpl

public MethodImpl(java.lang.reflect.Constructor met)
Method Detail

setModifiersInfo

public void setModifiersInfo(int mod)
Specified by:
setModifiersInfo in interface MethodIfc

getModifiersInfo

public int getModifiersInfo()
Specified by:
getModifiersInfo in interface MethodIfc

setExceptionThrows

public void setExceptionThrows(java.lang.String[] exc)
Specified by:
setExceptionThrows in interface MethodIfc

getExceptionThrows

public java.lang.String[] getExceptionThrows()
Specified by:
getExceptionThrows in interface MethodIfc

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

setName

public void setName(java.lang.String name)
Specified by:
setName in interface MethodIfc

getName

public java.lang.String getName()
Specified by:
getName in interface MethodIfc

setReturnTypeName

public void setReturnTypeName(java.lang.String type_name)
Specified by:
setReturnTypeName in interface MethodIfc

getReturnTypeName

public java.lang.String getReturnTypeName()
Specified by:
getReturnTypeName in interface MethodIfc

setParamNames

public void setParamNames(java.lang.String[] names)
Specified by:
setParamNames in interface MethodIfc

getParamNames

public java.lang.String[] getParamNames()
Specified by:
getParamNames in interface MethodIfc

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toXML

public void toXML(java.io.OutputStream out)
Specified by:
toXML in interface MethodIfc

toXML

public java.lang.String toXML()
Specified by:
toXML in interface MethodIfc


Copyright GNU, wttools developers Team.