Package org.eclipse.sisu.space
Class SpaceScanner
- java.lang.Object
-
- org.eclipse.sisu.space.SpaceScanner
-
public final class SpaceScanner extends Object
-
-
Constructor Summary
Constructors Constructor Description SpaceScanner(ClassSpace space)
Deprecated.UseSpaceScanner(ClassSpace, boolean)
instead.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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
accept(ClassVisitor visitor, URL url)
Deprecated.Useaccept(ClassVisitor, URL, boolean)
instead.static void
accept(ClassVisitor visitor, URL url, boolean isStrict)
Makes the givenClassVisitor
visit the class contained in the resourceURL
.void
accept(SpaceVisitor visitor)
Makes the givenSpaceVisitor
visit theClassSpace
of this scanner.static String
jvmDescriptor(Class<? extends 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, boolean isStrict)
-
SpaceScanner
@Deprecated public SpaceScanner(ClassSpace space, ClassFinder finder)
Deprecated.UseSpaceScanner(ClassSpace, ClassFinder, boolean)
instead.- Parameters:
space
-finder
-
-
SpaceScanner
public SpaceScanner(ClassSpace space, boolean isStrict)
-
SpaceScanner
@Deprecated public SpaceScanner(ClassSpace space)
Deprecated.UseSpaceScanner(ClassSpace, boolean)
instead.- Parameters:
space
-
-
-
Method Detail
-
accept
public void accept(SpaceVisitor visitor)
Makes the givenSpaceVisitor
visit theClassSpace
of this scanner.- Parameters:
visitor
- The class space visitor
-
accept
@Deprecated public static void accept(ClassVisitor visitor, URL url)
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
public static void accept(ClassVisitor visitor, URL url, boolean isStrict)
Makes the givenClassVisitor
visit the class contained in the resourceURL
.- Parameters:
visitor
- The class space visitorurl
- The class resource URLisStrict
- If set totrue
throwsRuntimeException
in case of parsing issues with the class
-
jvmDescriptor
public static String jvmDescriptor(Class<? extends 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)
-
-