| java.lang.Object murlen.util.fscript.FSReflectionExtension
FSReflectionExtension | public class FSReflectionExtension implements FSParserExtension(Code) | | ReflectionExtension - general extension for object access where either
the class handles the processing (if it implements FSExtension),
or reflection is used.
Copyright (C) 2002-2003
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA
author: Joachim Van der Auwera author: murlen author: modifications by Joachim Van der Auwera author: 05.08.2002 started (Joachim) author: 08.09.2002 major changes to allow overloading of params for methods/fields author: and use of static methods/fields. (murlen) author: 08-10.10.2002 use Velocity introspection code for better handling of native author: types and improved speed author: 18.11.2002 imporved exception handling author: 28.01.2003 fixed problem with return handling on objectMethod() author: 15.03.2003 pluggable exception handling author: 28.02.2004 make nulls typed |
Inner Class :public interface ExceptionHandler | |
Inner Class :public class FSReflectionException extends FSException | |
Method Summary | |
public Object | callFunction(String name, ArrayList params) | protected Object | getObjectVar(Object o, String name) | public Object | getVar(String name) | public Object | getVar(String name, Object index) | protected Object | objectMethod(Object target, String methodName, Object params) | public void | setExceptionHandler(ExceptionHandler eh) set the exception handler routine which should be called for all exceptions caused by the
referenced getter and setter methods (not the exceptions while trying to call, but only the
exceptions thrown by the called code). | protected void | setObjectVar(Object o, String name, Object value) | public void | setParser(Parser parser) | public void | setVar(String name, Object value) | public void | setVar(String name, Object index, Object value) |
exceptionHandler | ExceptionHandler exceptionHandler(Code) | | |
setExceptionHandler | public void setExceptionHandler(ExceptionHandler eh)(Code) | | set the exception handler routine which should be called for all exceptions caused by the
referenced getter and setter methods (not the exceptions while trying to call, but only the
exceptions thrown by the called code).
Parameters: eh - the exception handler which should be used |
|
|