• Home
  • Raw
  • Download

Lines Matching full:columns

41         Object[] columns = null;  in castParamsFromString()  local
43 columns = Utils.splitAtCommaOrPipe(params); in castParamsFromString()
44 columns = castParamsUsingConverters(columns); in castParamsFromString()
50 return columns; in castParamsFromString()
94 private Object[] castParamsUsingConverters(Object[] columns) throws ConversionFailedException { in castParamsUsingConverters() argument
97 if (testMethodParamsHasVarargs(columns, expectedParameterTypes)) { in castParamsUsingConverters()
98 columns = columnsWithVarargs(columns, expectedParameterTypes); in castParamsUsingConverters()
102 verifySameSizeOfArrays(columns, expectedParameterTypes); in castParamsUsingConverters()
103columns = castAllParametersToProperTypes(columns, expectedParameterTypes, parameterAnnotations); in castParamsUsingConverters()
104 return columns; in castParamsUsingConverters()
107 private Object[] columnsWithVarargs(Object[] columns, Class<?>[] expectedParameterTypes) { in columnsWithVarargs() argument
108 Object[] allParameters = standardParameters(columns, expectedParameterTypes); in columnsWithVarargs()
109 … allParameters[allParameters.length - 1] = varargsParameters(columns, expectedParameterTypes); in columnsWithVarargs()
113 private Object[] varargsParameters(Object[] columns, Class<?>[] expectedParameterTypes) { in varargsParameters() argument
115 …Object[] varArgsParameters = (Object[]) Array.newInstance(varArgType, columns.length - expectedPar… in varargsParameters()
117 varArgsParameters[i] = columns[i + expectedParameterTypes.length - 1]; in varargsParameters()
122 private Object[] standardParameters(Object[] columns, Class<?>[] expectedParameterTypes) { in standardParameters() argument
125 standardParameters[i] = columns[i]; in standardParameters()
130 … private boolean testMethodParamsHasVarargs(Object[] columns, Class<?>[] expectedParameterTypes) { in testMethodParamsHasVarargs() argument
132 if (columns[last] == null) { in testMethodParamsHasVarargs()
135 return expectedParameterTypes.length <= columns.length in testMethodParamsHasVarargs()
137 && expectedParameterTypes[last].getComponentType().equals(columns[last].getClass()); in testMethodParamsHasVarargs()
140 …private Object[] castAllParametersToProperTypes(Object[] columns, Class<?>[] expectedParameterType… in castAllParametersToProperTypes() argument
142 Object[] result = new Object[columns.length]; in castAllParametersToProperTypes()
144 for (int i = 0; i < columns.length; i++) { in castAllParametersToProperTypes()
146 result[i] = castParameterDirectly(columns[i], expectedParameterTypes[i]); in castAllParametersToProperTypes()
148 result[i] = castParameterUsingConverter(columns[i], parameterAnnotations[i]); in castAllParametersToProperTypes()
210 private void verifySameSizeOfArrays(Object[] columns, Class<?>[] parameterTypes) { in verifySameSizeOfArrays() argument
211 if (parameterTypes.length != columns.length) in verifySameSizeOfArrays()
214 …+ columns.length + " parameters in annotation, while there's " + parameterTypes.length + " paramet… in verifySameSizeOfArrays()