Package | Description |
---|---|
com.thoughtworks.qdox |
Provides classes to start constructing a java project
|
com.thoughtworks.qdox.builder |
Provides classes which transform the structs from the JavaParser to the Java model elements
|
com.thoughtworks.qdox.builder.impl |
Provides the default implementation of the classes which transform the structs from the JavaParser to the Java model elements
|
com.thoughtworks.qdox.library |
Provides classes to construct a classloader-like structure of libraries
There are two types of ClassLibraryBuilders:
SortedClassLibraryBuilder , which bundles the libraries by type
OrderedClassLibraryBuilder , which respects the order of added libraries
There are four types of ClassLibraries:
ClassLoaderLibrary , which uses the classpath to search for sources or binaries
SourceLibrary , which uses a specific sourcefile
SourceFolderLibrary , which tries to locate sourcefiles by translating the package to folders
ClassNameLibrary , which generates an anonymous class, as if it would exist
|
com.thoughtworks.qdox.model |
Provides classes reflecting the Java model elements.
|
com.thoughtworks.qdox.model.impl |
Provides the default implementation of the classes reflecting the Java model elements.
|
com.thoughtworks.qdox.writer |
Provides classes to write Java model elements in any style
|
com.thoughtworks.qdox.writer.impl |
Provides the default implementation of classes to write Java model elements in any style.
|
Modifier and Type | Method and Description |
---|---|
JavaSource |
JavaProjectBuilder.addSource(File file)
Add a java source from a file to this JavaProjectBuilder
|
JavaSource |
JavaProjectBuilder.addSource(Reader reader)
Add a java source from a Reader to this JavaProjectBuilder
|
JavaSource |
JavaProjectBuilder.addSource(URL url)
Add a java source from a URL to this JavaProjectBuilder
|
Modifier and Type | Method and Description |
---|---|
Collection<JavaSource> |
JavaProjectBuilder.getSources()
Get all the sources added.
|
Modifier and Type | Method and Description |
---|---|
JavaSource |
Builder.getSource() |
Modifier and Type | Method and Description |
---|---|
JavaSource |
ModelBuilder.getSource() |
Modifier and Type | Method and Description |
---|---|
JavaSource |
ClassLibraryBuilder.addSource(File file) |
JavaSource |
OrderedClassLibraryBuilder.addSource(File file) |
JavaSource |
SortedClassLibraryBuilder.addSource(File file) |
JavaSource |
SourceLibrary.addSource(File file)
Add a
File containing java code to this library |
JavaSource |
ClassLibraryBuilder.addSource(InputStream stream) |
JavaSource |
OrderedClassLibraryBuilder.addSource(InputStream stream) |
JavaSource |
SortedClassLibraryBuilder.addSource(InputStream stream) |
JavaSource |
SourceLibrary.addSource(InputStream stream)
Add an
InputStream containing java code to this library |
JavaSource |
ClassLibraryBuilder.addSource(Reader reader)
Add the source content of the reader to the ClassLibrary and return the generated JavaSource
|
JavaSource |
OrderedClassLibraryBuilder.addSource(Reader reader) |
JavaSource |
SortedClassLibraryBuilder.addSource(Reader reader) |
JavaSource |
SourceLibrary.addSource(Reader reader)
Add a
Reader containing java code to this library |
JavaSource |
ClassLibraryBuilder.addSource(URL url) |
JavaSource |
OrderedClassLibraryBuilder.addSource(URL url) |
JavaSource |
SortedClassLibraryBuilder.addSource(URL url) |
JavaSource |
SourceLibrary.addSource(URL url)
Add a
URL containing java code to this library |
Modifier and Type | Method and Description |
---|---|
Collection<JavaSource> |
ClassLibrary.getJavaSources()
Return all JavaSources of the current library.
|
Collection<JavaSource> |
AbstractClassLibrary.getJavaSources() |
Collection<JavaSource> |
SourceLibrary.getJavaSources()
Get all sources, including those from parent SourceLibraries
|
protected Collection<JavaSource> |
AbstractClassLibrary.getJavaSources(com.thoughtworks.qdox.library.AbstractClassLibrary.ClassLibraryFilter filter) |
List<JavaSource> |
JavaClassContext.getSources()
Return all stored JavaSources
|
Modifier and Type | Method and Description |
---|---|
void |
JavaClassContext.add(JavaSource source)
Store a
JavaSource in this context |
protected void |
SourceLibrary.registerJavaSource(JavaSource source) |
Modifier and Type | Method and Description |
---|---|
JavaSource |
JavaClass.getParentSource() |
JavaSource |
JavaClass.getSource()
The compilation unit, which includes the imports, the public and anonymous classes
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultJavaSource |
Modifier and Type | Method and Description |
---|---|
JavaSource |
DefaultJavaType.getParentSource() |
JavaSource |
DefaultJavaClass.getParentSource() |
JavaSource |
DefaultJavaType.getSource()
The compilation unit, which includes the imports, the public and anonymous classes
|
JavaSource |
AbstractBaseJavaEntity.getSource() |
JavaSource |
DefaultJavaClass.getSource()
The compilation unit, which includes the imports, the public and anonymous classes
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractBaseJavaEntity.setSource(JavaSource source) |
Constructor and Description |
---|
DefaultJavaClass(JavaSource source) |
Modifier and Type | Method and Description |
---|---|
ModelWriter |
ModelWriter.writeSource(JavaSource src)
Write the complete source file
A standard source writer should write:
the package
the imports
the classes
|
Modifier and Type | Method and Description |
---|---|
ModelWriter |
DefaultModelWriter.writeSource(JavaSource source)
Write the complete source file
A standard source writer should write:
the package
the imports
the classes
|
Copyright © 2002–2018. All rights reserved.