2005/5/9

     
 

class MethodAltNameAttribute

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

acdk::tools::mc::MethodAltNameAttribute Class Reference

#include <MethodAltNameAttribute.h>

Inheritance diagram for acdk::tools::mc::MethodAltNameAttribute:

acdk::tools::mc::CodeAttribute acdk::lang::Object acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

Sets the altname field in acdk::lang::dmi::MethodInfo.


Public Member Functions

 MethodAltNameAttribute (IN(RString) altName, int paramCount=-1)
  used with ACDK_METHODATTRIBUTE.

virtual bool apply (IN(RCodeInfo) cm)

Static Public Member Functions

void initAttribute (IN(RMetaCompiler) mc)

Protected Attributes

RString _altName
int _paramCount


Constructor & Destructor Documentation

acdk::tools::mc::MethodAltNameAttribute::MethodAltNameAttribute IN(RString altName,
int  paramCount = -1
 

used with ACDK_METHODATTRIBUTE.

Parameters:
altname alternative name for the method
paramCount in case the method has default parameter paramCount identifies the method number of parameters. ACDK_METHODATTRIBUTE(acdk.tools.mc.MethodAltNameAttribute(methodWithoutArgs, 0)) ACDK_METHODATTRIBUTE(acdk.tools.mc.MethodAltNameAttribute(methodWithOneArgs, 1)) int methodWithDefaultArgs(int i = 3) { return i; } via DMI the method methodWithDefaultArgs is callable as int methodWithoutArgs(); and int methodWithOneArgs(int i);


Member Function Documentation

virtual bool acdk::tools::mc::MethodAltNameAttribute::apply IN(RCodeInfo cm  )  [virtual]
 

Reimplemented from acdk::tools::mc::CodeAttribute.

void acdk::tools::mc::MethodAltNameAttribute::initAttribute IN(RMetaCompiler mc  )  [static]
 

Reimplemented from acdk::tools::mc::CodeAttribute.


Member Data Documentation

RString acdk::tools::mc::MethodAltNameAttribute::_altName [protected]
 

int acdk::tools::mc::MethodAltNameAttribute::_paramCount [protected]