Tabnine Logo
HandlerMethod$HandlerMethodParameter
Code IndexAdd Tabnine to your IDE (free)

How to use
HandlerMethod$HandlerMethodParameter
in
org.springframework.web.method

Best Java code snippets using org.springframework.web.method.HandlerMethod$HandlerMethodParameter (Showing top 20 results out of 315)

origin: org.springframework/spring-webmvc

@Override
public Class<?> getParameterType() {
  if (this.returnValue != null) {
    return this.returnValue.getClass();
  }
  if (!ResolvableType.NONE.equals(this.returnType)) {
    return this.returnType.toClass();
  }
  return super.getParameterType();
}
origin: org.springframework/spring-web

private MethodParameter[] initMethodParameters() {
  int count = this.bridgedMethod.getParameterCount();
  MethodParameter[] result = new MethodParameter[count];
  for (int i = 0; i < count; i++) {
    HandlerMethodParameter parameter = new HandlerMethodParameter(i);
    GenericTypeResolver.resolveParameterType(parameter, this.beanType);
    result[i] = parameter;
  }
  return result;
}
origin: org.springframework/spring-web

anns = super.getParameterAnnotations();
for (Annotation[][] ifcAnns : getInterfaceParameterAnnotations()) {
  int index = getParameterIndex();
  if (index < ifcAnns.length) {
    Annotation[] paramAnns = ifcAnns[index];
          merged.add(adaptAnnotation(paramAnn));
origin: apache/servicemix-bundles

/**
 * A MethodParameter with HandlerMethod-specific behavior.
 */
protected class HandlerMethodParameter extends SynthesizingMethodParameter {
  public HandlerMethodParameter(int index) {
    super(HandlerMethod.this.bridgedMethod, index);
  }
  protected HandlerMethodParameter(HandlerMethodParameter original) {
    super(original);
  }
  @Override
  public Class<?> getContainingClass() {
    return HandlerMethod.this.getBeanType();
  }
  @Override
  public <T extends Annotation> T getMethodAnnotation(Class<T> annotationType) {
    return HandlerMethod.this.getMethodAnnotation(annotationType);
  }
  @Override
  public <T extends Annotation> boolean hasMethodAnnotation(Class<T> annotationType) {
    return HandlerMethod.this.hasMethodAnnotation(annotationType);
  }
  @Override
  public HandlerMethodParameter clone() {
    return new HandlerMethodParameter(this);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-web

@Override
public Annotation[] getParameterAnnotations() {
  Annotation[] anns = this.combinedAnnotations;
  if (anns == null) {
    anns = super.getParameterAnnotations();
    for (Annotation[][] ifcAnns : getInterfaceParameterAnnotations()) {
      Annotation[] paramAnns = ifcAnns[getParameterIndex()];
      if (paramAnns.length > 0) {
        List<Annotation> merged = new ArrayList<>(anns.length + paramAnns.length);
        merged.addAll(Arrays.asList(anns));
        for (Annotation paramAnn : paramAnns) {
          boolean existingType = false;
          for (Annotation ann : anns) {
            if (ann.annotationType() == paramAnn.annotationType()) {
              existingType = true;
              break;
            }
          }
          if (!existingType) {
            merged.add(adaptAnnotation(paramAnn));
          }
        }
        anns = merged.toArray(new Annotation[0]);
      }
    }
    this.combinedAnnotations = anns;
  }
  return anns;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-web

@Override
public Class<?> getParameterType() {
  return (this.returnValue != null ? this.returnValue.getClass() : super.getParameterType());
}
origin: apache/servicemix-bundles

public ConcurrentResultMethodParameter(ConcurrentResultMethodParameter original) {
  super(original);
  this.returnValue = original.returnValue;
  this.returnType = original.returnType;
}
origin: apache/servicemix-bundles

@Override
public Class<?> getParameterType() {
  if (this.returnValue != null) {
    return this.returnValue.getClass();
  }
  if (!ResolvableType.NONE.equals(this.returnType)) {
    return this.returnType.resolve(Object.class);
  }
  return super.getParameterType();
}
origin: apache/servicemix-bundles

@Override
public Class<?> getParameterType() {
  return (this.returnValue != null ? this.returnValue.getClass() : super.getParameterType());
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-web

private MethodParameter[] initMethodParameters() {
  int count = this.bridgedMethod.getParameterCount();
  MethodParameter[] result = new MethodParameter[count];
  for (int i = 0; i < count; i++) {
    HandlerMethodParameter parameter = new HandlerMethodParameter(i);
    GenericTypeResolver.resolveParameterType(parameter, this.beanType);
    result[i] = parameter;
  }
  return result;
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-web

/**
 * Return the HandlerMethod return type.
 */
public MethodParameter getReturnType() {
  return new HandlerMethodParameter(-1);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-web

  @Override
  public HandlerMethodParameter clone() {
    return new HandlerMethodParameter(this);
  }
}
origin: org.springframework/spring-webmvc

public ConcurrentResultMethodParameter(Object returnValue) {
  super(-1);
  this.returnValue = returnValue;
  this.returnType = (returnValue instanceof ReactiveTypeHandler.CollectedValuesList ?
      ((ReactiveTypeHandler.CollectedValuesList) returnValue).getReturnType() :
      ResolvableType.forType(super.getGenericParameterType()).getGeneric());
}
origin: org.springframework/spring-webmvc

@Override
public <T extends Annotation> boolean hasMethodAnnotation(Class<T> annotationType) {
  // Ensure @ResponseBody-style handling for values collected from a reactive type
  // even if actual return type is ResponseEntity<Flux<T>>
  return (super.hasMethodAnnotation(annotationType) ||
      (annotationType == ResponseBody.class &&
          this.returnValue instanceof ReactiveTypeHandler.CollectedValuesList));
}
origin: org.springframework/spring-web

@Override
public Class<?> getParameterType() {
  return (this.returnValue != null ? this.returnValue.getClass() : super.getParameterType());
}
origin: org.springframework/spring-web

  @Override
  public HandlerMethodParameter clone() {
    return new HandlerMethodParameter(this);
  }
}
origin: spring-projects/spring-framework

if (anns == null) {
  anns = super.getParameterAnnotations();
  int index = getParameterIndex();
  if (index >= 0) {
    for (Annotation[][] ifcAnns : getInterfaceParameterAnnotations()) {
              merged.add(adaptAnnotation(paramAnn));
origin: org.springframework/spring-web

/**
 * Return the HandlerMethod return type.
 */
public MethodParameter getReturnType() {
  return new HandlerMethodParameter(-1);
}
origin: spring-projects/spring-framework

@Override
public Class<?> getParameterType() {
  return (this.returnValue != null ? this.returnValue.getClass() : super.getParameterType());
}
origin: spring-projects/spring-framework

private MethodParameter[] initMethodParameters() {
  int count = this.bridgedMethod.getParameterCount();
  MethodParameter[] result = new MethodParameter[count];
  for (int i = 0; i < count; i++) {
    HandlerMethodParameter parameter = new HandlerMethodParameter(i);
    GenericTypeResolver.resolveParameterType(parameter, this.beanType);
    result[i] = parameter;
  }
  return result;
}
org.springframework.web.methodHandlerMethod$HandlerMethodParameter

Javadoc

A MethodParameter with HandlerMethod-specific behavior.

Most used methods

  • getParameterType
  • <init>
  • adaptAnnotation
  • getGenericParameterType
  • getParameterIndex
  • hasMethodAnnotation

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JList (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now