Examples of findField()


Examples of com.google.gwt.core.ext.typeinfo.JClassType.findField()

  static JField findPeer(TypeOracle oracle, JType type) {
    JClassType asClass = type.isClassOrInterface();

    while (asClass != null) {
      JField f = asClass.findField(JSWrapperGenerator.OBJ);
      if (f != null
          && isAssignable(oracle, f.getType().isClassOrInterface(),
              JavaScriptObject.class)) {
        return f;
      }
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JClassType.findField()

  static JField findExtractor(TypeOracle oracle, JType type) {
    JClassType asClass = type.isClassOrInterface();

    while (asClass != null) {
      JField f = asClass.findField(JSWrapperGenerator.EXTRACTOR);
      if (f != null
          && isAssignable(oracle, f.getType().isClassOrInterface(),
              Extractor.class)) {
        return f;
      }
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JClassType.findField()

    {
      JField field = null;
      JClassType superClass = clazz;
      while (field == null && superClass != null)
      {
        field = superClass.findField(fieldName);
        superClass = superClass.getSuperclass();
      }
      return field;
    }
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JClassType.findField()

    public static JField findField(JClassType type, String propertyName) {
        JField field = null;
        JClassType currentType = type;
        while (currentType != null) {
            field = currentType.findField(propertyName);
            if (field != null) {
                break;
            }
            currentType = currentType.getSuperclass();
        }
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JClassType.findField()

  static JField findPeer(TypeOracle oracle, JType type) {
    JClassType asClass = type.isClassOrInterface();

    while (asClass != null) {
      JField f = asClass.findField(JSWrapperGenerator.OBJ);
      if (f != null
          && isAssignable(oracle, f.getType().isClassOrInterface(),
              JavaScriptObject.class)) {
        return f;
      }
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JClassType.findField()

  static JField findExtractor(TypeOracle oracle, JType type) {
    JClassType asClass = type.isClassOrInterface();

    while (asClass != null) {
      JField f = asClass.findField(JSWrapperGenerator.EXTRACTOR);
      if (f != null
          && isAssignable(oracle, f.getType().isClassOrInterface(),
              Extractor.class)) {
        return f;
      }
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JClassType.findField()

  private boolean isPropertyConstrained(PropertyDescriptor p, boolean useField) {
    // cascaded counts as constrained
    // we must know if the @Valid annotation is on a field or a getter
    JClassType jClass = beanHelper.getJClass();
    if (useField &&
        jClass.findField(p.getPropertyName()).isAnnotationPresent(Valid.class)) {
      return true;
    } else if (!useField &&
        jClass.findMethod(asGetter(p),NO_ARGS).isAnnotationPresent(Valid.class)) {
      return true;
    }
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JClassType.findField()

        return new MetaField.ArrayLengthMetaField(this);
      }
      return null;
    }

    JField field = type.findField(name);
    while ((field == null || (field != null && !field.isPublic())) &&
        (type = type.getSuperclass()) != null && !type.getQualifiedSourceName().equals("java.lang.Object")) {
      field = type.findField(name);

      for (final JClassType interfaceType : type.getImplementedInterfaces()) {
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JClassType.findField()

    }

    JField field = type.findField(name);
    while ((field == null || (field != null && !field.isPublic())) &&
        (type = type.getSuperclass()) != null && !type.getQualifiedSourceName().equals("java.lang.Object")) {
      field = type.findField(name);

      for (final JClassType interfaceType : type.getImplementedInterfaces()) {
        field = interfaceType.findField(name);
      }
    }
View Full Code Here

Examples of com.google.gwt.core.ext.typeinfo.JClassType.findField()

        return new MetaField.ArrayLengthMetaField(this);
      }
      return null;
    }

    JField field = type.findField(name);

    if (field == null) {
      return null;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.