/** Returns true if this property is described by an IndexedPropertyDescriptor and that if followed by an index specifier it will call the index get/set methods rather than go through property accessors. */ public int getIndexedPropertyType(OgnlContext context, Object source) throws OgnlException { if (!isIndexedAccess()) { Object property = getProperty(context, source); if (property instanceof String) { return OgnlRuntime.getIndexedPropertyType(context, (source == null) ? null : source.getClass(), (String)property); } } return OgnlRuntime.INDEXED_PROPERTY_NONE; }
OgnlRuntime.hasGetProperty((OgnlContext) context, target, property) || OgnlRuntime.getIndexedPropertyType((OgnlContext) context, target.getClass(), property) != OgnlRuntime.INDEXED_PROPERTY_NONE ) { return target;
/** * Returns true if this property is described by an IndexedPropertyDescriptor and that if * followed by an index specifier it will call the index get/set methods rather than go through * property accessors. */ public int getIndexedPropertyType(OgnlContext context, Object source) throws OgnlException { Class type = context.getCurrentType(); Class prevType = context.getPreviousType(); try { if (!isIndexedAccess()) { Object property = getProperty(context, source); if (property instanceof String) { return OgnlRuntime.getIndexedPropertyType(context, (source == null) ? null : OgnlRuntime.getCompiler().getInterfaceClass(source.getClass()), (String) property); } } return OgnlRuntime.INDEXED_PROPERTY_NONE; } finally { context.setCurrentObject(source); context.setCurrentType(type); context.setPreviousType(prevType); } }
/** * Returns true if this property is described by an IndexedPropertyDescriptor and that if * followed by an index specifier it will call the index get/set methods rather than go through * property accessors. */ public int getIndexedPropertyType(OgnlContext context, Object source) throws OgnlException { Class type = context.getCurrentType(); Class prevType = context.getPreviousType(); try { if (!isIndexedAccess()) { Object property = getProperty(context, source); if (property instanceof String) { return OgnlRuntime.getIndexedPropertyType(context, (source == null) ? null : OgnlRuntime.getCompiler().getInterfaceClass(source.getClass()), (String) property); } } return OgnlRuntime.INDEXED_PROPERTY_NONE; } finally { context.setCurrentObject(source); context.setCurrentType(type); context.setPreviousType(prevType); } }