org.apache.felix.ipojo.parser
Class MethodMetadata

java.lang.Object
  extended by org.apache.felix.ipojo.parser.MethodMetadata

public class MethodMetadata
extends Object

A Method Metadata represents a method from the implementation class. This class allows getting information about a method : name, arguments, return type...

Author:
Felix Project Team

Field Summary
static String BC_CONSTRUCTOR_ID
          Bundle Context Constructor Method Id.
static String CONSTRUCTOR_PREFIX
          Constructor Prefix.
static String EMPTY_CONSTRUCTOR_ID
          Empty Constructor Method Id.
 
Method Summary
static String computeMethodId(Constructor method)
          Computes the method id for the given Constructor object.
static String computeMethodId(Method method)
          Computes the method id for the given Method object.
 String[] getMethodArguments()
           
 String getMethodIdentifier()
          Gets the method unique identifier.
 String getMethodName()
           
 String getMethodReturn()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_CONSTRUCTOR_ID

public static final String EMPTY_CONSTRUCTOR_ID
Empty Constructor Method Id.

See Also:
Constant Field Values

BC_CONSTRUCTOR_ID

public static final String BC_CONSTRUCTOR_ID
Bundle Context Constructor Method Id.

See Also:
Constant Field Values

CONSTRUCTOR_PREFIX

public static final String CONSTRUCTOR_PREFIX
Constructor Prefix.

See Also:
Constant Field Values
Method Detail

getMethodName

public String getMethodName()

getMethodArguments

public String[] getMethodArguments()

getMethodReturn

public String getMethodReturn()

getMethodIdentifier

public String getMethodIdentifier()
Gets the method unique identifier. For internal usage only. A method identifier is a unique string that can be a java field that identify the method.

Returns:
the method identifier.

computeMethodId

public static String computeMethodId(Method method)
Computes the method id for the given Method object.

Parameters:
method - the Method object.
Returns:
the method id.

computeMethodId

public static String computeMethodId(Constructor method)
Computes the method id for the given Constructor object.

Parameters:
method - the Method object.
Returns:
the method id.


Copyright © 2011 Apache Software Foundation. All Rights Reserved.