public abstract class Check extends Object implements OptionHandler, RevisionHandler
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_Debug
Debugging mode, gives extra output if true
|
protected boolean |
m_Silent
Silent mode, for no output at all to stdout
|
| Constructor and Description |
|---|
Check() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
doTests()
Begin the tests, reporting results to System.out
|
protected Object |
forName(String prefix,
Class cls,
String classname,
String[] options)
Tries to instantiate a new instance of the given class and checks whether
it is an instance of the specified class.
|
boolean |
getDebug()
Get whether debugging is turned on
|
String[] |
getOptions()
Gets the current settings of the CheckClassifier.
|
boolean |
getSilent()
Get whether silent mode is turned on
|
Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
protected void |
print(Object msg)
prints the given message to stdout, if not silent mode
|
protected void |
println()
prints a LF to stdout, if not silent mode
|
protected void |
println(Object msg)
prints the given message (+ LF) to stdout, if not silent mode
|
protected static void |
runCheck(Check check,
String[] options)
runs the CheckScheme with the given options
|
void |
setDebug(boolean debug)
Set debugging mode
|
void |
setOptions(String[] options)
Parses a given list of options.
|
void |
setSilent(boolean value)
Set slient mode, i.e., no output at all to stdout
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRevisionprotected boolean m_Debug
protected boolean m_Silent
public Enumeration listOptions()
listOptions in interface OptionHandlerpublic void setOptions(String[] options) throws Exception
setOptions in interface OptionHandleroptions - the list of options as an array of stringsException - if an option is not supportedpublic String[] getOptions()
getOptions in interface OptionHandlerprotected Object forName(String prefix, Class cls, String classname, String[] options) throws Exception
prefix - the classname prefix (without trailing dot)cls - the class to check whether the generated object is an
instance ofclassname - the classname to instantiateoptions - optional options for the objectException - if instantiation failspublic abstract void doTests()
public void setDebug(boolean debug)
debug - true if debug output should be printedpublic boolean getDebug()
public void setSilent(boolean value)
value - whether silent mode is active or notpublic boolean getSilent()
protected void print(Object msg)
msg - the text to print to stdoutprotected void println(Object msg)
msg - the message to println to stdoutprotected void println()
Copyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.