Package rocket.generator.rebind

Examples of rocket.generator.rebind.GeneratorContext.debug()


      fieldCount++;
    }

    context.unbranch();
    context.debug("Overridden " + newMethod);
  }

  /**
   * Creates a private method that uses jsni to retrieve the value of a field.
   * Each and every serializable field will have a typed getter to retrieve
View Full Code Here


    if (fieldType.equals(context.getLong())) {
      method.addMetaData("com.google.gwt.core.client.UnsafeNativeLong", "");
    }

    context.debug(field.getName());

    return method;
  }

  /**
 
View Full Code Here

    final Type requiredServiceInterface = this.getRequiredInterface();
    if (false == serviceInterface.isAssignableTo(requiredServiceInterface)) {
      this.throwDoesntImplementRemoteJsonService(serviceInterface);
    }

    context.debug(serviceInterface.toString());
  }

  protected void throwServiceInterfaceIsNotAnInterface(final Type type) {
    this.throwException("The type: " + type + " is not an interface.");
  }
View Full Code Here

      if (false == asyncServiceInterface.isInterface()) {
        this.throwAsyncTypeIsNotAnInterface(asyncServiceInterface);
      }

      context.debug(asyncServiceInterface.toString());

    } catch (final TypeNotFoundException notFound) {
      this.throwUnableToFindAsyncType(serviceInterface);
    }
View Full Code Here

      this.throwMatchingAsyncInterfaceMethodNotFoundException(method);
    }
    if (false == asyncMethod.returnsVoid()) {
      this.throwIncompatibleMethodFound(asyncMethod);
    }
    context.debug("Found matching async interface method: " + asyncMethod);

    // create the method on client...
    final NewMethod newMethod = asyncMethod.copy(client);
    newMethod.setAbstract(false);
    newMethod.setFinal(true);
View Full Code Here

    // the last parameter must be called "callback"
    final List parameters = newMethod.getParameters();
    final NewMethodParameter callback = (NewMethodParameter) parameters.get(parameters.size() - 1);
    callback.setName(Constants.CALLBACK_PARAMETER);

    context.debug("Finishing renaming parameters, parameters: " + parameters);

    return newMethod;
  }

  protected void throwMatchingAsyncInterfaceMethodNotFoundException(final Method method) {
View Full Code Here

    Checker.notNull("parameter:cometClient", cometClient);

    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.info(newTypeName);
    context.debug("extends " + cometClient.getName());
    context.debug("final");

    final NewConcreteType subClass = context.newConcreteType(newTypeName);
    subClass.setAbstract(false);
    subClass.setFinal(true);
View Full Code Here

    final GeneratorContext context = this.getGeneratorContext();
    context.branch();
    context.info(newTypeName);
    context.debug("extends " + cometClient.getName());
    context.debug("final");

    final NewConcreteType subClass = context.newConcreteType(newTypeName);
    subClass.setAbstract(false);
    subClass.setFinal(true);
    subClass.setSuperType(cometClient);
View Full Code Here

    while (iterator.hasNext()) {
      final Alias alias = iterator.next();
      final String name = alias.getName();
      final String bean = alias.getBean();

      context.debug(name + "=" + bean);

      this.checkAlias(alias);

      this.addAlias(alias);
    }
View Full Code Here

    final GeneratorContext context = this.getGeneratorContext();

    rpc.setSingleton(true);
    rpc.setEagerLoaded(false);

    context.debug("singleton");
    context.debug("lazy load");

    final String interfaceName = rpc.getServiceInterface();
    final String id = rpc.getId();
    final Type beanType = this.getInterfaceType(id, interfaceName + Constants.ASYNC_SUFFIX);
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.