public class MethodDescriptor
extends java.lang.Object
Constructor and Description |
---|
MethodDescriptor(java.lang.String name,
java.lang.String desc,
boolean isStatic)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.util.LinkedHashMap<java.lang.Integer,org.objectweb.asm.tree.LocalVariableNode> |
getLocals() |
java.lang.String |
getName() |
java.util.Map<java.lang.Integer,java.util.List<ClassChecker.AnnotationDescriptor>> |
getParameterAnnotations() |
public MethodDescriptor(java.lang.String name, java.lang.String desc, boolean isStatic)
name
- : name of the method.desc
- : descriptor of the method.isStatic
- : is the method staticpublic void addAnnotation(ClassChecker.AnnotationDescriptor ann)
ann
- annotation to addpublic void addParameterAnnotation(int id, ClassChecker.AnnotationDescriptor ann)
ann
- annotation to addpublic java.util.List<ClassChecker.AnnotationDescriptor> getAnnotations()
public java.util.Map<java.lang.Integer,java.util.List<ClassChecker.AnnotationDescriptor>> getParameterAnnotations()
public java.lang.String getDescriptor()
public org.apache.felix.ipojo.metadata.Element getElement()
public java.lang.String getName()
public void addLocalVariable(java.lang.String name, java.lang.String desc, java.lang.String signature, int index)
public void end()
public java.util.List<org.objectweb.asm.tree.LocalVariableNode> getArgumentLocalVariables()
public java.util.LinkedHashMap<java.lang.Integer,org.objectweb.asm.tree.LocalVariableNode> getLocals()
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.