java.lang.Object | |
↳ | org.eclipse.sisu.space.SisuIndex |
Command-line utility that generates a qualified class index for a space-separated list of JARs.
The index consists of qualified class names listed in META-INF/sisu/javax.inject.Named
.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.eclipse.sisu.space.ClassVisitor
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SisuIndex(File targetDirectory) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
final void |
enterClass(int modifiers, String name, String _extends, String[] _implements)
Enters the class definition.
| ||||||||||
final void |
enterSpace(ClassSpace _space)
Enters the class space.
| ||||||||||
final void | index(ClassSpace _space) | ||||||||||
final void |
leaveClass()
Leaves the class definition.
| ||||||||||
final void |
leaveSpace()
Leaves the class space.
| ||||||||||
static void | main(String[] args) | ||||||||||
final AnnotationVisitor |
visitAnnotation(String desc)
Visits an annotation declared on the class.
| ||||||||||
final ClassVisitor |
visitClass(URL url)
Visits a class resource in the class space.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized final void |
addClassToIndex(Object anno, Object clazz)
Adds a new annotated class entry to the index.
| ||||||||||
synchronized final void |
flushIndex()
Writes the current index as a series of tables.
| ||||||||||
Reader |
getReader(String path)
Creates a new reader for the given input path.
| ||||||||||
Writer |
getWriter(String path)
Creates a new writer for the given output path.
| ||||||||||
void |
info(String message)
Reports an informational message.
| ||||||||||
void |
warn(String message)
Reports a warning message.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.eclipse.sisu.space.ClassVisitor
| |||||||||||
From interface
org.eclipse.sisu.space.SpaceVisitor
|
Enters the class definition.
modifiers | The access modifiers |
---|---|
name | The internal name, such as "javax/inject/Provider" |
_extends | Extends this superclass |
_implements | Implements these interfaces |
Enters the class space.
_space | The class space |
---|
Leaves the class definition.
Leaves the class space.
Visits an annotation declared on the class.
desc | The JVM descriptor for the annotation class, such as "Ljavax/inject/Qualifier;" |
---|
null
if it is not interested in visiting the annotationVisits a class resource in the class space.
url | The class resource URL |
---|
null
if it is not interested in visiting the class
Adds a new annotated class entry to the index.
anno | The annotation name |
---|---|
clazz | The class name |
Writes the current index as a series of tables.
Creates a new reader for the given input path.
path | The input path |
---|
IOException |
---|
Creates a new writer for the given output path.
path | The output path |
---|
IOException |
---|
Reports an informational message.
message | The message |
---|