Package com.google.common.reflect

Examples of com.google.common.reflect.Parameter


    }

    private boolean typesMatch(List<? extends VariableElement> lefts, ImmutableList<Parameter> rights) {
        for (int i = 0; i < lefts.size(); i++) {
            final VariableElement left = lefts.get(i);
            final Parameter right = rights.get(i);

            final boolean typesMatch = left.asType().toString().equals(right.getClass().getName());

            if (typesMatch) {
                continue;
            }
View Full Code Here


      Collection<Parameter> endpointParams = parametersWithAnnotation(invocation.getInvokable(), EndpointParam.class);
      if (endpointParams.isEmpty())
         return null;
      checkState(endpointParams.size() == 1, "invocation.getInvoked() %s has too many EndpointParam annotations",
            invocation.getInvokable());
      Parameter endpointParam = get(endpointParams, 0);
      Function<Object, URI> parser = injector.getInstance(endpointParam.getAnnotation(EndpointParam.class).parser());
      int position = endpointParam.hashCode();// guava issue 1243
      try {
         URI returnVal = parser.apply(invocation.getArgs().get(position));
         checkArgument(returnVal != null,
               format("endpoint for [%s] not configured for %s", position, invocation.getInvokable()));
         return returnVal;
View Full Code Here

    }

    private boolean typesMatch(List<? extends VariableElement> lefts, ImmutableList<Parameter> rights) {
        for (int i = 0; i < lefts.size(); i++) {
            final VariableElement left = lefts.get(i);
            final Parameter right = rights.get(i);

            final boolean typesMatch = left.asType().toString().equals(right.getClass().getName());

            if (typesMatch) {
                continue;
            }
View Full Code Here

    }

    private boolean typesMatch(List<? extends VariableElement> lefts, ImmutableList<Parameter> rights) {
        for (int i = 0; i < lefts.size(); i++) {
            final VariableElement left = lefts.get(i);
            final Parameter right = rights.get(i);

            final boolean typesMatch = left.asType().toString().equals(right.getClass().getName());

            if (typesMatch) {
                continue;
            }
View Full Code Here

    }

    private boolean typesMatch(List<? extends VariableElement> parameters, ImmutableList<Parameter> invokableParameters) {
        for (int i = 0; i < parameters.size(); i++) {
            final VariableElement left = parameters.get(i);
            final Parameter right = invokableParameters.get(i);

            final boolean typesMatch = left.asType().toString().equals(right.getClass().getName());

            if (typesMatch) {
                continue;
            }
View Full Code Here

    }

    private boolean typesMatch(List<? extends VariableElement> lefts, ImmutableList<Parameter> rights) {
        for (int i = 0; i < lefts.size(); i++) {
            final VariableElement left = lefts.get(i);
            final Parameter right = rights.get(i);

            final boolean typesMatch = left.asType().toString().equals(right.getClass().getName());

            if (typesMatch) {
                continue;
            }
View Full Code Here

      Collection<Parameter> endpointParams = parametersWithAnnotation(invocation.getInvokable(), EndpointParam.class);
      if (endpointParams.isEmpty())
         return null;
      checkState(endpointParams.size() == 1, "invocation.getInvoked() %s has too many EndpointParam annotations",
            invocation.getInvokable());
      Parameter endpointParam = get(endpointParams, 0);
      Function<Object, URI> parser = injector.getInstance(endpointParam.getAnnotation(EndpointParam.class).parser());
      int position = endpointParam.hashCode()// guava issue 1243
      try {
         URI returnVal = parser.apply(invocation.getArgs().get(position));
         checkArgument(returnVal != null,
               format("endpoint for [%s] not configured for %s", position, invocation.getInvokable()));
         return returnVal;
View Full Code Here

TOP

Related Classes of com.google.common.reflect.Parameter

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.