private <T> ConstructorAccess<T> lookupConstructorMeta(int size, List<Object> convertedArguments, ClassMeta<T> classMeta, ConstructorAccess<T> constructorToMatch, boolean[] flag, boolean loose) { /* Iterate through the constructors and see if one matches the arguments passed after coercion. */ loop: for ( ConstructorAccess constructor : classMeta.constructors() ) { /* Get the parameters on the constructor and see if the size matches what was passed. */ Class[] parameterTypes = constructor.parameterTypes(); if ( parameterTypes.length == size ) { /* Iterate through each parameter and see if it can be converted. */ for ( int index = 0; index < size; index++ ) { /* The match and convert does the bulk of the work. */ if ( !matchAndConvertArgs( convertedArguments, constructor, parameterTypes, index, flag, loose ) ) continue loop; } constructorToMatch = constructor; } } return constructorToMatch; }
private <T> ConstructorAccess<T> lookupConstructorMeta(int size, List<Object> convertedArguments, ClassMeta<T> classMeta, ConstructorAccess<T> constructorToMatch, boolean[] flag, boolean loose) { /* Iterate through the constructors and see if one matches the arguments passed after coercion. */ loop: for ( ConstructorAccess constructor : classMeta.constructors() ) { /* Get the parameters on the constructor and see if the size matches what was passed. */ Class[] parameterTypes = constructor.parameterTypes(); if ( parameterTypes.length == size ) { /* Iterate through each parameter and see if it can be converted. */ for ( int index = 0; index < size; index++ ) { /* The match and convert does the bulk of the work. */ if ( !matchAndConvertArgs( convertedArguments, constructor, parameterTypes, index, flag, loose ) ) continue loop; } constructorToMatch = constructor; } } return constructorToMatch; }
private <T> ConstructorAccess<T> lookupConstructorMeta(int size, List<Object> convertedArguments, ClassMeta<T> classMeta, ConstructorAccess<T> constructorToMatch, boolean[] flag, boolean loose) { /* Iterate through the constructors and see if one matches the arguments passed after coercion. */ loop: for ( ConstructorAccess constructor : classMeta.constructors() ) { /* Get the parameters on the constructor and see if the size matches what was passed. */ Class[] parameterTypes = constructor.parameterTypes(); if ( parameterTypes.length == size ) { /* Iterate through each parameter and see if it can be converted. */ for ( int index = 0; index < size; index++ ) { /* The match and convert does the bulk of the work. */ if ( !matchAndConvertArgs( convertedArguments, constructor, parameterTypes, index, flag, loose ) ) continue loop; } constructorToMatch = constructor; } } return constructorToMatch; }
private <T> ConstructorAccess<T> lookupConstructorMeta(int size, List<Object> convertedArguments, ClassMeta<T> classMeta, ConstructorAccess<T> constructorToMatch, boolean[] flag, boolean loose) { /* Iterate through the constructors and see if one matches the arguments passed after coercion. */ loop: for ( ConstructorAccess constructor : classMeta.constructors() ) { /* Get the parameters on the constructor and see if the size matches what was passed. */ Class[] parameterTypes = constructor.parameterTypes(); if ( parameterTypes.length == size ) { /* Iterate through each parameter and see if it can be converted. */ for ( int index = 0; index < size; index++ ) { /* The match and convert does the bulk of the work. */ if ( !matchAndConvertArgs( convertedArguments, constructor, parameterTypes, index, flag, loose ) ) continue loop; } constructorToMatch = constructor; } } return constructorToMatch; }