/* 
   NGObjCMethod.h

   Copyright (C) 1998 MDlink online service center, Helge Hess
   All rights reserved.

   Author: Helge Hess (helge@mdlink.de)

   This file is part of the MDlink Object Framework 2 (MOF2)

   Permission to use, copy, modify, and distribute this software and its
   documentation for any purpose and without fee is hereby granted, provided
   that the above copyright notice appear in all copies and that both that
   copyright notice and this permission notice appear in supporting
   documentation.

   We disclaim all warranties with regard to this software, including all
   implied warranties of merchantability and fitness, in no event shall
   we be liable for any special, indirect or consequential damages or any
   damages whatsoever resulting from loss of use, data or profits, whether in
   an action of contract, negligence or other tortious action, arising out of
   or in connection with the use or performance of this software.
*/
// $Id: NGObjCMethod.h,v 1.1 2000/03/20 15:45:34 mguesdon Exp $

#ifndef __NGReflection_NGObjCMethod_H__
#define __NGReflection_NGObjCMethod_H__

#import <Foundation/NSObject.h>

@class NSString, NSMethodSignature;

@interface NGObjCMethodDescription : NSObject
{
@protected
  SEL      name;
  NSString *types;

  // cache
  NSMethodSignature *signature;
}

// accessors

- (SEL)selector;
- (NSString *)methodName;
- (NSString *)methodTypes;
- (NSMethodSignature *)methodSignature;

@end

@interface NGObjCMethod : NGObjCMethodDescription
{
@protected
  IMP implementation;
}

+ (id)methodWithName:(NSString *)_name
  signature:(NSString *)_signature
  implementation:(IMP)_method;

// accessors

- (IMP)methodImplementation;

@end

#endif /* __NGReflection_NGObjCMethod_H__ */
