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 ClassFinderprivate final ClassFinderprivate final booleanIf set totruewill throwRuntimeExceptionin case class cannot be scanned.private final ClassSpace -
Constructor Summary
ConstructorsConstructorDescriptionSpaceScanner(ClassSpace space) Deprecated.SpaceScanner(ClassSpace space, boolean isStrict) SpaceScanner(ClassSpace space, ClassFinder finder) Deprecated.UseSpaceScanner(ClassSpace, ClassFinder, boolean)instead.SpaceScanner(ClassSpace space, ClassFinder finder, boolean isStrict) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaccept(ClassVisitor visitor, URL url) Deprecated.Useaccept(ClassVisitor, URL, boolean)instead.static voidaccept(ClassVisitor visitor, URL url, boolean isStrict) Makes the givenClassVisitorvisit the class contained in the resourceURL.voidaccept(SpaceVisitor visitor) Makes the givenSpaceVisitorvisit theClassSpaceof this scanner.private static ClassVisitoradapt(ClassVisitor _cv) Adapts the givenClassVisitorto its equivalent ASM form.static StringjvmDescriptor(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
-
isStrict
private final boolean isStrictIf set totruewill throwRuntimeExceptionin case class cannot be scanned.
-
-
Constructor Details
-
SpaceScanner
-
SpaceScanner
Deprecated.UseSpaceScanner(ClassSpace, ClassFinder, boolean)instead.- Parameters:
space-finder-
-
SpaceScanner
-
SpaceScanner
Deprecated.UseSpaceScanner(ClassSpace, boolean)instead.- Parameters:
space-
-
-
Method Details
-
accept
Makes the givenSpaceVisitorvisit theClassSpaceof this scanner.- Parameters:
visitor- The class space visitor
-
accept
Deprecated.Useaccept(ClassVisitor, URL, boolean)instead.Shortcut foraccept(ClassVisitor, URL, boolean)with third parameter beingfalse.- Parameters:
visitor- The class space visitorurl- The class resource URL
-
accept
Makes the givenClassVisitorvisit the class contained in the resourceURL.- Parameters:
visitor- The class space visitorurl- The class resource URLisStrict- If set totruethrowsRuntimeExceptionin case of parsing issues with the class
-
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 givenClassVisitorto its equivalent ASM form.- Parameters:
_cv- The class visitor to adapt- Returns:
- ASM-compatible class visitor
-
SpaceScanner(ClassSpace, boolean)instead.