Package org.eclipse.sisu.space
Class SpaceScanner
java.lang.Object
org.eclipse.sisu.space.SpaceScanner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
(package private) static final ClassFinder
private final ClassFinder
private final ClassSpace
-
Constructor Summary
ConstructorsConstructorDescriptionSpaceScanner
(ClassSpace space) SpaceScanner
(ClassSpace space, ClassFinder finder) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
accept
(ClassVisitor visitor, URL url) Makes the givenClassVisitor
visit the class contained in the resourceURL
.void
accept
(SpaceVisitor visitor) Makes the givenSpaceVisitor
visit theClassSpace
of this scanner.private static ClassVisitor
adapt
(ClassVisitor _cv) Adapts the givenClassVisitor
to its equivalent ASM form.static String
jvmDescriptor
(Class<? extends Annotation> clazz) Returns the JVM descriptor for the given annotation class, such as "Ljavax/inject/Qualifier;".
-
Field Details
-
ASM_FLAGS
private static final int ASM_FLAGS- See Also:
-
DEFAULT_FINDER
-
space
-
finder
-
-
Constructor Details
-
SpaceScanner
-
SpaceScanner
-
-
Method Details
-
accept
Makes the givenSpaceVisitor
visit theClassSpace
of this scanner.- Parameters:
visitor
- The class space visitor
-
accept
Makes the givenClassVisitor
visit the class contained in the resourceURL
.- Parameters:
visitor
- The class space visitorurl
- The class resource URL
-
jvmDescriptor
Returns the JVM descriptor for the given annotation class, such as "Ljavax/inject/Qualifier;".- Parameters:
clazz
- The annotation class- Returns:
- JVM descriptor of the class
- See Also:
-
adapt
Adapts the givenClassVisitor
to its equivalent ASM form.- Parameters:
_cv
- The class visitor to adapt- Returns:
- ASM-compatible class visitor
-