/** * Returns a string which includes the declaring class's name and the field * type and field name, as well as all declared annotations for that field. * Do not rely on the format of this string remaining consistent across * releases of Errai. */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(MetaField.class.getName()).append(":"); sb.append(getDeclaringClassName()).append("."); Annotation[] annos = getAnnotations(); if (annos != null) { for (Annotation anno : annos) { sb.append(anno.toString()).append(" "); } } sb.append(GenUtil.scopeOf(this).getCanonicalName()).append(" ") .append(GenUtil.modifiersOf(this).toJavaString()).append(" ") .append(this.getType()).append(" ").append(getName()); return sb.toString(); }
/** * Returns a string which includes the declaring class's name and the field * type and field name, as well as all declared annotations for that field. * Do not rely on the format of this string remaining consistent across * releases of Errai. */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(MetaField.class.getName()).append(":"); sb.append(getDeclaringClassName()).append("."); Annotation[] annos = getAnnotations(); if (annos != null) { for (Annotation anno : annos) { sb.append(anno.toString()).append(" "); } } sb.append(GenUtil.scopeOf(this).getCanonicalName()).append(" ") .append(GenUtil.modifiersOf(this).toJavaString()).append(" ") .append(this.getType()).append(" ").append(getName()); return sb.toString(); }
final String fieldDepVarName = field.getDeclaringClassName().replace('.', '_').replace('$', '_') + "_" + field.getName();