protected String paramsToString(String result, ClassSerializer serializer, boolean typed) { int i = 0; for (MutableTypeValue value: getValue()) { if (i > 0) { result += ", "; } result += value.toString(serializer, typed); i++; } result += "}"; return result; } }
if (value.getValue() instanceof MutableType) { return types; if (value.getValue() instanceof Class<?> ) { types.add(processingEnv.getTypeUtils().toMutableType((Class<?>)value.getValue())); return types; List<Method> methods = getGetterMethods(Arrays.asList(value.getValue().getClass().getDeclaredMethods())); MutableTypeValue typeValue = processingEnv.getTypeUtils().getTypeValue(method.invoke(value.getValue())); if (typeValue instanceof MutableArrayTypeValue) { types.add((MutableDeclaredType) ((MutableArrayTypeValue) typeValue).asType().getComponentType());
result += processingEnv.getTypeUtils().getTypeValue(method.invoke(value)).toString(serializer, typed); i++; } catch (Exception e) {}
@Override public String toString(ClassSerializer serializer, boolean typed) { if (executableReference == null) { return "null"; } String result = executableReference.getSimpleName() + "("; int i = 0; for (MutableReferenceType reference: references) { if (i > 0) { result += ", "; } if (reference.isInline()) { //TODO have to use canonical serializer because i can't add import here - try to pass also fpw here somehow, or import collector result += reference.getReference().toString(ClassSerializer.CANONICAL, typed); } else { result += reference.toString(serializer, typed); } i++; } result += ")"; return result; }
String res = ((MutableTypeValue) o).toString(evalSerializer, typed); length += res.length(); super.write(res);