jmathlib.core.interpreter
Class ErrorLogger

java.lang.Object
  extended by jmathlib.core.interpreter.RootObject
      extended by jmathlib.core.interpreter.ErrorLogger
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ErrorCodes, TokenConstants

public class ErrorLogger
extends RootObject

write error messages + debug information to a log file

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface jmathlib.core.constants.ErrorCodes
ERR_BRACKET_OPEN, ERR_BRACKET_ORDER, ERR_FUNCTION_NOT_FOUND, ERR_FUNCTION_NOT_IMPLEMENTED, ERR_INSUFFICIENT_PARAMETERS, ERR_INVALID_PARAMETER, ERR_LVALUE_REQUIRED, ERR_MATRIX_SINGULAR, ERR_NOT_SQUARE_MATRIX, ERR_OPNOTSUPPORTED, ERR_TOO_MANY_PARAMETERS, ERR_USER_ERROR, ERR_VARIABLE_NOTDEFINED, OK, OK_FUNCTION_PROCESS
 
Fields inherited from interface jmathlib.core.constants.TokenConstants
ADDSUB_PRIORITY, AND_PRIORITY, ANDAND_PRIORITY, ASSIGN_PRIORITY, BRACKET_PRIORITY, COMPARE_PRIORITY, CONCAT, MATRIX, MULDIV_PRIORITY, OR_PRIORITY, OROR_PRIORITY, PARAMETER, POWER_PRIORITY, RELATION_PRIORITY, SINGLE, ttDelimiter, ttNotSet, ttOperand, ttOperator
 
Constructor Summary
ErrorLogger()
           
 
Method Summary
static void debugLine(double value)
          display a real value to the standard output
static void debugLine(int value)
          display an integer to the standard output
static void debugLine(java.lang.String text)
          display a debug line to the standard output and the file MathLib.log
static void decreaseIndent()
          Decreases the level of indent
static void displayStackTrace(java.lang.String message)
          Prints the current execution stack trace, the list of functions that have been called up to the current one.
static void increaseIndent()
          Increases the level of indent
static void setDisplayIndent(boolean _displayIndent)
          Sets whether the indent value should be displayed
 
Methods inherited from class jmathlib.core.interpreter.RootObject
clone, getContextList, getDebug, getFunctionManager, getGlobalVariables, getGraphicsManager, getInterpreter, getPluginsManager, getVariable, getVariables, getWorkingDirectory, setConstants, setDebug, setWorkingDirectory, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorLogger

public ErrorLogger()
Method Detail

debugLine

public static void debugLine(java.lang.String text)
display a debug line to the standard output and the file MathLib.log

Parameters:
text - = the text to display

debugLine

public static void debugLine(int value)
display an integer to the standard output

Parameters:
value - = the number to display

debugLine

public static void debugLine(double value)
display a real value to the standard output

Parameters:
value - = the number to display

increaseIndent

public static void increaseIndent()
Increases the level of indent


decreaseIndent

public static void decreaseIndent()
Decreases the level of indent


setDisplayIndent

public static void setDisplayIndent(boolean _displayIndent)
Sets whether the indent value should be displayed

Parameters:
_displayIndent - = true if indent should be displayed

displayStackTrace

public static void displayStackTrace(java.lang.String message)
Prints the current execution stack trace, the list of functions that have been called up to the current one.

Parameters:
message - = The message to display before the stack trace