Package com.google.gwt.query.client.builders

Examples of com.google.gwt.query.client.builders.Name


          if(jsonBuilderType.findMethod(method.getName(), method.getParameterTypes()) != null ||
              settingsType.findMethod(method.getName(), method.getParameterTypes()) != null ) {
            continue;
          }

          Name nameAnnotation = method.getAnnotation(Name.class);
          String name = nameAnnotation != null
            ? nameAnnotation.value()
            : methName.replaceFirst("^(get|set)", "");
          if (nameAnnotation == null) {
            name = name.substring(0, 1).toLowerCase() + name.substring(1);
          }
          attrs.add(name);
View Full Code Here


    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
      String mname = method.getName();
      Class<?>[] classes = method.getParameterTypes();
      int largs = classes.length;

      Name name = method.getAnnotation(Name.class);
      String attr = name != null ? name.value() : deCapitalize(mname.replaceFirst("^[gs]et", ""));

      if ("getFieldNames".equals(mname)) {
        return JSONObject.getNames(jsonObject);
      } else if ("as".equals(mname)) {
        Class<? extends JsonBuilder> clz = (Class<? extends JsonBuilder>)args[0];
View Full Code Here

    return (c != null && c.isAssignableTo(o));
  }

  public void generateMethod(SourceWriter sw, JMethod method, TreeLogger logger)
      throws UnableToCompleteException {
    Name nameAnnotation = method.getAnnotation(Name.class);
    String name = nameAnnotation != null ? nameAnnotation.value()
        : method.getName().replaceFirst("^(get|set)", "");

    if (nameAnnotation == null) {
      name = name.substring(0, 1).toLowerCase() + name.substring(1);
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.query.client.builders.Name

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.