public class Doclet
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static interface |
Doclet.IProcessor
Processor interface
|
(package private) static class |
Doclet.NoOpProcessor |
(package private) static class |
Doclet.OutputMode
Output mode
|
| Modifier and Type | Field and Description |
|---|---|
private static Doclet.OutputMode |
theMode |
(package private) static java.util.Map<java.lang.String,edu.stanford.nlp.trees.GrammaticalRelation> |
theNameToRelationMap |
private static java.lang.String |
theOutputClass
Output class
|
private static java.lang.String |
theOutputFile
Output file
|
(package private) static java.util.Map<edu.stanford.nlp.trees.GrammaticalRelation,java.lang.String> |
theRelationToNameMap |
| Constructor and Description |
|---|
Doclet()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] theseArgs0)
Main entry point
|
private static void |
makeMaps(java.lang.String thisClass)
Make maps
|
static int |
optionLength(java.lang.String option) |
private static java.lang.String |
parseComment(java.lang.String thisComment0,
java.util.List<java.lang.String[]> thisCodedExampleList)
Parse comment
|
private static boolean |
process(com.sun.javadoc.ClassDoc thisClassDoc,
java.lang.String thisSource,
java.lang.String thisDestination,
java.io.PrintWriter thisPrintWriter,
Doclet.IProcessor thisProcessor)
Process specified source file
|
(package private) static void |
processEntry(java.lang.String thisName,
java.lang.String thisDescription,
java.lang.String[][] theseCodedExamples,
java.io.PrintWriter thisPrintWriter,
Doclet.IProcessor thisProcessor)
Print entry
|
private static void |
readOptions(java.lang.String[][] theseOptions) |
static boolean |
start(com.sun.javadoc.RootDoc thisRootDoc)
Start
|
(package private) static java.lang.String |
toStringArray(java.lang.String[][] theseStrings) |
(package private) static java.lang.String |
toStringArray(java.lang.String[] theseStrings,
boolean quote) |
(package private) static java.lang.String |
toStringArray1(java.lang.String[][] theseStrings) |
static boolean |
validOptions(java.lang.String[][] theseOptions,
com.sun.javadoc.DocErrorReporter thisReporter) |
static java.util.Map<java.lang.String,edu.stanford.nlp.trees.GrammaticalRelation> theNameToRelationMap
static java.util.Map<edu.stanford.nlp.trees.GrammaticalRelation,java.lang.String> theRelationToNameMap
private static java.lang.String theOutputFile
private static java.lang.String theOutputClass
private static Doclet.OutputMode theMode
public Doclet()
throws java.lang.SecurityException,
java.lang.IllegalArgumentException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.NoSuchMethodException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchFieldException
java.lang.SecurityException - exceptionjava.lang.IllegalArgumentException - exceptionjava.lang.InstantiationException - exceptionjava.lang.IllegalAccessException - exceptionjava.lang.NoSuchMethodException - exceptionjava.lang.reflect.InvocationTargetException - exceptionjava.lang.NoSuchFieldException - exceptionprivate static void makeMaps(java.lang.String thisClass)
thisClass - class containing instance as static memberpublic static boolean start(com.sun.javadoc.RootDoc thisRootDoc)
throws java.io.FileNotFoundException,
java.lang.SecurityException,
java.lang.IllegalArgumentException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.NoSuchMethodException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchFieldException
thisRootDoc - root docjava.io.FileNotFoundException - exceptionjava.lang.SecurityException - exceptionjava.lang.IllegalArgumentException - exceptionjava.lang.InstantiationException - exceptionjava.lang.IllegalAccessException - exceptionjava.lang.NoSuchMethodException - exceptionjava.lang.reflect.InvocationTargetException - exceptionjava.lang.NoSuchFieldException - exceptionprivate static boolean process(com.sun.javadoc.ClassDoc thisClassDoc,
java.lang.String thisSource,
java.lang.String thisDestination,
java.io.PrintWriter thisPrintWriter,
Doclet.IProcessor thisProcessor)
throws java.lang.IllegalArgumentException,
java.lang.SecurityException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchMethodException
thisClassDoc - class doc to processthisSource - sourcethisDestination - destinationthisPrintWriter - print writer for outputthisProcessor - processorjava.lang.IllegalArgumentException - exceptionjava.lang.SecurityException - exceptionjava.lang.IllegalAccessException - exceptionjava.lang.reflect.InvocationTargetException - exceptionjava.lang.NoSuchMethodException - exceptionprivate static java.lang.String parseComment(java.lang.String thisComment0,
java.util.List<java.lang.String[]> thisCodedExampleList)
thisComment0 - commentthisCodedExampleList - coded exaple liststatic void processEntry(java.lang.String thisName,
java.lang.String thisDescription,
java.lang.String[][] theseCodedExamples,
java.io.PrintWriter thisPrintWriter,
Doclet.IProcessor thisProcessor)
throws java.lang.IllegalArgumentException,
java.lang.SecurityException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
java.lang.NoSuchMethodException
thisName - namethisDescription - descriptiontheseCodedExamples - array of (example,code) pairsthisPrintWriter - printwriterthisProcessor - processorjava.lang.IllegalArgumentException - exceptionjava.lang.SecurityException - exceptionjava.lang.IllegalAccessException - exceptionjava.lang.reflect.InvocationTargetException - exceptionjava.lang.NoSuchMethodException - exceptionstatic java.lang.String toStringArray(java.lang.String[] theseStrings,
boolean quote)
static java.lang.String toStringArray(java.lang.String[][] theseStrings)
static java.lang.String toStringArray1(java.lang.String[][] theseStrings)
private static void readOptions(java.lang.String[][] theseOptions)
public static int optionLength(java.lang.String option)
public static boolean validOptions(java.lang.String[][] theseOptions,
com.sun.javadoc.DocErrorReporter thisReporter)
public static void main(java.lang.String[] theseArgs0)
theseArgs0 - save arguments as javadoc