Package rocket.generator.rebind

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


    newMethod.setStatic(false);
    newMethod.setVisibility(Visibility.PUBLIC);

    context.debug(newMethod.toString());
    context.unbranch();

    return serviceInterface;
  }

  /**
 
View Full Code Here


    callback.setFinal(true);
    callback.setName(Constants.ASYNC_CALLBACK_PARAMETER_NAME);
    callback.setType(this.getAsyncCallback());

    context.debug(newMethod.toString());
    context.unbranch();
  }

  /**
   * Retrieves the incoming payload type from the annotation appearing on the
   * given comet client.
View Full Code Here

    if (payloadType == null) {
      this.throwUnableToFindPayloadType(typeName);
    }

    context.debug(payloadType.toString());
    context.unbranch();

    return payloadType;
  }

  protected void throwUnableToFindCometPayloadTypeAnnotation(final Type type) {
View Full Code Here

    this.verifyAsyncServiceInterface(serviceInterface);

    final NewConcreteType client = this.createRpcServiceClient(newTypeName, serviceInterface, this.getJavaRpcServiceClient());
    this.implementPublicMethods(serviceInterface, client);

    context.unbranch();
    return client;
  }

  /**
   * Adds a method to the jsonServiceClient that prepares an invoker etc.
View Full Code Here

    final Type serializationFactoryComposer = this.createSerializationFactoryComposer(method, client, serviceInterface);
    body.setSerializationFactoryComposer(serializationFactoryComposer);

    context.debug("Completed.");
    context.unbranch();
  }

  /**
   * This method creates a new nested type that will be fed and realised to be
   * a real SerializationFactory.
View Full Code Here

      this.throwUnsupportedWidgetType(method);
      break;
    }
    newMethod.setBody(body);

    context.unbranch();
  }

  protected Type getTextBox() {
    return this.getGeneratorContext().getType(Constants.TEXTBOX);
  }
View Full Code Here

        context.debug(mapValueType + " (Map Value)");
        continue;
      }
    }

    context.unbranch();
    context.branch();
    context.debug("Return type");

    // process return type...
    final Type returnType = method.getReturnType();
View Full Code Here

          break;
        }
      }
    }

    context.unbranch();
    context.branch();
    context.debug("Thrown types");

    // iterate over thrown types...
    final Iterator thrownTypes = method.getThrownTypes().iterator();
View Full Code Here

      context.debug(type.getName());

      readableTypes.add(type);
    }

    context.unbranch();
    context.unbranch();
  }

  protected Type getTypeFromAnnotation(final Iterator metaDataValues, final ClassComponent classComponent) {
    Checker.notNull("parameter:metaDataValues", metaDataValues);
View Full Code Here

      readableTypes.add(type);
    }

    context.unbranch();
    context.unbranch();
  }

  protected Type getTypeFromAnnotation(final Iterator metaDataValues, final ClassComponent classComponent) {
    Checker.notNull("parameter:metaDataValues", metaDataValues);
    Checker.notNull("parameter:parameter", classComponent);
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.