src/main/java/ognl/OgnlContext.java
public Class getCurrentType()
    {
        if (_typeStack.isEmpty())
            return null;

       return (Class) _typeStack.get(_typeStack.size() - 1); 
    }
public Class getCurrentType()
    {
        if (_typeStack.isEmpty())
            return null;

       return (Class) _typeStack.get(_typeStack.size() - 1); 
    }
public Class getCurrentType ( ) { if ( _typeStack . isEmpty ( ) ) return null ; return ( Class ) _typeStack . get ( _typeStack . size ( ) - 1 ) ; }
Gets the current class type being evaluated on the stack, as set by {@link #setCurrentType(Class)}.

@return The current object type, may be null.
Gets the current class type being evaluated on the stack as set by { @link #setCurrentType ( Class ) } .