public void transform(Object object) { getContext().writeQuoted(object.toString()); } }
@Override public void transform(Object o) { getContext().writeQuoted(o.toString()); } };
public void transform(Object object) { Method method= (Method) object; String result= method.getDeclaringClass().getName().replaceAll("_", ".") + "." + method.getName() + ":" + method.getParameterTypes().length; getContext().writeQuoted(result); } }
public void transform(Object object) { String name= ((Class) object).getName(); name= name.replaceAll("_", ".");//TODO mejorar!!! getContext().writeQuoted(name); }
public void transform(Object object) { getContext().writeQuoted(object.toString()); }
public void transform(Object value) { getContext().writeQuoted(simpleDateFormatter.format(value)); }
public void transform(Object object) { getContext().writeQuoted((String) object); }
public void transform(Object object) { getContext().writeQuoted(((Enum) object).name()); }
public void transform(Object object) { JSONContext context= getContext(); Path path= context.getPath(); String name= ((Class) object).getName(); name= name.replaceAll("_", ".");//TODO mejorar!!! TypeContext typeContext= context.writeOpenObject(); context.writeName("name"); context.writeQuoted(name); context.writeComma(); context.writeName("class"); context.writeQuoted("java.lang.Class"); context.writeCloseObject(); } }
public void writeName(String name) { if (prettyPrint) writeIndent(); if (name != null) writeQuoted(name); else write("null"); out.write(":"); if (prettyPrint) out.write(" "); }
context.writeQuoted(id); context.writeComma(); context.writeName("class");