private ClassModel getClassModelFromArg ( KernelArg arg , final Class < ? > arrayClass ) { ClassModel c = null ; if ( arg . getObjArrayElementModel ( ) == null ) { final String tmp = arrayClass . getName ( ) . substring ( 2 ) . replace ( ' ' , ' ' ) ; final String arrayClassInDotForm = tmp . substring ( 0 , tmp . length ( ) - 1 ) ; if ( logger . isLoggable ( Level . FINE ) ) { logger . fine ( "looking for type = " + arrayClassInDotForm ) ; } // get ClassModel of obj array from entrypt.objectArrayFieldsClasses c = entryPoint . getObjectArrayFieldsClasses ( ) . get ( arrayClassInDotForm ) ; arg . setObjArrayElementModel ( c ) ; } else { c = arg . getObjArrayElementModel ( ) ; } assert c != null : "should find class for elements " + arrayClass . getName ( ) ; return c ; }
Helper method to retrieve the class model from a kernel argument .