src/main/java/ognl/ASTProperty.java
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);
        }
    }
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);
        }
    }
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.
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 .