Package rocket.generator.rebind.methodparameter

Examples of rocket.generator.rebind.methodparameter.MethodParameter


    jsni.append(this.getName());
    jsni.append('(');

    final Iterator<MethodParameter> parameters = this.getParameters().iterator();
    while (parameters.hasNext()) {
      final MethodParameter parameter = parameters.next();
      jsni.append(parameter.getJsniNotation());
    }

    jsni.append(')');

    return jsni.toString();
View Full Code Here


    method.setName(this.getName());
    method.setNative(false);

    final Iterator<MethodParameter> parameters = this.getParameters().iterator();
    while (parameters.hasNext()) {
      final MethodParameter parameter = parameters.next();
      method.addParameter(parameter.copy());
    }

    method.setReturnType(this.getReturnType());
    method.setStatic(this.isStatic());
View Full Code Here

      same = true;
      final Iterator<MethodParameter> parametersIterator = parameters.iterator();
      final Iterator<MethodParameter> otherParametersIterator = otherParameters.iterator();

      while (parametersIterator.hasNext()) {
        final MethodParameter parameter = parametersIterator.next();
        final MethodParameter otherParameter = otherParametersIterator.next();

        if (parameter.getType().equals(otherParameter.getType())) {
          same = false;
          break;
        }
      }
View Full Code Here

        final String methodName = AbstractMethod.this.getName();
        final List<Type> parameterTypes = new ArrayList<Type>();
        final Iterator<MethodParameter> methodParameters = AbstractMethod.this.getParameters().iterator();
        while (methodParameters.hasNext()) {
          final MethodParameter methodParameter = methodParameters.next();
          parameterTypes.add(methodParameter.getType());
        }

        Method method = type.findMethod(methodName, parameterTypes);
        if (null == method) {
          break;
View Full Code Here

      final Iterator<MethodParameter> methodParametersIterator = methodParameters.iterator();
      final Iterator<Type> parameterTypesIterator = parameterTypes.iterator();

      while (parameterTypesIterator.hasNext()) {
        final Type type = parameterTypesIterator.next();
        final MethodParameter parameter = methodParametersIterator.next();
        if (false == type.equals(parameter.getType())) {
          found = null;
          break;
        }
      }
View Full Code Here

          }

          final Iterator<MethodParameter> parametersIterator = methodParameters.iterator();
          final Iterator<MethodParameter> otherParametersIterator = otherMethodParameters.iterator();
          while (parametersIterator.hasNext()) {
            final MethodParameter parameter = parametersIterator.next();
            final MethodParameter otherParameter = otherParametersIterator.next();
            value = parameter.getType().getName().compareTo(otherParameter.getType().getName());
            if (value != 0) {
              break;
            }
          }
View Full Code Here

  public void start(final Method method) {
    Checker.notNull("parameter:method", method);

    final Iterator<MethodParameter> parameters = method.getParameters().iterator();
    while (parameters.hasNext()) {
      final MethodParameter parameter = (MethodParameter) parameters.next();
      if (this.visit(parameter)) {
        break;
      }
    }
  }
View Full Code Here

      final Iterator<MethodParameter> parameters = arguments.iterator();
      final Iterator<MethodParameter> otherParameters = otherArguments.iterator();
      final Comparator<Type> typeComparator = TypeComparator.INSTANCE;

      while (parameters.hasNext()) {
        final MethodParameter parameter = parameters.next();
        final MethodParameter otherParameter = otherParameters.next();

        value = typeComparator.compare(parameter.getType(), otherParameter.getType());

        if (0 != value) {
          break;
        }
      }
View Full Code Here

    final NewNestedInterfaceType serializationFactoryComposer = client.newNestedInterfaceType();

    final List<Type> parameterTypes = new ArrayList<Type>();
    final Iterator<MethodParameter> methodParameters = method.getParameters().iterator();
    while (methodParameters.hasNext()) {
      final MethodParameter parameter = methodParameters.next();
      parameterTypes.add(parameter.getType());
    }

    final Method serviceMethod = serviceInterface.findMethod(method.getName(), parameterTypes);
    final List<Method> serviceMethods = new ArrayList<Method>();
    serviceMethods.addAll(serviceInterface.getMethods());
View Full Code Here

    context.debug("Parameters");

    // first process parameters...
    final Iterator parameters = method.getParameters().iterator();
    while (parameters.hasNext()) {
      final MethodParameter parameter = (MethodParameter) parameters.next();
      final Type parameterType = parameter.getType();

      context.debug(parameterType.getName());

      // skip primitive types...
      if (parameterType.isPrimitive()) {
View Full Code Here

TOP

Related Classes of rocket.generator.rebind.methodparameter.MethodParameter

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.