murlen.util.fscript
Interface FSVarExtension

All Known Subinterfaces:
FSExtension, FSParserExtension
All Known Implementing Classes:
BasicExtension, FScript, FSFastExtension, FSReflectionExtension

public interface FSVarExtension

FSVarExtension - simple variable extension to plug into FSFastExtension

Copyright (C) 2002

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 modifications by Joachim Van der Auwera 02.08.2002 started

Method Summary
 java.lang.Object getVar(java.lang.String name)
          getVar is called whenever a variable is read in FScript that has not been defined within the script iteslf
 void setVar(java.lang.String name, java.lang.Object value)
          setVar is called whenever a variable is written to in FScript that has not been defined within the script itself
 

Method Detail

getVar

public java.lang.Object getVar(java.lang.String name)
                        throws FSException

getVar is called whenever a variable is read in FScript that has not been defined within the script iteslf

Parameters:
name - the variable name
Returns:
the value of the variable (as one of FScript's supported object types)
Throws:
FSException

setVar

public void setVar(java.lang.String name,
                   java.lang.Object value)
            throws FSException

setVar is called whenever a variable is written to in FScript that has not been defined within the script itself

Parameters:
name - the variable name
value - the value to assign to the variable
Throws:
FSException