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 aJavaClassby 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 JavaClassDefaultJavaAnnotationAssembler.createType(TypeDef typeDef, int dimensions) private static JavaClassModelBuilder.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 JavaClassAbstractClassLibrary.createStub(String name) JavaClassContext.getClassByName(String name) Retrieve theJavaClassbased on thename.final JavaClassAbstractClassLibrary.getJavaClass(String name) First checks if there's a JavaClass available in the private context by this name.final JavaClassAbstractClassLibrary.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 theJavaClassbased on thename.protected abstract JavaClassAbstractClassLibrary.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 JavaClassClassLoaderLibrary.resolveJavaClass(String name) protected JavaClassClassNameLibrary.resolveJavaClass(String name) protected JavaClassSourceFolderLibrary.resolveJavaClass(String className) protected JavaClassSourceLibrary.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 TypeMethodDescriptionvoidStore thisJavaClassbased on its fully qualified nameprivate voidSourceLibrary.registerJavaClass(JavaClass cls) -
Uses of JavaClass in com.thoughtworks.qdox.model
Methods in com.thoughtworks.qdox.model that return JavaClassModifier and TypeMethodDescriptionstatic JavaClassJavaModelUtils.getClassByName(JavaClass cls, String name) Try to resolve the class by thename, either relative fromclsas 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, nevernullJavaClass.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 JavaFieldFieldRef.resolveField(JavaClass javaClass, int start, int end) voidFieldRef.setDeclaringClass(JavaClass declaringClass) -
Uses of JavaClass in com.thoughtworks.qdox.model.impl
Classes in com.thoughtworks.qdox.model.impl that implement JavaClassModifier and TypeClassDescriptionclassclassclassThe default implementation forJavaTypeclassDefaultJavaTypeVariable<D extends JavaGenericDeclaration>Equivalent ofTypeVariableclassEquivalent ofWildcardTypeThis class supports both the 'super' and 'extends' wildcards.Fields in com.thoughtworks.qdox.model.impl declared as JavaClassModifier and TypeFieldDescriptionprivate JavaClassJavaMethodDelegate.callingClassprivate JavaClassAbstractJavaEntity.declaringClassprivate JavaClassDefaultJavaField.enumConstantClassprivate JavaClassDefaultJavaMethod.returnsprivate JavaClassDefaultJavaModuleDescriptor.DefaultJavaProvides.serviceprivate JavaClassDefaultJavaModuleDescriptor.DefaultJavaUses.serviceprivate final JavaClassDefaultJavaAnnotation.typeprivate JavaClassDefaultJavaField.typeprivate JavaClassDefaultJavaParameter.typeFields in com.thoughtworks.qdox.model.impl with type parameters of type JavaClassModifier and TypeFieldDescriptionDefaultJavaClass.classesDefaultJavaPackage.classesDefaultJavaSource.classesDefaultJavaExecutable.exceptionsDefaultJavaClass.implementzDefaultJavaModuleDescriptor.DefaultJavaProvides.providersprivate List<DefaultJavaTypeVariable<JavaClass>>DefaultJavaClass.typeParametersMethods 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 JavaClassDefaultJavaType.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, nevernullDefaultJavaClass.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 TypeMethodDescriptionvoidvoidvoidprivate static Map<String,JavaMethod> DefaultJavaClass.getMethodsFromSuperclassAndInterfaces(JavaClass rootClass, JavaClass callingClazz) DefaultJavaClass.getTagsRecursive(JavaClass javaClass, String name, boolean superclasses) private static intDefaultJavaType.getTypeVariableIndex(JavaClass declaringClass, String fqn) booleanbooleanprotected static JavaTypeConsider the following examplevoidAbstractJavaEntity.setDeclaringClass(JavaClass declaringClass) voidDefaultJavaField.setEnumConstantClass(JavaClass enumConstantClass) voidDefaultJavaMethod.setReturns(JavaClass returns) Define the return type of this methodvoidMethod parameters in com.thoughtworks.qdox.model.impl with type arguments of type JavaClassModifier and TypeMethodDescriptionvoidDefaultJavaExecutable.setExceptions(List<JavaClass> exceptions) voidDefaultJavaClass.setImplementz(List<JavaClass> implementz) voidDefaultJavaClass.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 ModelWriterDefaultModelWriter.writeClassBody(JavaClass cls)