List of usage examples for com.google.gwt.core.ext.typeinfo HasMetaData getMetaDataTags
@Deprecated String[] getMetaDataTags();
From source file:com.gwtent.gen.reflection.GeneratorHelper.java
License:Apache License
/** * generator metaData/* w ww . j a v a2 s . c o m*/ * @param dest field or method or class * @param source source to print code * @param metaData */ public static void addMetaDatas(String dest, SourceWriter source, com.google.gwt.core.ext.typeinfo.HasMetaData metaData) { String[] tags = metaData.getMetaDataTags(); for (int j = 0; j < tags.length; j++) { String[][] metas = metaData.getMetaData(tags[j]); for (int k = 0; k < metas.length; k++) { source.println(dest + ".addMetaData(\"" + tags[j] + "\", " + GeneratorHelper.stringArrayToCode(metas[k]) + ");"); } } }