Methods Summary |
---|
protected static void | helperParseArgs(java.lang.String[] args)__UNDOCUMENTED__
assert (args != null);
assert (!Arrays.asList(args)
.contains(null));
// --
List arglist = Arrays.asList(args);
Iterator iter = arglist.iterator();
for (String argument = null; iter.hasNext(); argument = (String)iter.next()) {
if (argument.startsWith("-D")) {
if (argument.length() < 3) {
int idx = arglist.indexOf(argument);
throw new IllegalArgumentException("Argument" + idx
+ " is not a legal property argument.");
}
int valueIdx = argument.indexOf('=");
System.setProperty(argument.substring(2, valueIdx),
argument.substring(valueIdx + 1));
assert (System.getProperty(argument.substring(2, valueIdx)).equals(argument
.substring(valueIdx
+ 1)));
}
}
|
protected static void | helperParseArgs2(java.lang.String[] args)__UNDOCUMENTED__
assert (args != null);
assert (!Arrays.asList(args)
.contains(null));
// --
List arglist = Arrays.asList(args);
Iterator iter = arglist.iterator();
for (String argument = null; iter.hasNext(); argument = (String)iter.next()) {
if (argument.startsWith("-D")) {
if (argument.length() < 3) {
int idx = arglist.indexOf(argument);
throw new IllegalArgumentException("Argument" + idx
+ " is not a legal property argument.");
}
int valueIdx = argument.indexOf('=");
String key = argument.substring(2, valueIdx);
String value = argument.substring(valueIdx + 1);
System.setProperty(key, value);
assert (System.getProperty(key).equals(value));
}
}
|
public static void | main(java.lang.String[] args)Main method.
helperParseArgs(args);
Iterator iter = System.getProperties()
.keySet()
.iterator();
for (String key = null; iter.hasNext(); key = (String)iter.next()) {
assert (key != null);
System.out.println(key + "=" + System.getProperty(key));
}
|
public void | mouseClicked(java.awt.event.MouseEvent event)__UNDOCUMENTED__
Object source = event.getSource();
assert (source != null);
// ... do code using source
|