public class JavaSourceParser
extends java.lang.Object
Constructor and Description |
---|
JavaSourceParser() |
Modifier and Type | Method and Description |
---|---|
static void |
addSource(java.io.File baseDir)
Adds source code under the given directory to the database.
|
static java.lang.String |
getArgDocs(java.lang.reflect.Constructor<?> c,
int arg) |
static java.lang.String |
getArgDocs(java.lang.reflect.Method m,
int arg) |
static java.lang.String[] |
getArgNames(java.lang.reflect.Constructor<?> c) |
static java.lang.String[] |
getArgNames(java.lang.reflect.Method m) |
static java.lang.String |
getDocs(java.lang.Class<?> c) |
static java.lang.String |
getDocs(java.lang.reflect.Constructor<?> c) |
static java.lang.String |
getDocs(java.lang.reflect.Method m) |
static java.lang.reflect.Method |
getMethod(java.lang.String reference,
java.lang.String referringClassName) |
static java.lang.String |
getSignature(java.lang.reflect.Method m) |
static java.lang.String |
removeTags(java.lang.String html) |
public static void addSource(java.io.File baseDir)
baseDir
- Root directory of source codepublic static java.lang.String getDocs(java.lang.Class<?> c)
c
- A Java classpublic static java.lang.reflect.Method getMethod(java.lang.String reference, java.lang.String referringClassName) throws java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.ClassNotFoundException
reference
- A JavaDoc see-tag-style reference, ie fully.qualified.ClassName#methodName(ArgType0, ArgType1)referringClassName
- Name of class on which the see tag is written (used to find default package if
arg types are not qualified, and class if undefined)java.lang.NoSuchMethodException
- if the method doesn't existjava.lang.SecurityException
- if we can't access the methodjava.lang.ClassNotFoundException
- if the class doesn't existpublic static java.lang.String getDocs(java.lang.reflect.Method m)
m
- A Java methodpublic static java.lang.String getDocs(java.lang.reflect.Constructor<?> c)
c
- A Java constructorpublic static java.lang.String[] getArgNames(java.lang.reflect.Method m)
m
- A Java methodpublic static java.lang.String[] getArgNames(java.lang.reflect.Constructor<?> c)
c
- A Java constructorpublic static java.lang.String getArgDocs(java.lang.reflect.Method m, int arg)
m
- A Java methodarg
- Index of an argument on this methodpublic static java.lang.String getArgDocs(java.lang.reflect.Constructor<?> c, int arg)
c
- A Java constructorarg
- Index of an argument on this constructorpublic static java.lang.String getSignature(java.lang.reflect.Method m)
m
- A Java methodpublic static java.lang.String removeTags(java.lang.String html)
html
- Some text