public static String translateFieldName(List<VariableDeclarator> variables) {

    for (VariableDeclarator var : variables) {
      return var.getId().toString();
    }

    return "";
  }
예제 #2
0
 public void visit(VariableDeclarator n, Object arg) {
   n.getId().accept(this, arg);
   if (n.getInit() != null) {
     n.getInit().accept(this, arg);
   }
 }