public Class < ? > getType ( ELContext context , Object base , Object property ) { if ( context == null ) { throw new NullPointerException ( ) ; } if ( base != null && base instanceof List ) { context . setPropertyResolved ( true ) ; List list = ( List ) base ; int index = toInteger ( property ) ; if ( index < 0 || index >= list . size ( ) ) { throw new PropertyNotFoundException ( ) ; } return Object . class ; } return null ; }
If the base object is a list returns the most general acceptable type for a value in this list .