Examples of memberName()


Examples of com.google.gwt.dev.util.JsniRef.memberName()

      assert parts.length == 5 : "Expected 5, have " + parts.length;

      JsniRef ref = JsniRef.parse(parts[0].substring(0,
          parts[0].lastIndexOf(')') + 1));
      toReturn = new Object[]{
          ref.className(), ref.memberName(), stw.fileName, stw.lineNumber};

    } else {
      // Use the raw data from the client
      toReturn = new Object[]{
          stw.className, stw.methodName, stw.fileName, stw.lineNumber};
View Full Code Here

Examples of com.google.gwt.dev.util.JsniRef.memberName()

              GWTProblem.recordInCud(rescue, cud, badMethodSignature(method),
                  null);
              continue;
            }

            if (jsni.memberName().equals(
                String.valueOf(ref.compoundName[ref.compoundName.length - 1]))) {
              // Constructor
            } else {
              MethodBinding[] methodBindings = ref.getMethods(jsni.memberName().toCharArray());
              if (methodBindings == null || methodBindings.length == 0) {
View Full Code Here

Examples of com.google.gwt.dev.util.JsniRef.memberName()

            if (jsni.memberName().equals(
                String.valueOf(ref.compoundName[ref.compoundName.length - 1]))) {
              // Constructor
            } else {
              MethodBinding[] methodBindings = ref.getMethods(jsni.memberName().toCharArray());
              if (methodBindings == null || methodBindings.length == 0) {
                GWTProblem.recordInCud(rescue, cud, noMethod(className,
                    jsni.memberName()), null);
                continue;
              }
View Full Code Here

Examples of com.google.gwt.dev.util.JsniRef.memberName()

              // Constructor
            } else {
              MethodBinding[] methodBindings = ref.getMethods(jsni.memberName().toCharArray());
              if (methodBindings == null || methodBindings.length == 0) {
                GWTProblem.recordInCud(rescue, cud, noMethod(className,
                    jsni.memberName()), null);
                continue;
              }
            }
          }
View Full Code Here

Examples of com.google.gwt.dev.util.JsniRef.memberName()

              GWTProblem.recordError(rescue, cud, badMethodSignature(method),
                  null);
              continue;
            }

            if (jsni.memberName().equals(
                String.valueOf(ref.compoundName[ref.compoundName.length - 1]))) {
              // Constructor
            } else {
              MethodBinding[] methodBindings = ref.getMethods(jsni.memberName().toCharArray());
              if (methodBindings == null || methodBindings.length == 0) {
View Full Code Here

Examples of com.google.gwt.dev.util.JsniRef.memberName()

            if (jsni.memberName().equals(
                String.valueOf(ref.compoundName[ref.compoundName.length - 1]))) {
              // Constructor
            } else {
              MethodBinding[] methodBindings = ref.getMethods(jsni.memberName().toCharArray());
              if (methodBindings == null || methodBindings.length == 0) {
                GWTProblem.recordError(rescue, cud, noMethod(className,
                    jsni.memberName()), null);
                continue;
              }
View Full Code Here

Examples of com.google.gwt.dev.util.JsniRef.memberName()

              // Constructor
            } else {
              MethodBinding[] methodBindings = ref.getMethods(jsni.memberName().toCharArray());
              if (methodBindings == null || methodBindings.length == 0) {
                GWTProblem.recordError(rescue, cud, noMethod(className,
                    jsni.memberName()), null);
                continue;
              }
            }
          }
View Full Code Here

Examples of com.google.gwt.dev.util.JsniRef.memberName()

          }
        }

        if (!parsed.isMethod()) {
          // look for a field
          String fieldName = parsed.memberName();
          if (type == null) {
            if (fieldName.equals("nullField")) {
              return program.getNullField();
            }
          } else {
View Full Code Here

Examples of com.google.gwt.dev.util.JsniRef.memberName()

                  + "' in type '" + className + "'");
          return null;
        } else {
          // look for a method
          TreeSet<String> almostMatches = new TreeSet<String>();
          String methodName = parsed.memberName();
          String jsniSig = parsed.memberSignature();
          if (type == null) {
            if (jsniSig.equals("nullMethod()")) {
              return program.getNullMethod();
            }
View Full Code Here

Examples of com.google.gwt.dev.util.JsniRef.memberName()

        // check for 'name.@XXX' and skip it
        if (code.charAt(atIndex - 1) != '.') {
          // do additional check using Jsni.parse() method
          JsniRef parsedSignature = JsniRef.parse(memberSignature);
          if (parsedSignature != null && parsedSignature.isField()) {
            String fieldName = parsedSignature.memberName();
            int referenceIndex = fieldName.indexOf('.');
            if (referenceIndex != -1) {
              fieldName = fieldName.substring(0, referenceIndex);
            }
            fieldRefs.add("@" + parsedSignature.className() + "::" + fieldName);
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.