|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdk.rode.thesis.flyweight.Main
@Participant(value="Client") public class Main
Flyweight tests.
| Constructor Summary | |
|---|---|
Main()
No-arg constructor. |
|
| Method Summary | |
|---|---|
private static void |
indexOfIgnoreCase(Textual<?> textual,
CharSequence token,
Locale locale,
Log out)
Finds the indexes of token in textual and logs
them to log. |
static void |
main(String[] args)
Executes the Flyweight tests. |
private static Sentence |
parse(Log out,
CharacterFactory factory,
String string)
Parses the string supplied as string into a
sentence, which is printed and then returned. |
boolean |
test(Log out,
Arguments arguments)
Performs the specific tests and report the outcome to the log supplied as log. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Main()
| Method Detail |
|---|
private static final void indexOfIgnoreCase(Textual<?> textual,
CharSequence token,
Locale locale,
Log out)
token in textual and logs
them to log.
textual - The textual object; never null.token - The token to search for; never null.locale - The local to use; never null.out - The log to use.public static void main(String[] args)
args - The arguments to supply to test(Log, Arguments),
if any; can be null.
private static final Sentence parse(Log out,
CharacterFactory factory,
String string)
string into a
sentence, which is printed and then returned.
out - The log to use; never null.factory - The character factory to use; never null.string - The string to parse; never null.
Sentence object; never null.
public boolean test(Log out,
Arguments arguments)
log supplied as log. Arguments to control log-level:
-log: a boolean value (as a string) indicating if
class logging is enabled for relevant classes.
-log.verbose: a boolean value (as a string) indicating
if class logging is enabled for relevant classes that generates
verbose output.
Arguments to control log-level:
-log: a boolean value (as a string) indicating if
class logging is enabled for relevant classes.
-log.verbose: a boolean value (as a string) indicating
if class logging is enabled for relevant classes that generates
verbose output.
test in interface Testableout - The log to report the test outcome to; cannot be null.arguments - Additional arguments, if any.
|
Gunni Rode / rode.dk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||