public class Options extends java.lang.Object implements java.lang.Cloneable, OptionProvider
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEFAULT_EXTERNAL_APIDOC |
java.lang.String |
outputDirectory |
java.lang.String |
outputFileName |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
java.lang.String |
getApiDocRoot(java.lang.String className)
Returns the appropriate URL "root" for an external class name.
|
java.lang.String |
getDisplayName()
Returns user displayable name for this option provider.
|
Options |
getGlobalOptions()
Returns the global options (the class independent definition)
|
Options |
getOptionsFor(ClassDoc cd)
Returns the options for the specified class.
|
boolean |
matchesCollPackageExpression(java.lang.String s)
Check if the supplied string matches an entity specified
with the -hide parameter.
|
boolean |
matchesHideExpression(java.lang.String s)
Check if the supplied string matches an entity specified
with the -hide parameter.
|
static int |
optionLength(java.lang.String option)
Return the number of arguments associated with the specified option.
|
void |
overrideForClass(Options opt,
ClassDoc cd)
Gets a base Options and applies the overrides for the specified class
|
void |
setAll()
Most complete output
|
void |
setOptions(ClassDoc p)
Set the options based on the tag elements of the ClassDoc parameter
|
void |
setOptions(java.lang.String[][] options)
Set the options based on the command line parameters
|
java.lang.String |
toString() |
protected static final java.lang.String DEFAULT_EXTERNAL_APIDOC
public java.lang.String outputFileName
public java.lang.String outputDirectory
public java.lang.Object clone()
clone in class java.lang.Objectpublic void setAll()
public static int optionLength(java.lang.String option)
public java.lang.String getApiDocRoot(java.lang.String className)
apiDocMap; if a match is found, the associated URL
will be returned.
NOTE: The match order of the match attempts is the one specified by the
constructor of the api doc root, so it depends on the order of "-link" and "-apiDocMap"
parameters.public void setOptions(java.lang.String[][] options)
public void setOptions(ClassDoc p)
public boolean matchesHideExpression(java.lang.String s)
public boolean matchesCollPackageExpression(java.lang.String s)
public Options getOptionsFor(ClassDoc cd)
OptionProvidergetOptionsFor in interface OptionProviderpublic Options getGlobalOptions()
OptionProvidergetGlobalOptions in interface OptionProviderpublic void overrideForClass(Options opt, ClassDoc cd)
OptionProvideroverrideForClass in interface OptionProviderpublic java.lang.String getDisplayName()
OptionProviderWill be used to provide progress feedback on the console
getDisplayName in interface OptionProviderpublic java.lang.String toString()
toString in class java.lang.Object