public class DefaultProcessor extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
static String |
ARRAY_PREFIX
the array prefix.
|
protected boolean |
m_SkipDeprecated
whether to skip deprecated methods.
|
m_Cache, m_Handlers, m_Logger, m_Traverser| Constructor and Description |
|---|
DefaultProcessor() |
| Modifier and Type | Method and Description |
|---|---|
Object |
fromCommandline(String s)
Turns the commandline back into an object.
|
String[] |
getOptions(Object obj)
Returns the options from the object.
|
boolean |
getSkipDeprecated()
Returns whether deprecated methods are skipped.
|
static void |
main(String[] args)
Only for testing.
|
void |
setOptions(Object obj,
String[] options)
Sets the options for the object.
|
void |
setSkipDeprecated(boolean value)
Sets whether to skip deprecated methods.
|
String |
toCommandline(Object obj)
Turns the object into a commandline.
|
getHandler, getHandler, getLogger, getProcessors, getTraverser, initialize, setTraverserpublic static final String ARRAY_PREFIX
protected boolean m_SkipDeprecated
public void setSkipDeprecated(boolean value)
value - true if to skippublic boolean getSkipDeprecated()
public String toCommandline(Object obj) throws Exception
obj - the object to convertException - if failed to convertpublic Object fromCommandline(String s) throws Exception
s - the commandlineException - if failed to create objectpublic String[] getOptions(Object obj) throws Exception
obj - the object to get the options fromException - if failed to get optionspublic void setOptions(Object obj, String[] options) throws Exception
obj - the object to update the options foroptions - the options to setException - if failed to set optionsCopyright © 2017 University of Waikato, Hamilton, NZ. All Rights Reserved.