|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.cushion.osgi.ServiceAnalyzer
public class ServiceAnalyzer
Creates the transitive closure of a service interface
Constructor Summary | |
---|---|
ServiceAnalyzer(java.lang.ClassLoader loader)
Contructor |
Method Summary | |
---|---|
java.util.Map<java.lang.String,byte[]> |
analyze(java.lang.String iface)
Inspect the service interface and create a transitive closure |
void |
visit(int version,
int access,
java.lang.String name,
java.lang.String signature,
java.lang.String superName,
java.lang.String[] interfaces)
Visits the header of a class |
org.objectweb.asm.AnnotationVisitor |
visitAnnotation(java.lang.String desc,
boolean visible)
Visits an annotation |
void |
visitAttribute(org.objectweb.asm.Attribute attr)
Visits a non standard attribute |
void |
visitEnd()
Visits the end of the class |
org.objectweb.asm.FieldVisitor |
visitField(int access,
java.lang.String name,
java.lang.String desc,
java.lang.String signature,
java.lang.Object value)
Visits a field of the class |
void |
visitInnerClass(java.lang.String name,
java.lang.String outerName,
java.lang.String innerName,
int access)
Visits information about an inner class |
org.objectweb.asm.MethodVisitor |
visitMethod(int access,
java.lang.String name,
java.lang.String desc,
java.lang.String signature,
java.lang.String[] exceptions)
|
void |
visitOuterClass(java.lang.String owner,
java.lang.String name,
java.lang.String desc)
Visits the enclosing class of the class |
void |
visitSource(java.lang.String source,
java.lang.String debug)
Visits the source of the class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceAnalyzer(java.lang.ClassLoader loader)
loader
- ClassLoader to useMethod Detail |
---|
public java.util.Map<java.lang.String,byte[]> analyze(java.lang.String iface)
iface
- the service interface
public void visit(int version, int access, java.lang.String name, java.lang.String signature, java.lang.String superName, java.lang.String[] interfaces)
visit
in interface org.objectweb.asm.ClassVisitor
version
- the class versionaccess
- the access flagsname
- the class internal namesignature
- the signaturesuperName
- the superclass nameinterfaces
- array of interfacespublic org.objectweb.asm.MethodVisitor visitMethod(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.String[] exceptions)
visitMethod
in interface org.objectweb.asm.ClassVisitor
public org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String desc, boolean visible)
visitAnnotation
in interface org.objectweb.asm.ClassVisitor
desc
- the class descriptionvisible
- visibility at runtime
public void visitAttribute(org.objectweb.asm.Attribute attr)
visitAttribute
in interface org.objectweb.asm.ClassVisitor
attr
- the attributepublic org.objectweb.asm.FieldVisitor visitField(int access, java.lang.String name, java.lang.String desc, java.lang.String signature, java.lang.Object value)
visitField
in interface org.objectweb.asm.ClassVisitor
access
- the access flagsname
- the field's namedesc
- the descriptionsignature
- the signaturevalue
- the initial value
public void visitInnerClass(java.lang.String name, java.lang.String outerName, java.lang.String innerName, int access)
visitInnerClass
in interface org.objectweb.asm.ClassVisitor
name
- the internal name of the classouterName
- the internal name of the outer classinnerName
- the simple inner class nameaccess
- the access flagspublic void visitOuterClass(java.lang.String owner, java.lang.String name, java.lang.String desc)
visitOuterClass
in interface org.objectweb.asm.ClassVisitor
owner
- internal name of the enclosing classname
- the name of the method that contains the classdesc
- the descriptor of the methodpublic void visitSource(java.lang.String source, java.lang.String debug)
visitSource
in interface org.objectweb.asm.ClassVisitor
source
- the name of the source filedebug
- additional debug informationpublic void visitEnd()
visitEnd
in interface org.objectweb.asm.ClassVisitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |