public NexusTypeVisitor( final NexusTypeListener listener ) { nexusTypeListener = listener; plexusTypeVisitor = new PlexusTypeVisitor( listener ); }
public void visit( final ClassSpace _space ) { space = _space; plexusTypeVisitor.visit( _space ); }
AnnotationVisitor getComponentVisitor() { return plexusTypeVisitor.visitAnnotation( COMPONENT_DESC, true ); }
@Override public void visitEnd() { final Annotation details = nexusType.details(); if ( details instanceof RepositoryType ) { nexusTypeListener.hear( (RepositoryType) details ); } plexusTypeVisitor.visitEnd(); }
public ClassVisitor visitClass( final URL url ) { nexusType = MarkedNexusTypes.UNKNOWN; plexusTypeVisitor.visitClass( url ); return this; }
public ClassVisitor visitClass( final URL url ) { visitor = adapt( delegate.visitClass( url ) ); return this; }
@Override public void visitEnd() { final Annotation details = nexusType.details(); if ( details instanceof RepositoryType ) { nexusTypeListener.hear( (RepositoryType) details ); } plexusTypeVisitor.visitEnd(); }
public ClassVisitor visitClass( final URL url ) { nexusType = MarkedNexusTypes.UNKNOWN; plexusTypeVisitor.visitClass( url ); return this; }
public PlexusTypeVisitor( final PlexusTypeListener listener ) { delegate = new org.eclipse.sisu.plexus.PlexusTypeVisitor( adapt( listener ) ); }
public void visit( final ClassSpace _space ) { space = _space; plexusTypeVisitor.visit( _space ); }
AnnotationVisitor getComponentVisitor() { return plexusTypeVisitor.visitAnnotation( COMPONENT_DESC, true ); }
public NexusTypeVisitor( final NexusTypeListener listener ) { nexusTypeListener = listener; plexusTypeVisitor = new PlexusTypeVisitor( listener ); }
public AnnotationVisitor visitAnnotation( final String desc, final boolean visible ) { return adapt( delegate.visitAnnotation( desc ) ); }
@Override public void visit( final int version, final int access, final String name, final String signature, final String superName, final String[] interfaces ) { final String clazz = name.replace( '/', '.' ); nexusTypeListener.hear( clazz ); if ( ( access & ( Opcodes.ACC_ABSTRACT | Opcodes.ACC_INTERFACE | Opcodes.ACC_SYNTHETIC ) ) == 0 ) { scanForNexusMarkers( clazz, interfaces ); } plexusTypeVisitor.visit( version, access, name, signature, superName, interfaces ); }
@Override public AnnotationVisitor visitAnnotation( final String desc, final boolean visible ) { final AnnotationVisitor annotationVisitor = plexusTypeVisitor.visitAnnotation( desc, visible ); return nexusType.isComponent() && NAMED_DESC.equals( desc ) ? namedHintVisitor : annotationVisitor; }
@Override public void visit( final int version, final int access, final String name, final String signature, final String superName, final String[] interfaces ) { final String clazz = name.replace( '/', '.' ); nexusTypeListener.hear( clazz ); if ( ( access & ( Opcodes.ACC_ABSTRACT | Opcodes.ACC_INTERFACE | Opcodes.ACC_SYNTHETIC ) ) == 0 ) { scanForNexusMarkers( clazz, interfaces ); } plexusTypeVisitor.visit( version, access, name, signature, superName, interfaces ); }
@Override public AnnotationVisitor visitAnnotation( final String desc, final boolean visible ) { final AnnotationVisitor annotationVisitor = plexusTypeVisitor.visitAnnotation( desc, visible ); return nexusType.isComponent() && NAMED_DESC.equals( desc ) ? namedHintVisitor : annotationVisitor; }