org.fraid.utils.functions
Class debug

java.lang.Object
  extended by org.fraid.function.ComplexFunction
      extended by org.fraid.utils.functions.debug
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class debug
extends ComplexFunction

See Also:
Serialized Form

Field Summary
protected static boolean sIsDebugMode
          Indicator if debug mode is used.
 
Fields inherited from class org.fraid.function.ComplexFunction
mName, mNumberOfArguments
 
Constructor Summary
debug()
           
 
Method Summary
static boolean inDebugMode()
          Checks if in debug mode;
 Complex invoke(Complex[] args)
          The actual call to the function.
static void setDebugMode(boolean aMode)
          Sets debug mode on or off;
 
Methods inherited from class org.fraid.function.ComplexFunction
clone, exec, getDependancies, getName, getNumberOfArguments, getSignature, setName, setNumberOfArguments, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sIsDebugMode

protected static boolean sIsDebugMode
Indicator if debug mode is used. If true, the streams will automaticaly dump not only the errors but the stack as well.

Constructor Detail

debug

public debug()
Method Detail

inDebugMode

public static boolean inDebugMode()
Checks if in debug mode;

Returns:
a boolean value

setDebugMode

public static void setDebugMode(boolean aMode)
Sets debug mode on or off;

Parameters:
aMode - a boolean value

invoke

public Complex invoke(Complex[] args)
               throws java.lang.Exception
Description copied from class: ComplexFunction
The actual call to the function.

Specified by:
invoke in class ComplexFunction
Parameters:
args - the arguments, can be (and usualy are) SimpleNode's
Returns:
a Complex value
Throws:
java.lang.Exception - if an error occurs
See Also:
SimpleNode


Fraid (system and language). (C) 2003-2007 Ivaylo Iliev
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.