Uses of Interface
com.thoughtworks.qdox.model.JavaClass
Packages that use JavaClass
Package
Description
Provides classes to start constructing a java project
Provides the default implementation of the classes which transform the structs from the JavaParser to the Java model elements
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
Provides classes reflecting the Java model elements.
Provides classes reflecting the Java expressions.
Provides the default implementation of the classes reflecting the Java model elements.
Provides classes to write Java model elements in any style
Provides the default implementation of classes to write Java model elements in any style.
-
Uses of JavaClass in com.thoughtworks.qdox
Methods in com.thoughtworks.qdox that return JavaClassModifier and TypeMethodDescriptionJavaProjectBuilder.getClassByName
(String name) Try to retrieve aJavaClass
by its name.Methods in com.thoughtworks.qdox that return types with arguments of type JavaClassModifier and TypeMethodDescriptionJavaProjectBuilder.getClasses()
Retrieve all classes which were added by sourcesMethods in com.thoughtworks.qdox with parameters of type JavaClass -
Uses of JavaClass in com.thoughtworks.qdox.builder.impl
Fields in com.thoughtworks.qdox.builder.impl declared as JavaClassMethods in com.thoughtworks.qdox.builder.impl that return JavaClassModifier and TypeMethodDescriptionprivate JavaClass
DefaultJavaAnnotationAssembler.createType
(TypeDef typeDef, int dimensions) private static JavaClass
ModelBuilder.getContext
(JavaGenericDeclaration genericDeclaration) Constructors in com.thoughtworks.qdox.builder.impl with parameters of type JavaClassModifierConstructorDescriptionDefaultJavaAnnotationAssembler
(JavaClass declaringClass, ClassLibrary classLibrary, TypeResolver typeResolver) -
Uses of JavaClass in com.thoughtworks.qdox.library
Fields in com.thoughtworks.qdox.library with type parameters of type JavaClassMethods in com.thoughtworks.qdox.library that return JavaClassModifier and TypeMethodDescriptionprivate JavaClass
AbstractClassLibrary.createStub
(String name) JavaClassContext.getClassByName
(String name) Retrieve theJavaClass
based on thename
.final JavaClass
AbstractClassLibrary.getJavaClass
(String name) First checks if there's a JavaClass available in the private context by this name.final JavaClass
AbstractClassLibrary.getJavaClass
(String name, boolean createStub) ClassLibrary.getJavaClass
(String name) Get the JavaClass or null if it's not possibleClassLibrary.getJavaClass
(String name, boolean createStub) Try to retrieve the JavaClass by the (binary) name.JavaClassContext.removeClassByName
(String name) Remove and return theJavaClass
based on thename
.protected abstract JavaClass
AbstractClassLibrary.resolveJavaClass
(String name) The implementation should check it's sources to see if it can build a JavaClass Model If not, just return null; Once found it will be mapped, so there's no need to keep a reference to this object.protected JavaClass
ClassLoaderLibrary.resolveJavaClass
(String name) protected JavaClass
ClassNameLibrary.resolveJavaClass
(String name) protected JavaClass
SourceFolderLibrary.resolveJavaClass
(String className) protected JavaClass
SourceLibrary.resolveJavaClass
(String name) Methods in com.thoughtworks.qdox.library that return types with arguments of type JavaClassModifier and TypeMethodDescriptionJavaClassContext.getClasses()
Return all stored JavaClassesAbstractClassLibrary.getJavaClasses()
Get all the classes of the currentAbstractClassLibrary
.protected final Collection<JavaClass>
AbstractClassLibrary.getJavaClasses
(AbstractClassLibrary.ClassLibraryFilter filter) Subclasses can call this method to gather all JavaClass object, including those from the parent.ClassLibrary.getJavaClasses()
Return all JavaClasses of the current library.SourceLibrary.getJavaClasses()
Get all classes, including those from parent SourceLibrariesMethods in com.thoughtworks.qdox.library with parameters of type JavaClassModifier and TypeMethodDescriptionvoid
Store thisJavaClass
based on its fully qualified nameprivate void
SourceLibrary.registerJavaClass
(JavaClass cls) -
Uses of JavaClass in com.thoughtworks.qdox.model
Methods in com.thoughtworks.qdox.model that return JavaClassModifier and TypeMethodDescriptionstatic JavaClass
JavaModelUtils.getClassByName
(JavaClass cls, String name) Try to resolve the class by thename
, either relative fromcls
as the fully qualified name.JavaPackage.getClassByName
(String name) Try to get any class of this package by name.JavaSource.getClassByName
(String name) Try to get any class of this source by name.JavaClass.getComponentType()
Equivalent ofClass.getComponentType()
If this type is an array, return its component typeJavaClass.getDeclaringClass()
JavaExecutable.getDeclaringClass()
JavaMember.getDeclaringClass()
Equivalent ofMember.getDeclaringClass()
JavaParameter.getDeclaringClass()
The declaring class of the declaring method of this parameter.JavaField.getEnumConstantClass()
JavaParameter.getJavaClass()
JavaClass.getNestedClassByName
(String name) JavaSource.getNestedClassByName
(String name) Try to get the JavaClass child based on its name relative to the package.JavaMethod.getReturns()
JavaModuleDescriptor.JavaProvides.getService()
JavaModuleDescriptor.JavaUses.getService()
JavaClass.getSuperJavaClass()
Shorthand for getSuperClass().getJavaClass() with null checking.JavaAnnotation.getType()
JavaField.getType()
Equivalent ofField.getType()
Methods in com.thoughtworks.qdox.model that return types with arguments of type JavaClassModifier and TypeMethodDescriptionJavaPackage.getClasses()
Returns all the classes found for the package.JavaSource.getClasses()
A List with all direct classes of this source, nevernull
JavaClass.getDerivedClasses()
Equivalent ofClass.getClasses()
Gets the known derived classes.JavaExecutable.getExceptions()
Equivalent ofExecutable.getExceptionTypes()
JavaClass.getInterfaces()
Equivalent ofClass.getInterfaces()
Determines the interfaces implemented by the class or interface represented by this object.JavaClass.getNestedClasses()
Equivalent ofClass.getDeclaredClasses()
JavaModuleDescriptor.JavaProvides.getProviders()
Methods in com.thoughtworks.qdox.model with parameters of type JavaClass -
Uses of JavaClass in com.thoughtworks.qdox.model.expression
Fields in com.thoughtworks.qdox.model.expression declared as JavaClassMethods in com.thoughtworks.qdox.model.expression that return JavaClassMethods in com.thoughtworks.qdox.model.expression with parameters of type JavaClassModifier and TypeMethodDescriptionprotected JavaField
FieldRef.resolveField
(JavaClass javaClass, int start, int end) void
FieldRef.setDeclaringClass
(JavaClass declaringClass) -
Uses of JavaClass in com.thoughtworks.qdox.model.impl
Classes in com.thoughtworks.qdox.model.impl that implement JavaClassModifier and TypeClassDescriptionclass
class
class
The default implementation forJavaType
class
DefaultJavaTypeVariable<D extends JavaGenericDeclaration>
Equivalent ofTypeVariable
class
Equivalent ofWildcardType
This class supports both the 'super' and 'extends' wildcards.Fields in com.thoughtworks.qdox.model.impl declared as JavaClassModifier and TypeFieldDescriptionprivate JavaClass
JavaMethodDelegate.callingClass
private JavaClass
AbstractJavaEntity.declaringClass
private JavaClass
DefaultJavaField.enumConstantClass
private JavaClass
DefaultJavaMethod.returns
private JavaClass
DefaultJavaModuleDescriptor.DefaultJavaProvides.service
private JavaClass
DefaultJavaModuleDescriptor.DefaultJavaUses.service
private final JavaClass
DefaultJavaAnnotation.type
private JavaClass
DefaultJavaField.type
private JavaClass
DefaultJavaParameter.type
Fields in com.thoughtworks.qdox.model.impl with type parameters of type JavaClassModifier and TypeFieldDescriptionDefaultJavaClass.classes
DefaultJavaPackage.classes
DefaultJavaSource.classes
DefaultJavaExecutable.exceptions
DefaultJavaClass.implementz
DefaultJavaModuleDescriptor.DefaultJavaProvides.providers
private List<DefaultJavaTypeVariable<JavaClass>>
DefaultJavaClass.typeParameters
Methods in com.thoughtworks.qdox.model.impl that return JavaClassModifier and TypeMethodDescriptionDefaultJavaPackage.getClassByName
(String name) Try to get any class of this package by name.DefaultJavaSource.getClassByName
(String name) Try to get any class of this source by name.DefaultJavaClass.getComponentType()
Equivalent ofClass.getComponentType()
If this type is an array, return its component typeDefaultJavaType.getComponentType()
Equivalent ofClass.getComponentType()
If this type is an array, return its component typeAbstractBaseJavaEntity.getDeclaringClass()
Not every entity has a parentClass, but AnnotationFieldRef requires access to it.AbstractJavaEntity.getDeclaringClass()
Not every entity has a parentClass, but AnnotationFieldRef requires access to it.DefaultJavaParameter.getDeclaringClass()
Not every entity has a parentClass, but AnnotationFieldRef requires access to it.DefaultJavaType.getDeclaringClass()
JavaMethodDelegate.getDeclaringClass()
Equivalent ofMember.getDeclaringClass()
DefaultJavaField.getEnumConstantClass()
DefaultJavaParameter.getJavaClass()
DefaultJavaClass.getNestedClassByName
(String name) DefaultJavaSource.getNestedClassByName
(String name) Try to get the JavaClass child based on its name relative to the package.DefaultJavaType.getNestedClassByName
(String name) DefaultJavaMethod.getReturns()
JavaMethodDelegate.getReturns()
DefaultJavaModuleDescriptor.DefaultJavaProvides.getService()
DefaultJavaModuleDescriptor.DefaultJavaUses.getService()
DefaultJavaClass.getSuperJavaClass()
Shorthand for getSuperClass().getJavaClass() with null checking.DefaultJavaType.getSuperJavaClass()
Shorthand for getSuperClass().getJavaClass() with null checking.DefaultJavaAnnotation.getType()
DefaultJavaField.getType()
Equivalent ofField.getType()
private JavaClass
DefaultJavaType.resolveRealClass()
Methods in com.thoughtworks.qdox.model.impl that return types with arguments of type JavaClassModifier and TypeMethodDescriptionDefaultJavaPackage.getClasses()
Returns all the classes found for the package.DefaultJavaSource.getClasses()
A List with all direct classes of this source, nevernull
DefaultJavaClass.getDerivedClasses()
Equivalent ofClass.getClasses()
Gets the known derived classes.DefaultJavaType.getDerivedClasses()
Equivalent ofClass.getClasses()
Gets the known derived classes.DefaultJavaExecutable.getExceptions()
Equivalent ofExecutable.getExceptionTypes()
JavaMethodDelegate.getExceptions()
Equivalent ofExecutable.getExceptionTypes()
DefaultJavaClass.getInterfaces()
Equivalent ofClass.getInterfaces()
Determines the interfaces implemented by the class or interface represented by this object.DefaultJavaType.getInterfaces()
Equivalent ofClass.getInterfaces()
Determines the interfaces implemented by the class or interface represented by this object.DefaultJavaClass.getNestedClasses()
Equivalent ofClass.getDeclaredClasses()
DefaultJavaType.getNestedClasses()
Equivalent ofClass.getDeclaredClasses()
DefaultJavaModuleDescriptor.DefaultJavaProvides.getProviders()
DefaultJavaClass.getTypeParameters()
Equivalent ofGenericDeclaration.getTypeParameters()
Methods in com.thoughtworks.qdox.model.impl with parameters of type JavaClassModifier and TypeMethodDescriptionvoid
void
void
private static Map<String,
JavaMethod> DefaultJavaClass.getMethodsFromSuperclassAndInterfaces
(JavaClass rootClass, JavaClass callingClazz) DefaultJavaClass.getTagsRecursive
(JavaClass javaClass, String name, boolean superclasses) private static int
DefaultJavaType.getTypeVariableIndex
(JavaClass declaringClass, String fqn) boolean
boolean
protected static JavaType
Consider the following examplevoid
AbstractJavaEntity.setDeclaringClass
(JavaClass declaringClass) void
DefaultJavaField.setEnumConstantClass
(JavaClass enumConstantClass) void
DefaultJavaMethod.setReturns
(JavaClass returns) Define the return type of this methodvoid
Method parameters in com.thoughtworks.qdox.model.impl with type arguments of type JavaClassModifier and TypeMethodDescriptionvoid
DefaultJavaExecutable.setExceptions
(List<JavaClass> exceptions) void
DefaultJavaClass.setImplementz
(List<JavaClass> implementz) void
DefaultJavaClass.setTypeParameters
(List<DefaultJavaTypeVariable<JavaClass>> typeParameters) Constructors in com.thoughtworks.qdox.model.impl with parameters of type JavaClassModifierConstructorDescriptionDefaultJavaAnnotation
(JavaClass type, Map<String, Object> namedParameters) DefaultJavaField
(JavaClass type, String name) DefaultJavaMethod
(JavaClass returns, String name) Create a new method without parametersDefaultJavaParameter
(JavaClass type, String name) DefaultJavaParameter
(JavaClass type, String name, boolean varArgs) DefaultJavaProvides
(JavaClass service, List<JavaClass> providers) DefaultJavaUses
(JavaClass service) JavaMethodDelegate
(JavaClass callingClass, JavaMethod originalMethod) Constructor parameters in com.thoughtworks.qdox.model.impl with type arguments of type JavaClass -
Uses of JavaClass in com.thoughtworks.qdox.type
Methods in com.thoughtworks.qdox.type that return JavaClassModifier and TypeMethodDescriptionTypeResolver.getJavaClass
(String binaryName) TypeResolver.resolveJavaClass
(String typeName) -
Uses of JavaClass in com.thoughtworks.qdox.writer
Methods in com.thoughtworks.qdox.writer with parameters of type JavaClassModifier and TypeMethodDescriptionModelWriter.writeClass
(JavaClass cls) Write the java class A standard class writer should write: the javadoc the annotations the class signature, containing: the fields the constructors the methods -
Uses of JavaClass in com.thoughtworks.qdox.writer.impl
Methods in com.thoughtworks.qdox.writer.impl with parameters of type JavaClassModifier and TypeMethodDescriptionDefaultModelWriter.writeClass
(JavaClass cls) Write the java class A standard class writer should write: the javadoc the annotations the class signature, containing: the fields the constructors the methodsprivate ModelWriter
DefaultModelWriter.writeClassBody
(JavaClass cls)