protected Class < ? > getCurrentScriptClass ( ) { Class < ? > [ ] context = getClassContext ( ) ; for ( Class < ? > c : context ) { if ( c != InterpretedFunction . class && NativeFunction . class . isAssignableFrom ( c ) || PolicySecurityController . SecureCaller . class . isAssignableFrom ( c ) ) { return c ; } } return null ; }
Get the class of the top - most stack element representing a script .