| 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(java.io.File file)
Add a java source from a file to this JavaProjectBuilder
|
JavaSource |
JavaProjectBuilder.addSource(java.io.Reader reader)
Add a java source from a Reader to this JavaProjectBuilder
|
JavaSource |
JavaProjectBuilder.addSource(java.net.URL url)
Add a java source from a URL to this JavaProjectBuilder
|
| Modifier and Type | Method and Description |
|---|---|
java.util.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 |
SourceLibrary.addSource(java.io.File file)
Add a
File containing java code to this library |
JavaSource |
SortedClassLibraryBuilder.addSource(java.io.File file) |
JavaSource |
OrderedClassLibraryBuilder.addSource(java.io.File file) |
JavaSource |
ClassLibraryBuilder.addSource(java.io.File file) |
JavaSource |
SourceLibrary.addSource(java.io.InputStream stream)
Add an
InputStream containing java code to this library |
JavaSource |
SortedClassLibraryBuilder.addSource(java.io.InputStream stream) |
JavaSource |
OrderedClassLibraryBuilder.addSource(java.io.InputStream stream) |
JavaSource |
ClassLibraryBuilder.addSource(java.io.InputStream stream) |
JavaSource |
SourceLibrary.addSource(java.io.Reader reader)
Add a
Reader containing java code to this library |
JavaSource |
SortedClassLibraryBuilder.addSource(java.io.Reader reader) |
JavaSource |
OrderedClassLibraryBuilder.addSource(java.io.Reader reader) |
JavaSource |
ClassLibraryBuilder.addSource(java.io.Reader reader)
Add the source content of the reader to the ClassLibrary and return the generated JavaSource
|
JavaSource |
SourceLibrary.addSource(java.net.URL url)
Add a
URL containing java code to this library |
JavaSource |
SortedClassLibraryBuilder.addSource(java.net.URL url) |
JavaSource |
OrderedClassLibraryBuilder.addSource(java.net.URL url) |
JavaSource |
ClassLibraryBuilder.addSource(java.net.URL url) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<JavaSource> |
SourceLibrary.getJavaSources()
Get all sources, including those from parent SourceLibraries
|
java.util.Collection<JavaSource> |
ClassLibrary.getJavaSources()
Return all JavaSources of the current library.
|
java.util.Collection<JavaSource> |
AbstractClassLibrary.getJavaSources() |
protected java.util.Collection<JavaSource> |
AbstractClassLibrary.getJavaSources(com.thoughtworks.qdox.library.AbstractClassLibrary.ClassLibraryFilter filter) |
java.util.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 |
DefaultJavaClass.getSource()
The compilation unit, which includes the imports, the public and anonymous classes
|
JavaSource |
AbstractBaseJavaEntity.getSource() |
| 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.