2005/5/9

     
 

class Method

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::lang::reflect::Method Class Reference

#include <Method.h>

Inheritance diagram for acdk::lang::reflect::Method:

acdk::lang::reflect::AccessibleObject acdk::lang::reflect::Member acdk::lang::dmi::MetaObject acdk::lang::Object acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

Represents a method of a class.


Public Member Functions

 Method (const acdk::lang::dmi::ClazzInfo *clazz, const acdk::lang::dmi::ClazzMethodInfo *meth)
 Internal constructor.

virtual dmi::MetaInfogetMetaInfo ()
 implemented interface for MetaObject

virtual RClass getDeclaringClass ()
virtual int getModifiers ()
virtual RString getName ()
RString getAlternativeName ()
virtual RClass getReturnType ()
virtual RClassArray getParameterTypes ()
virtual RClassArray getExceptionTypes ()
int getParameterCount ()
RParameterArray getParameters ()
RParameter getParameter (int idx)
RParameter getParameter (IN(RString) idx)
virtual bool equals (IN(RObject) obj)
 Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.

virtual int hashCode ()
virtual RString toString ()
 return a string representation of this object Object::toString() return getName() by default

virtual RString toIndentifier ()
 render the method to an identifier including 'namemangling'

virtual RString toTypeString (int format=acdk::lang::dmi::TpFtFormatStandard)
 print the information

virtual RObject invoke (IN(RObject) obj, IN(RObjectArray) args) throw ( ::acdk::lang::RIllegalAccessException , ::acdk::lang::RIllegalArgumentException , ::acdk::lang::reflect::RInvocationTargetException )

Static Public Member Functions

char * encodeOperatorChar (char c)
 return a static string encodes the operator char like '=', '+' etc

RString encodeOperatorToFuncName (IN(RString) opchars)
 return the encoded operator chars to a function name += returns operator_pl_as May throw ::acdk::lang::RIllegalArgumentException if operator is not known


Private Attributes

const acdk::lang::dmi::ClazzInfo_theClazz
const acdk::lang::dmi::ClazzMethodInfo_methodInfo


Constructor & Destructor Documentation

acdk::lang::reflect::Method::Method const acdk::lang::dmi::ClazzInfo clazz,
const acdk::lang::dmi::ClazzMethodInfo meth
[inline]
 

Internal constructor.

Parameters:
clazz must not be 0
meth must not be 0


Member Function Documentation

char* acdk::lang::reflect::Method::encodeOperatorChar char  c  )  [static]
 

return a static string encodes the operator char like '=', '+' etc

RString acdk::lang::reflect::Method::encodeOperatorToFuncName IN(RString opchars  )  [static]
 

return the encoded operator chars to a function name += returns operator_pl_as May throw ::acdk::lang::RIllegalArgumentException if operator is not known

virtual bool acdk::lang::reflect::Method::equals IN(RObject obj  )  [virtual]
 

Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.

See also:
serialized_equals()

Reimplemented from acdk::lang::Object.

RString acdk::lang::reflect::Method::getAlternativeName  ) 
 

virtual RClass acdk::lang::reflect::Method::getDeclaringClass  )  [virtual]
 

Implements acdk::lang::reflect::Member.

virtual RClassArray acdk::lang::reflect::Method::getExceptionTypes  )  [virtual]
 

virtual dmi::MetaInfo* acdk::lang::reflect::Method::getMetaInfo  )  [inline, virtual]
 

implemented interface for MetaObject

Reimplemented from acdk::lang::dmi::MetaObject.

virtual int acdk::lang::reflect::Method::getModifiers  )  [virtual]
 

Implements acdk::lang::reflect::Member.

virtual RString acdk::lang::reflect::Method::getName  )  [virtual]
 

Implements acdk::lang::reflect::Member.

RParameter acdk::lang::reflect::Method::getParameter IN(RString idx  ) 
 

RParameter acdk::lang::reflect::Method::getParameter int  idx  ) 
 

int acdk::lang::reflect::Method::getParameterCount  ) 
 

RParameterArray acdk::lang::reflect::Method::getParameters  ) 
 

virtual RClassArray acdk::lang::reflect::Method::getParameterTypes  )  [virtual]
 

virtual RClass acdk::lang::reflect::Method::getReturnType  )  [virtual]
 

virtual int acdk::lang::reflect::Method::hashCode  )  [virtual]
 

See also:
serialized_hashCode

Reimplemented from acdk::lang::Object.

virtual RObject acdk::lang::reflect::Method::invoke IN(RObject obj,
IN(RObjectArray args
throw ( ::acdk::lang::RIllegalAccessException , ::acdk::lang::RIllegalArgumentException , ::acdk::lang::reflect::RInvocationTargetException ) [virtual]
 

virtual RString acdk::lang::reflect::Method::toIndentifier  )  [virtual]
 

render the method to an identifier including 'namemangling'

virtual RString acdk::lang::reflect::Method::toString  )  [virtual]
 

return a string representation of this object Object::toString() return getName() by default

Reimplemented from acdk::lang::Object.

virtual RString acdk::lang::reflect::Method::toTypeString int  format = acdk::lang::dmi::TpFtFormatStandard  )  [inline, virtual]
 

print the information

Parameters:
format combination of acdk::lang::dmi::TypeNameFormat

Implements acdk::lang::dmi::MetaObject.


Member Data Documentation

const acdk::lang::dmi::ClazzMethodInfo* acdk::lang::reflect::Method::_methodInfo [private]
 

const acdk::lang::dmi::ClazzInfo* acdk::lang::reflect::Method::_theClazz [private]