} catch (NoSuchMethodException e) { }
}
final Method m = method;
GetlineCompleter completer =
new CollectionCompleter(this.shell,
getMethodOpNames(m));
String partial = completer.complete(op);
String result = attrClass + "." + attr + "." + partial;
if (partial.length() == 2) {
result += "=";
}
return result;
}
if (isSigarClass) {
final ArrayList possible = new ArrayList();
Method[] submethods = subtype.getDeclaredMethods();
for (int i=0; i<submethods.length; i++) {
Method m = submethods[i];
if (m.getName().startsWith("get")) {
possible.add(m.getName().substring(3));
}
}
GetlineCompleter completer =
new CollectionCompleter(this.shell, possible);
String partial = completer.complete(attr);
String result = attrClass + "." + partial;
if (possible.contains(partial)) {
result += ".";
}
return result;