Package org.eclipse.sisu.plexus
Class PlexusTypeVisitor
java.lang.Object
org.eclipse.sisu.plexus.PlexusTypeVisitor
- All Implemented Interfaces:
ClassVisitor
,SpaceVisitor
SpaceVisitor
that reports Plexus bean classes annotated with @Component
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
AnnotationVisitor
that records details of @Component
annotations. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private final PlexusTypeVisitor.ComponentAnnotationVisitor
private String
private final PlexusTypeListener
private final QualifiedTypeVisitor
private String
private ClassSpace
Fields inherited from interface org.eclipse.sisu.space.ClassVisitor
NON_INSTANTIABLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
enterClass
(int modifiers, String name, String _extends, String[] _implements) Enters the class definition.void
enterSpace
(ClassSpace _space) Enters the class space.void
Leaves the class definition.void
Leaves the class space.visitAnnotation
(String desc) Visits an annotation declared on the class.visitClass
(URL url) Visits a class resource in the class space.
-
Field Details
-
COMPONENT_DESC
-
componentVisitor
-
plexusTypeListener
-
qualifiedTypeVisitor
-
space
-
source
-
implementation
-
-
Constructor Details
-
PlexusTypeVisitor
-
-
Method Details
-
enterSpace
Description copied from interface:SpaceVisitor
Enters the class space.- Specified by:
enterSpace
in interfaceSpaceVisitor
- Parameters:
_space
- The class space
-
visitClass
Description copied from interface:SpaceVisitor
Visits a class resource in the class space.- Specified by:
visitClass
in interfaceSpaceVisitor
- Parameters:
url
- The class resource URL- Returns:
- Class visitor;
null
if it is not interested in visiting the class
-
enterClass
Description copied from interface:ClassVisitor
Enters the class definition.- Specified by:
enterClass
in interfaceClassVisitor
- Parameters:
modifiers
- The access modifiersname
- The internal name, such as "javax/inject/Provider"_extends
- Extends this superclass_implements
- Implements these interfaces
-
visitAnnotation
Description copied from interface:ClassVisitor
Visits an annotation declared on the class.- Specified by:
visitAnnotation
in interfaceClassVisitor
- Parameters:
desc
- The JVM descriptor for the annotation class, such as "Ljavax/inject/Qualifier;"- Returns:
- Annotation visitor;
null
if it is not interested in visiting the annotation - See Also:
-
leaveClass
public void leaveClass()Description copied from interface:ClassVisitor
Leaves the class definition.- Specified by:
leaveClass
in interfaceClassVisitor
-
leaveSpace
public void leaveSpace()Description copied from interface:SpaceVisitor
Leaves the class space.- Specified by:
leaveSpace
in interfaceSpaceVisitor
-