Package com.google.gwt.dev.shell.designtime

Examples of com.google.gwt.dev.shell.designtime.DispatchIdOracle


  private int getDispId(String member) {
    if (Character.isDigit(member.charAt(0))) {
      return Integer.valueOf(member);
    } else {
      DispatchIdOracle dispatchIdOracle = dispIdOracleRef.get();
      if (dispatchIdOracle == null) {
        throw new RuntimeException("Invalid dispatch oracle.");
      }
      try {
        return dispatchIdOracle.getDispId(member);
      } catch (Throwable e1) {
        ReflectionUtils.propagate(e1);
        return -1; // satisfy the compiler
      }
    }
View Full Code Here


      InstantiationException, InvocationTargetException {
    ClassLoader classLoader = classLoaderRef.get();
    if (classLoader == null) {
      throw new RuntimeException("Invalid class loader.");
    }
    DispatchIdOracle dispIdOracle = dispIdOracleRef.get();
    if (dispIdOracle == null) {
      throw new RuntimeException("Invalid dispatch oracle.");
    }
    try {
      // GWT 2: called static scope with dispId as parameter
View Full Code Here

      InstantiationException, InvocationTargetException {
    ClassLoader classLoader = classLoaderRef.get();
    if (classLoader == null) {
      throw new RuntimeException("Invalid class loader.");
    }
    DispatchIdOracle dispIdOracle = dispIdOracleRef.get();
    if (dispIdOracle == null) {
      throw new RuntimeException("Invalid dispatch oracle.");
    }
    switch (id) {
      case 0 :
View Full Code Here

  protected JsValue doInvoke(String name, Object jthis, Class<?>[] types, Object[] args)
      throws Throwable {
    Variant[] vArgs = null;
    try {
      ClassLoader isolatedClassLoader = getIsolatedClassLoader();
      DispatchIdOracle dispatchIdOracle = getDispatchIdOracle();
      // Build the argument list, including 'jthis'.
      //
      int len = args.length;
      vArgs = new Variant[len + 1];
      Class<?> jthisType = jthis == null ? Object.class : jthis.getClass();
View Full Code Here

    LowLevelWebKit.pushJsContext(jsContext);
    ClassLoader classLoader = classLoaderRef.get();
    if (classLoader == null) {
      return LowLevelWebKit.getJsUndefined(jsContext);
    }
    DispatchIdOracle dispIdOracle = dispIdOracleRef.get();
    if (dispIdOracle == null) {
      return LowLevelWebKit.getJsUndefined(jsContext);
    }
    try {
      int dispId = getDispId(name);
View Full Code Here

  private int getDispId(String member) {
    if (Character.isDigit(member.charAt(0))) {
      return Integer.valueOf(member);
    } else {
      DispatchIdOracle dispIdOracle = dispIdOracleRef.get();
      if (dispIdOracle == null) {
        throw new RuntimeException("Invalid dispatch oracle.");
      }
      return dispIdOracle.getDispId(member);
    }
  }
View Full Code Here

  public H invoke(H jsContext, H jsthisInt, List<H> jsargsInt, List<H> exception) {
    ClassLoader classLoader = classLoaderRef.get();
    if (classLoader == null) {
      throw new RuntimeException("Invalid class loader.");
    }
    DispatchIdOracle dispatchIdOracle = dispatchIdOracleRef.get();
    if (dispatchIdOracle == null) {
      throw new RuntimeException("Invalid dispatch oracle.");
    }
    LowLevelWebKit.pushJsContext(jsContext);
    JsValue jsthis = new JsValueWebKit<H>(jsthisInt);
View Full Code Here

   * @return the return value as a Object.
   */
  @Override
  protected JsValue doInvoke(String name, Object jthis, Class<?>[] types, Object[] args) throws Exception {
    ClassLoader isolatedClassLoader = getIsolatedClassLoader();
    DispatchIdOracle dispatchIdOracle = getDispatchIdOracle();
    JsValueWebKit<H> jsValueThis = new JsValueWebKit<H>();
    Class<?> jthisType = jthis == null ? Object.class : jthis.getClass();
    JsValueGlue.set(jsValueThis, isolatedClassLoader, dispatchIdOracle, jthisType, jthis);
    H jsthis = jsValueThis.getJsValue();
    int argc = args.length;
View Full Code Here

    ClassLoader classLoader = classLoaderRef.get();
    if (classLoader == null) {
        jsValue.setUndefined();
        return;
    }
    DispatchIdOracle dispIdOracle = dispIdOracleRef.get();
    if (dispIdOracle == null) {
        jsValue.setUndefined();
        return;
    }
    int dispId = getDispId(member);
View Full Code Here

  private int getDispId(String member) {
    if (Character.isDigit(member.charAt(0))) {
      return Integer.valueOf(member);
    } else {
      DispatchIdOracle dispIdOracle = dispIdOracleRef.get();
      if (dispIdOracle == null) {
        throw new RuntimeException("Invalid dispatch oracle.");
      }
      return dispIdOracle.getDispId(member);
    }
  }
View Full Code Here

TOP

Related Classes of com.google.gwt.dev.shell.designtime.DispatchIdOracle

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.