org.jvnet.hk2.generator.internal
Class ClassVisitorImpl

java.lang.Object
  extended by org.jvnet.hk2.generator.internal.AbstractClassVisitorImpl
      extended by org.jvnet.hk2.generator.internal.ClassVisitorImpl
All Implemented Interfaces:
org.objectweb.asm.ClassVisitor

public class ClassVisitorImpl
extends AbstractClassVisitorImpl

Author:
jwells

Field Summary
static String METHOD_NAME
          Must be the same value as from the GenerateServiceFromMethod value
static String PARENT_CONFIGURED
          Must be the same value as from the GenerateServiceFromMethod value
 
Constructor Summary
ClassVisitorImpl(Utilities utilities, boolean verbose, File searchHere)
          Creates this with the config to add to if this is a service
 
Method Summary
 LinkedList<DescriptorImpl> getGeneratedDescriptor()
          Gets the generated descriptor created by this visitor
 void 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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,
                        File searchHere)
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 binding
searchHere - 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)
Specified by:
visit in interface org.objectweb.asm.ClassVisitor
Overrides:
visit in class AbstractClassVisitorImpl

visitAnnotation

public org.objectweb.asm.AnnotationVisitor visitAnnotation(String desc,
                                                           boolean visible)
Specified by:
visitAnnotation in interface org.objectweb.asm.ClassVisitor
Overrides:
visitAnnotation in class AbstractClassVisitorImpl

visitEnd

public void visitEnd()
Specified by:
visitEnd in interface org.objectweb.asm.ClassVisitor
Overrides:
visitEnd in class AbstractClassVisitorImpl

visitMethod

public org.objectweb.asm.MethodVisitor visitMethod(int access,
                                                   String name,
                                                   String desc,
                                                   String signature,
                                                   String[] exceptions)
Specified by:
visitMethod in interface org.objectweb.asm.ClassVisitor
Overrides:
visitMethod in class AbstractClassVisitorImpl

getGeneratedDescriptor

public LinkedList<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


Copyright © 2013 Oracle Corporation. All Rights Reserved.