Package org.jvnet.hk2.generator.internal
Class ClassVisitorImpl
- java.lang.Object
-
- org.objectweb.asm.ClassVisitor
-
- org.jvnet.hk2.generator.internal.AbstractClassVisitorImpl
-
- org.jvnet.hk2.generator.internal.ClassVisitorImpl
-
public class ClassVisitorImpl extends AbstractClassVisitorImpl
- Author:
- jwells
-
-
Field Summary
Fields Modifier and Type Field Description static String
METHOD_NAME
Must be the same value as from the GenerateServiceFromMethod valuestatic String
PARENT_CONFIGURED
Must be the same value as from the GenerateServiceFromMethod value
-
Constructor Summary
Constructors Constructor Description ClassVisitorImpl(Utilities utilities, boolean verbose, List<File> searchHeres)
Creates this with the config to add to if this is a service
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DescriptorImpl>
getGeneratedDescriptor()
Gets the generated descriptor created by this visitorvoid
visit(int version, int access, String name, String signature, String superName, String[] interfaces)
org.objectweb.asm.AnnotationVisitor
visitAnnotation(String desc, boolean visible)
void
visitEnd()
org.objectweb.asm.MethodVisitor
visitMethod(int access, String name, String desc, String signature, String[] exceptions)
-
Methods inherited from class org.jvnet.hk2.generator.internal.AbstractClassVisitorImpl
visitAttribute, visitField, visitInnerClass, visitOuterClass, visitSource
-
-
-
-
Field Detail
-
METHOD_NAME
public static final String METHOD_NAME
Must be the same value as from the GenerateServiceFromMethod value- See Also:
- Constant Field Values
-
PARENT_CONFIGURED
public static final String PARENT_CONFIGURED
Must be the same value as from the GenerateServiceFromMethod value- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClassVisitorImpl
public ClassVisitorImpl(Utilities utilities, boolean verbose, List<File> searchHeres)
Creates this with the config to add to if this is a service- Parameters:
utilities
- The utilities class to use for this visitor (preserves cache)verbose
- true if we should print out any service we are bindingsearchHere
- if we cannot classload something directly, search for it here
-
-
Method Detail
-
visit
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces)
- Overrides:
visit
in classAbstractClassVisitorImpl
-
visitAnnotation
public org.objectweb.asm.AnnotationVisitor visitAnnotation(String desc, boolean visible)
- Overrides:
visitAnnotation
in classAbstractClassVisitorImpl
-
visitEnd
public void visitEnd()
- Overrides:
visitEnd
in classAbstractClassVisitorImpl
-
visitMethod
public org.objectweb.asm.MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)
- Overrides:
visitMethod
in classAbstractClassVisitorImpl
-
getGeneratedDescriptor
public List<DescriptorImpl> getGeneratedDescriptor()
Gets the generated descriptor created by this visitor- Returns:
- The descriptor generated by this visitor, or null if the class was not annotated with @Service
-
-