Package org.apache.uima.fit.maven.util
Class Util
java.lang.Object
org.apache.uima.fit.maven.util.Util
-
Method Summary
Modifier and TypeMethodDescriptionstatic URLClassLoadergetClassloader(org.apache.maven.project.MavenProject aProject, String aIncludeScopeThreshold) Create a class loader which covers the classes compiled in the current project and all dependencies.static StringgetClassName(org.apache.maven.project.MavenProject aProject, String aFile) Get the class name for a class file.static StringgetComponentDocumentation(com.thoughtworks.qdox.model.JavaSource aAst, String aComponentTypeName) static StringgetParameterDocumentation(com.thoughtworks.qdox.model.JavaSource aAst, String aParameterField, String aParameterNameConstantField) static ComponentTypegetType(ClassLoader aClassLoader, Class aClass) Determine what kind of class it is.static booleanisComponent(ClassLoader aClassLoader, Class aClass) static com.thoughtworks.qdox.model.JavaSourceparseSource(String aSourceFile, String aEncoding) static StringpostProcessJavaDoc(String aJavaDoc)
-
Method Details
-
parseSource
public static com.thoughtworks.qdox.model.JavaSource parseSource(String aSourceFile, String aEncoding) throws IOException - Throws:
IOException
-
getComponentDocumentation
-
postProcessJavaDoc
-
getParameterDocumentation
-
getClassName
Get the class name for a class file. -
getClassloader
public static URLClassLoader getClassloader(org.apache.maven.project.MavenProject aProject, String aIncludeScopeThreshold) throws org.apache.maven.plugin.MojoExecutionException Create a class loader which covers the classes compiled in the current project and all dependencies.- Throws:
org.apache.maven.plugin.MojoExecutionException
-
isComponent
public static boolean isComponent(ClassLoader aClassLoader, Class aClass) throws ClassNotFoundException - Throws:
ClassNotFoundException
-
getType
public static ComponentType getType(ClassLoader aClassLoader, Class aClass) throws ClassNotFoundException Determine what kind of class it is.- Parameters:
aClassLoader- the class loader by which the component was loaded.- Throws:
ClassNotFoundException
-