org.apache.felix.ipojo.manipulation
Class MethodDescriptor

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

public class MethodDescriptor
extends java.lang.Object

Method Descriptor describe a method.

Author:
Felix Project Team

Constructor Summary
MethodDescriptor(java.lang.String name, java.lang.String desc, boolean isStatic)
          Constructor.
 
Method Summary
 void addAnnotation(ClassChecker.AnnotationDescriptor ann)
          Add an annotation to the current method.
 void addLocalVariable(java.lang.String name, java.lang.String desc, java.lang.String signature, int index)
           
 void addParameterAnnotation(int id, ClassChecker.AnnotationDescriptor ann)
          Add an annotation to the current method.
 void end()
           
 java.util.List<ClassChecker.AnnotationDescriptor> getAnnotations()
           
 java.util.List<org.objectweb.asm.tree.LocalVariableNode> getArgumentLocalVariables()
           
 java.lang.String getDescriptor()
           
 org.apache.felix.ipojo.metadata.Element getElement()
          Compute method manipulation metadata.
 java.lang.String getName()
           
 java.util.Map<java.lang.Integer,java.util.List<ClassChecker.AnnotationDescriptor>> getParameterAnnotations()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodDescriptor

public MethodDescriptor(java.lang.String name,
                        java.lang.String desc,
                        boolean isStatic)
Constructor.

Parameters:
name - : name of the method.
desc - : descriptor of the method.
isStatic - : is the method static
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 java.util.List<ClassChecker.AnnotationDescriptor> getAnnotations()

getParameterAnnotations

public java.util.Map<java.lang.Integer,java.util.List<ClassChecker.AnnotationDescriptor>> getParameterAnnotations()

getDescriptor

public java.lang.String getDescriptor()

getElement

public org.apache.felix.ipojo.metadata.Element getElement()
Compute method manipulation metadata.

Returns:
the element containing metadata about this method.

getName

public java.lang.String getName()

addLocalVariable

public void addLocalVariable(java.lang.String name,
                             java.lang.String desc,
                             java.lang.String signature,
                             int index)

end

public void end()

getArgumentLocalVariables

public java.util.List<org.objectweb.asm.tree.LocalVariableNode> getArgumentLocalVariables()


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.