Package org.eclipse.sisu.space
Class SpaceScanner
- java.lang.Object
-
- org.eclipse.sisu.space.SpaceScanner
-
public final class SpaceScanner extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SpaceScanner(ClassSpace space)
SpaceScanner(ClassSpace space, ClassFinder finder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
accept(ClassVisitor visitor, java.net.URL url)
Makes the givenClassVisitor
visit the class contained in the resourceURL
.void
accept(SpaceVisitor visitor)
Makes the givenSpaceVisitor
visit theClassSpace
of this scanner.static java.lang.String
jvmDescriptor(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
Returns the JVM descriptor for the given annotation class, such as "Ljavax/inject/Qualifier;".
-
-
-
Constructor Detail
-
SpaceScanner
public SpaceScanner(ClassSpace space, ClassFinder finder)
-
SpaceScanner
public SpaceScanner(ClassSpace space)
-
-
Method Detail
-
accept
public void accept(SpaceVisitor visitor)
Makes the givenSpaceVisitor
visit theClassSpace
of this scanner.- Parameters:
visitor
- The class space visitor
-
accept
public static void accept(ClassVisitor visitor, java.net.URL url)
Makes the givenClassVisitor
visit the class contained in the resourceURL
.- Parameters:
visitor
- The class space visitorurl
- The class resource URL
-
jvmDescriptor
public static java.lang.String jvmDescriptor(java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
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:
ClassVisitor.visitAnnotation(String)
-
-