Package org.springframework.core

Examples of org.springframework.core.MethodParameter.increaseNestingLevel()


  }

  @Override
  protected AbstractDescriptor nested(Class<?> type, int typeIndex) {
    MethodParameter methodParameter = new MethodParameter(this.methodParameter);
    methodParameter.increaseNestingLevel();
    methodParameter.setTypeIndexForCurrentLevel(typeIndex);
    return new ParameterDescriptor(type, methodParameter);
  }

}
View Full Code Here


  }

  @Override
  protected AbstractDescriptor nested(Class<?> type, int typeIndex) {
    MethodParameter methodParameter = new MethodParameter(this.methodParameter);
    methodParameter.increaseNestingLevel();
    methodParameter.setTypeIndexForCurrentLevel(typeIndex);
    return new BeanPropertyDescriptor(type, this.property, methodParameter, this.annotations);
  }

View Full Code Here

  }

  @Override
  protected AbstractDescriptor nested(Class<?> type, int typeIndex) {
    MethodParameter methodParameter = new MethodParameter(this.methodParameter);
    methodParameter.increaseNestingLevel();
    methodParameter.setTypeIndexForCurrentLevel(typeIndex);
    return new ParameterDescriptor(type, methodParameter);
  }

}
View Full Code Here

  }

  @Override
  protected AbstractDescriptor nested(Class<?> type, int typeIndex) {
    MethodParameter methodParameter = new MethodParameter(this.methodParameter);
    methodParameter.increaseNestingLevel();
    methodParameter.setTypeIndexForCurrentLevel(typeIndex);     
    return new BeanPropertyDescriptor(type, this.property, methodParameter, this.annotations);
  }
 
View Full Code Here

    int i = 0;
    for (; it.hasNext(); i++) {
      Object element = it.next();
      String indexedPropertyName = buildIndexedPropertyName(propertyName, i);
      if (methodParam != null) {
        methodParam.increaseNestingLevel();
      }
      Object convertedElement =
          convertIfNecessary(indexedPropertyName, null, element, elementType, typeDescriptor);
      if (methodParam != null) {
        methodParam.decreaseNestingLevel();
View Full Code Here

      Map.Entry entry = (Map.Entry) it.next();
      Object key = entry.getKey();
      Object value = entry.getValue();
      String keyedPropertyName = buildKeyedPropertyName(propertyName, key);
      if (methodParam != null) {
        methodParam.increaseNestingLevel();
        methodParam.setTypeIndexForCurrentLevel(0);
      }
      Object convertedKey = convertIfNecessary(keyedPropertyName, null, key, keyType, typeDescriptor);
      if (methodParam != null) {
        methodParam.setTypeIndexForCurrentLevel(1);
View Full Code Here

    int i = 0;
    for (; it.hasNext(); i++) {
      Object element = it.next();
      String indexedPropertyName = buildIndexedPropertyName(propertyName, i);
      if (methodParam != null) {
        methodParam.increaseNestingLevel();
      }
      Object convertedElement =
          convertIfNecessary(indexedPropertyName, null, element, elementType, typeDescriptor);
      if (methodParam != null) {
        methodParam.decreaseNestingLevel();
View Full Code Here

      Map.Entry entry = (Map.Entry) it.next();
      Object key = entry.getKey();
      Object value = entry.getValue();
      String keyedPropertyName = buildKeyedPropertyName(propertyName, key);
      if (methodParam != null) {
        methodParam.increaseNestingLevel();
        methodParam.setTypeIndexForCurrentLevel(0);
      }
      Object convertedKey = convertIfNecessary(keyedPropertyName, null, key, keyType, typeDescriptor);
      if (methodParam != null) {
        methodParam.setTypeIndexForCurrentLevel(1);
View Full Code Here

    int i = 0;
    for (; it.hasNext(); i++) {
      Object element = it.next();
      String indexedPropertyName = buildIndexedPropertyName(propertyName, i);
      if (methodParam != null) {
        methodParam.increaseNestingLevel();
      }
      Object convertedElement = convertIfNecessary(
          indexedPropertyName, null, element, elementType, typeDescriptor);
      if (methodParam != null) {
        methodParam.decreaseNestingLevel();
View Full Code Here

      Map.Entry entry = (Map.Entry) it.next();
      Object key = entry.getKey();
      Object value = entry.getValue();
      String keyedPropertyName = buildKeyedPropertyName(propertyName, key);
      if (methodParam != null) {
        methodParam.increaseNestingLevel();
        methodParam.setTypeIndexForCurrentLevel(0);
      }
      Object convertedKey = convertIfNecessary(keyedPropertyName, null, key, keyType, typeDescriptor);
      if (methodParam != null) {
        methodParam.setTypeIndexForCurrentLevel(1);
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.