Examples of JsniMethodRef


Examples of com.google.gwt.dev.jjs.ast.js.JsniMethodRef

        }
        if (valuesMethod == null) {
          throw new InternalCompilerException(
              "Could not find enum values() method");
        }
        JsniMethodRef jsniMethodRef = new JsniMethodRef(info, null,
            valuesMethod, program.getJavaScriptObject());
        call.addArg(jsniMethodRef);
      } else if (isEnumOrSubclass) {
        // A subclass of an enum class
        call.addArg(program.getLiteralNull());
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.js.JsniMethodRef

        if (ctx.isLvalue()) {
          JsniCollector.reportJsniError(info, methodDecl,
              "Cannot reassign the Java method " + method.getName());
        }

        JsniMethodRef methodRef = new JsniMethodRef(info, nameRef.getIdent(),
            method, program.getJavaScriptObject());
        nativeMethodBody.addJsniRef(methodRef);
      }
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.js.JsniMethodRef

        if (ctx.isLvalue()) {
          reportJsniError(info, methodDecl, "Cannot reassign the Java method "
              + method.getName());
        }

        JsniMethodRef methodRef = new JsniMethodRef(info, nameRef.getIdent(),
            method, program.getJavaScriptObject());
        nativeMethodBody.addJsniRef(methodRef);
      }
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.js.JsniMethodRef

      // Redirect JSNI refs to uninstantiable types to the null method.
      if (isPruned(x.getTarget())) {
        String ident = x.getIdent();
        JMethod nullMethod = program.getNullMethod();
        program.jsniMap.put(ident, nullMethod);
        JsniMethodRef nullMethodRef = new JsniMethodRef(x.getSourceInfo(),
            ident, nullMethod, program.getJavaScriptObject());
        ctx.replaceMe(nullMethodRef);
      }
    }
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.js.JsniMethodRef

          JsniFieldRef fieldRef = new JsniFieldRef(program, info, field,
              currentClass);
          nativeMethod.jsniFieldRefs.add(fieldRef);
        } else {
          JMethod method = (JMethod) node;
          JsniMethodRef methodRef = new JsniMethodRef(program, info, method);
          nativeMethod.jsniMethodRefs.add(methodRef);
        }
      }
    }
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.js.JsniMethodRef

        }
        if (valuesMethod == null) {
          throw new InternalCompilerException(
              "Could not find enum values() method");
        }
        JsniMethodRef jsniMethodRef = new JsniMethodRef(program, info, null,
            valuesMethod);
        call.getArgs().add(jsniMethodRef);
      }
    } else {
      assert (type instanceof JArrayType || type instanceof JInterfaceType || type instanceof JPrimitiveType);
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.js.JsniMethodRef

        if (ctx.isLvalue()) {
          reportJsniError(info, methodDecl, "Cannot reassign the Java method "
              + method.getName());
        }

        JsniMethodRef methodRef = new JsniMethodRef(program, info,
            nameRef.getIdent(), method);
        nativeMethodBody.jsniMethodRefs.add(methodRef);
      }
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.js.JsniMethodRef

      // Redirect JSNI refs to uninstantiable types to the null method.
      if (isUninstantiable(x.getTarget())) {
        String ident = x.getIdent();
        JMethod nullMethod = program.getNullMethod();
        program.jsniMap.put(ident, nullMethod);
        JsniMethodRef nullMethodRef = new JsniMethodRef(program,
            x.getSourceInfo(), ident, nullMethod);
        ctx.replaceMe(nullMethodRef);
      }
    }
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.js.JsniMethodRef

        }
        if (valuesMethod == null) {
          throw new InternalCompilerException(
              "Could not find enum values() method");
        }
        JsniMethodRef jsniMethodRef = new JsniMethodRef(info, null,
            valuesMethod, program.getJavaScriptObject());
        call.addArg(jsniMethodRef);
      } else if (isEnumOrSubclass) {
        // A subclass of an enum class
        call.addArg(program.getLiteralNull());
View Full Code Here

Examples of com.google.gwt.dev.jjs.ast.js.JsniMethodRef

      // Redirect JSNI refs to uninstantiable types to the null method.
      if (isPruned(x.getTarget())) {
        String ident = x.getIdent();
        JMethod nullMethod = program.getNullMethod();
        program.jsniMap.put(ident, nullMethod);
        JsniMethodRef nullMethodRef = new JsniMethodRef(program,
            x.getSourceInfo(), ident, nullMethod);
        ctx.replaceMe(nullMethodRef);
      }
    }
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.