expression.appendPart(new ExpressionCollection(attrib, fieldClassName, fieldGenericType, fieldParametricType));
} else {
expression.appendPart(new ExpressionField(attrib, fieldClassName, fieldGenericType));
}
} else if (METHOD_VALUE_PREFIX.equals(prefix)) {
MethodInfo mi = getCompletionEngine().getMethodinfo(prevFactName, attrib);
if (SuggestionCompletionEngine.TYPE_COLLECTION.equals(mi.getGenericType())) {
expression.appendPart(new ExpressionCollection(attrib, mi.getReturnClassType(), mi.getGenericType(), mi.getParametricReturnType()));
} else {
expression.appendPart(new ExpressionMethod(mi.getName(), mi.getReturnClassType(), mi.getGenericType()));
}
}
}
Widget w = getWidgetForCurrentType();