private boolean defaultBoolValue = false;
- private int argIndex = -1;
-
public String toLongString()
{
StringBuilder sb = new StringBuilder();
{
return defaultBoolValue;
}
-
- private void setArgIndex(int i)
- {
- this.argIndex = i;
- }
-
- protected int getArgIndex()
- {
- return this.argIndex;
- }
}
public static class ArgValues
ArgValues av = getArgValues(a);
return av == null ? false : av.getBoolean();
}
+
+ protected ArgValue getClosestPreviousArgValueOfArg(ArgValue thisAv,
+ Arg a)
+ {
+ ArgValue closestAv = null;
+ int thisArgIndex = thisAv.getArgIndex();
+ ArgValues compareAvs = this.getArgValues(a);
+ int closestPreviousIndex = -1;
+ for (ArgValue av : compareAvs.getArgValueList())
+ {
+ int argIndex = av.getArgIndex();
+ if (argIndex < thisArgIndex && argIndex > closestPreviousIndex)
+ {
+ closestPreviousIndex = argIndex;
+ closestAv = av;
+ }
+ }
+ return closestAv;
+ }
}
private static final Collection<String> bootstrapArgs = new ArrayList(