Class ClassVisitorImpl
java.lang.Object
org.objectweb.asm.ClassVisitor
org.jvnet.hk2.generator.internal.AbstractClassVisitorImpl
org.jvnet.hk2.generator.internal.ClassVisitorImpl
- Author:
- jwells
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringMust be the same value as from the GenerateServiceFromMethod valuestatic final StringMust be the same value as from the GenerateServiceFromMethod valueFields inherited from class org.objectweb.asm.ClassVisitor
api, cv -
Constructor Summary
ConstructorsConstructorDescriptionClassVisitorImpl(Utilities utilities, boolean verbose, List<File> searchHeres) Creates this with the config to add to if this is a service -
Method Summary
Modifier and TypeMethodDescriptionGets the generated descriptor created by this visitorvoidvisit(int version, int access, String name, String signature, String superName, String[] interfaces) org.objectweb.asm.AnnotationVisitorvisitAnnotation(String desc, boolean visible) voidvisitEnd()org.objectweb.asm.MethodVisitorvisitMethod(int access, String name, String desc, String signature, String[] exceptions) Methods inherited from class AbstractClassVisitorImpl
visitAttribute, visitField, visitInnerClass, visitOuterClass, visitSourceMethods inherited from class org.objectweb.asm.ClassVisitor
getDelegate, visitModule, visitNestHost, visitNestMember, visitPermittedSubclass, visitRecordComponent, visitTypeAnnotation
-
Field Details
-
METHOD_NAME
Must be the same value as from the GenerateServiceFromMethod value- See Also:
-
PARENT_CONFIGURED
Must be the same value as from the GenerateServiceFromMethod value- See Also:
-
-
Constructor Details
-
ClassVisitorImpl
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 Details
-
visit
-
visitAnnotation
- Overrides:
visitAnnotationin classAbstractClassVisitorImpl
-
visitEnd
public void visitEnd()- Overrides:
visitEndin classAbstractClassVisitorImpl
-
visitMethod
public org.objectweb.asm.MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) - Overrides:
visitMethodin classAbstractClassVisitorImpl
-
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
-