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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate classprivate classprivate static classprivate static classprivate classprivate static classprivate static classprivate static classprivate classprivate static classprivate classprivate classprivate classprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate Stringprivate final Map<String, GenerateMethodAnnotationData> private static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate ClassVisitorImpl.DecorateDataprivate booleanprivate final LinkedList<DescriptorImpl> private final LinkedHashSet<String> private Stringprivate booleanprivate booleanprivate booleanprivate static final Stringprivate static final Stringprivate Stringprivate static final StringMust be the same value as from the GenerateServiceFromMethod valuestatic final StringMust be the same value as from the GenerateServiceFromMethod valueprivate static final Stringstatic final StringMust be the same value as from the GenerateServiceFromMethod valueprivate static final Stringprivate LinkedHashSet<String> private final LinkedList<String> private Integerprivate static final Stringprivate Stringprivate static final Stringprivate static final Stringprivate Booleanprivate final Utilitiesprivate static final Stringprivate final booleanprivate DescriptorVisibilityprivate static final StringFields 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 TypeMethodDescriptionprivate StringGets 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) private org.objectweb.asm.MethodVisitorvisitConfiguredMethod(int access, String name, String desc, String signature, String[] exceptions) voidvisitEnd()org.objectweb.asm.MethodVisitorvisitMethod(int access, String name, String desc, String signature, String[] exceptions) Methods inherited from class org.jvnet.hk2.generator.internal.AbstractClassVisitorImpl
visitAttribute, visitField, visitInnerClass, visitOuterClass, visitSourceMethods inherited from class org.objectweb.asm.ClassVisitor
getDelegate, visitModule, visitNestHost, visitNestMember, visitPermittedSubclass, visitRecordComponent, visitTypeAnnotation
-
Field Details
-
SERVICE_CLASS_FORM
- See Also:
-
CONTRACTS_PROVIDED_CLASS_FORM
- See Also:
-
RANK_CLASS_FORM
- See Also:
-
CONFIGURED_CLASS_FORM
- See Also:
-
DECORATE_CLASS_FORM
- See Also:
-
USE_PROXY_CLASS_FORM
- See Also:
-
VISIBILITY_CLASS_FORM
- See Also:
-
NAME
- See Also:
-
METADATA
- See Also:
-
VALUE
- See Also:
-
PROVIDE
- See Also:
-
LOCAL
- See Also:
-
ANALYZER
- See Also:
-
METHOD_ACTUAL
Must be the same value as from the GenerateServiceFromMethod value- See Also:
-
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:
-
verbose
private final boolean verbose -
searchHeres
-
utilities
-
implName
-
iFaces
-
providedContracts
-
scopeClass
-
qualifiers
-
isAService
private boolean isAService -
isConfigured
private boolean isConfigured -
baseName
-
metadataString
-
rank
-
useProxy
-
visibility
-
metadata
-
classAnalyzer
-
generatedDescriptors
-
isFactory
private boolean isFactory -
factoryMethodFound
private boolean factoryMethodFound -
decorateData
-
classLevelGenerators
-
DECORATE_TARGET_TYPE
- See Also:
-
DECORATE_METHOD_NAME
- See Also:
-
DECORATE_WITH
- 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
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) - Overrides:
visitin classAbstractClassVisitorImpl
-
visitAnnotation
- Overrides:
visitAnnotationin classAbstractClassVisitorImpl
-
getDefaultName
-
visitEnd
public void visitEnd()- Overrides:
visitEndin classAbstractClassVisitorImpl
-
visitConfiguredMethod
-
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
-