org.apache.felix.ipojo.manipulation
Class MethodDescriptor

java.lang.Object
  extended by org.apache.felix.ipojo.manipulation.MethodDescriptor

public class MethodDescriptor
extends Object

Method Descriptor describe a method.

Author:
Felix Project Team

Constructor Summary
MethodDescriptor(String name, String desc)
          Constructor.
 
Method Summary
 void addAnnotation(ClassChecker.AnnotationDescriptor ann)
          Add an annotation to the current method.
 void addParameterAnnotation(int id, ClassChecker.AnnotationDescriptor ann)
          Add an annotation to the current method.
 List getAnnotations()
           
 String getDescriptor()
           
 Element getElement()
          Compute method manipulation metadata.
 String getName()
           
 Map getParameterAnnotations()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodDescriptor

public MethodDescriptor(String name,
                        String desc)
Constructor.

Parameters:
name - : name of the method.
desc - : descriptor of the method.
Method Detail

addAnnotation

public void addAnnotation(ClassChecker.AnnotationDescriptor ann)
Add an annotation to the current method.

Parameters:
ann - annotation to add

addParameterAnnotation

public void addParameterAnnotation(int id,
                                   ClassChecker.AnnotationDescriptor ann)
Add an annotation to the current method.

Parameters:
ann - annotation to add

getAnnotations

public List getAnnotations()

getParameterAnnotations

public Map getParameterAnnotations()

getDescriptor

public String getDescriptor()

getElement

public Element getElement()
Compute method manipulation metadata.

Returns:
the element containing metadata about this method.

getName

public String getName()


Copyright © 2011 Apache Software Foundation. All Rights Reserved.