com.judoscript
Class RT
java.lang.Object
com.judoscript.RT
public final class RT
- extends java.lang.Object
Method Summary |
static Variable[] |
calcValues(Expr[] vals)
|
static Variable[] |
calcValues(Expr[] vals,
boolean expand)
|
static java.lang.String[] |
calcValuesAsStrings(Expr[] vals,
boolean expand)
|
static Variable |
call(java.lang.String fxn,
Expr[] args,
int[] javaTypes)
|
static Variable |
call(java.lang.String fxn,
Expr[] args,
int[] javaTypes,
boolean fxnNameOnly)
|
static Variable |
call(java.lang.String fxn,
Expr[] args,
int[] javaTypes,
boolean fxnNameOnly,
boolean checkNS)
|
static void |
checkClass(java.lang.String clazz,
java.lang.String msg)
|
static void |
clearPipeIn()
|
static void |
clearPipeOut()
|
static void |
clearTableDataSource()
|
static RuntimeContext |
curCtxt()
|
static int |
curLoopIndex(int level)
|
static Frame |
currentFrame()
|
static void |
deprecated(java.lang.String msg)
|
static void |
echo(java.lang.String msg)
|
static void |
echoOff()
|
static void |
echoOn(java.lang.String filename)
|
static void |
execStmt(Stmt stmt)
|
static void |
execStmts(java.util.List stmts)
|
static void |
execStmts(Stmt[] stmts)
|
static java.lang.Object |
getAntFacade()
|
static int |
getAssertAs()
|
static java.lang.String |
getCharset()
|
static java.lang.Class |
getClass(java.lang.String name)
|
static UserClasspath |
getClasspath()
|
static java.lang.String |
getContextName()
|
static java.lang.String |
getCurrentDefaultNS()
|
static Variable |
getCurrentDir()
|
static java.text.SimpleDateFormat |
getDefaultDateFormat()
|
static java.lang.String |
getEnvVar(java.lang.String name)
|
static Variable |
getEnvVars()
|
static LinePrintWriter |
getErr()
|
static java.io.File |
getFile(java.lang.String filename)
|
static java.io.File |
getFile(java.lang.String base,
java.lang.String fname)
|
static java.lang.String |
getFilePath(java.lang.String fname)
|
static java.lang.String |
getFilePath(java.lang.String base,
java.lang.String fname)
|
static RuntimeGlobalContext |
getGlobalContext()
|
static GuiContext |
getGuiContext()
|
static AwtSwingListeners |
getGuiDefaultHandler()
|
static GuiListenerBase |
getGuiEventHandler(java.lang.String eventName)
|
static GuiListenerBase |
getGuiHandler(java.lang.String clsName)
|
static java.io.BufferedReader |
getIn()
|
static java.lang.String |
getJudoPath()
|
static int |
getLineNumber()
|
static LinePrintWriter |
getLog()
|
static Namespace |
getNamespace(java.lang.String name)
For now, only for Java class static member accesses. |
static LinePrintWriter |
getOut()
|
static java.io.BufferedReader |
getPipeIn()
|
static LinePrintWriter |
getPipeOut()
|
static RegexEngine |
getRegexCompiler()
|
static FrameRoot |
getRootFrame()
|
static Script |
getScript()
|
static java.lang.String |
getSrcFileName()
|
static java.lang.Class |
getSysClass(java.lang.String name)
|
static java.util.Map |
getSystemProperties()
|
static ExprTableData |
getTableDataSource()
|
static Variable |
getThisObject()
|
static int |
getUndefinedAccessPolicy()
|
static boolean |
ignoreAssertions()
|
static boolean |
ignoreUnfoundMethods()
|
static void |
incLoopIndex()
|
static boolean |
isMainThread()
|
static void |
markExprStack()
|
static RuntimeSubContext |
newSubContext()
|
static Frame |
peekFrame()
|
static RuntimeContext |
popContext()
|
static void |
popd()
|
static Frame |
popFrame()
|
static void |
popLoopIndex()
|
static void |
popThis()
|
static void |
pushContext(RuntimeContext rtc)
|
static void |
pushd()
|
static void |
pushExprStack(Expr expr)
|
static void |
pushFrame(Frame frm,
java.util.List inits)
|
static void |
pushFrame(Frame frm,
Stmt[] inits)
|
static void |
pushLoopIndex()
|
static void |
pushThis(Variable _this)
|
static void |
removeVariable(java.lang.String n)
|
static void |
resetExprStack()
|
static Variable |
resolveGlobalVariable(java.lang.String name)
|
static Variable |
resolveVariable(java.lang.String n)
|
static Variable[] |
retrieveFunctionArguments()
|
static void |
runStmts(Stmt[] sa)
|
static void |
setAllLoggerLevel(java.lang.String level)
|
static void |
setAssertAs(int policy)
|
static void |
setCharset(java.lang.String cset)
|
static void |
setConst(java.lang.String n,
Variable v)
|
static void |
setCurrentDefaultNS(java.lang.String ns)
|
static void |
setCurrentDir(java.lang.String s)
|
static void |
setDefaultDateFormat(java.lang.String fmt)
|
static void |
setErr(LinePrintWriter ow)
|
static void |
setFunctionArguments(Expr[] _args)
|
static Variable |
setGlobalVariable(java.lang.String name,
java.lang.Object val,
int type)
|
static Variable |
setGlobalVariable(java.lang.String name,
Variable val,
int type)
|
static void |
setIn(java.io.BufferedReader is)
|
static void |
setLocalVariable(java.lang.String name)
|
static Variable |
setLocalVariable(java.lang.String name,
Variable val,
int type)
|
static void |
setLog(LinePrintWriter ow)
|
static void |
setLoggerLevel(java.lang.String level,
org.apache.commons.logging.Log logger)
|
static void |
setOut(LinePrintWriter ow)
|
static void |
setPipeIn(java.io.BufferedReader is)
|
static void |
setPipeOut(LinePrintWriter os)
|
static void |
setTableDataSource(ExprTableData etd)
|
static void |
setUndefinedAccessPolicy(int policy)
|
static Variable |
setVariable(java.lang.String name,
Variable val,
int type)
|
static Variable |
tempVarAt(int i)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
public static final org.apache.commons.logging.Log logger
userLogger
public static final org.apache.commons.logging.Log userLogger
loggerType
public static final int loggerType
LOGGERTYPE_UNKNOWN
public static final int LOGGERTYPE_UNKNOWN
- See Also:
- Constant Field Values
LOGGERTYPE_JDK14
public static final int LOGGERTYPE_JDK14
- See Also:
- Constant Field Values
LOGGERTYPE_LOG4J
public static final int LOGGERTYPE_LOG4J
- See Also:
- Constant Field Values
LOGGERTYPE_SIMPLELOG
public static final int LOGGERTYPE_SIMPLELOG
- See Also:
- Constant Field Values
judoPath
public static java.lang.String judoPath
DEFAULT_RTC
public static RuntimeGlobalContext DEFAULT_RTC
RT
public RT()
getJudoPath
public static java.lang.String getJudoPath()
setAllLoggerLevel
public static void setAllLoggerLevel(java.lang.String level)
setLoggerLevel
public static void setLoggerLevel(java.lang.String level,
org.apache.commons.logging.Log logger)
deprecated
public static void deprecated(java.lang.String msg)
pushContext
public static void pushContext(RuntimeContext rtc)
popContext
public static RuntimeContext popContext()
curCtxt
public static RuntimeContext curCtxt()
getGlobalContext
public static RuntimeGlobalContext getGlobalContext()
currentFrame
public static Frame currentFrame()
getContextName
public static java.lang.String getContextName()
newSubContext
public static RuntimeSubContext newSubContext()
getRootFrame
public static FrameRoot getRootFrame()
getScript
public static Script getScript()
ignoreUnfoundMethods
public static boolean ignoreUnfoundMethods()
ignoreAssertions
public static boolean ignoreAssertions()
setVariable
public static Variable setVariable(java.lang.String name,
Variable val,
int type)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
resolveVariable
public static Variable resolveVariable(java.lang.String n)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
removeVariable
public static void removeVariable(java.lang.String n)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
setLocalVariable
public static void setLocalVariable(java.lang.String name)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
setLocalVariable
public static Variable setLocalVariable(java.lang.String name,
Variable val,
int type)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
setGlobalVariable
public static Variable setGlobalVariable(java.lang.String name,
Variable val,
int type)
throws java.lang.Exception
- Throws:
java.lang.Exception
setGlobalVariable
public static Variable setGlobalVariable(java.lang.String name,
java.lang.Object val,
int type)
throws java.lang.Exception
- Throws:
java.lang.Exception
resolveGlobalVariable
public static Variable resolveGlobalVariable(java.lang.String name)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
call
public static Variable call(java.lang.String fxn,
Expr[] args,
int[] javaTypes)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
call
public static Variable call(java.lang.String fxn,
Expr[] args,
int[] javaTypes,
boolean fxnNameOnly)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
call
public static Variable call(java.lang.String fxn,
Expr[] args,
int[] javaTypes,
boolean fxnNameOnly,
boolean checkNS)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
getSystemProperties
public static java.util.Map getSystemProperties()
throws java.lang.Exception
- Throws:
java.lang.Exception
setConst
public static void setConst(java.lang.String n,
Variable v)
throws java.lang.Exception
- Throws:
java.lang.Exception
getOut
public static LinePrintWriter getOut()
getErr
public static LinePrintWriter getErr()
getLog
public static LinePrintWriter getLog()
getIn
public static java.io.BufferedReader getIn()
setOut
public static void setOut(LinePrintWriter ow)
setErr
public static void setErr(LinePrintWriter ow)
setLog
public static void setLog(LinePrintWriter ow)
setIn
public static void setIn(java.io.BufferedReader is)
getPipeIn
public static java.io.BufferedReader getPipeIn()
getPipeOut
public static LinePrintWriter getPipeOut()
setPipeIn
public static void setPipeIn(java.io.BufferedReader is)
setPipeOut
public static void setPipeOut(LinePrintWriter os)
clearPipeIn
public static void clearPipeIn()
clearPipeOut
public static void clearPipeOut()
pushd
public static void pushd()
throws java.lang.Throwable
- Throws:
java.lang.Throwable
popd
public static void popd()
throws java.lang.Throwable
- Throws:
java.lang.Throwable
setCurrentDir
public static void setCurrentDir(java.lang.String s)
throws java.lang.Exception
- Throws:
java.lang.Exception
getCurrentDir
public static Variable getCurrentDir()
echoOn
public static void echoOn(java.lang.String filename)
echoOff
public static void echoOff()
echo
public static void echo(java.lang.String msg)
throws java.lang.Exception
- Throws:
java.lang.Exception
getRegexCompiler
public static RegexEngine getRegexCompiler()
throws java.lang.Exception
- Throws:
java.lang.Exception
getAntFacade
public static java.lang.Object getAntFacade()
throws java.lang.Exception
- Throws:
java.lang.Exception
getCharset
public static java.lang.String getCharset()
setCharset
public static void setCharset(java.lang.String cset)
setCurrentDefaultNS
public static void setCurrentDefaultNS(java.lang.String ns)
getCurrentDefaultNS
public static java.lang.String getCurrentDefaultNS()
getEnvVars
public static Variable getEnvVars()
throws java.lang.Exception
- Throws:
java.lang.Exception
getEnvVar
public static java.lang.String getEnvVar(java.lang.String name)
getFile
public static java.io.File getFile(java.lang.String filename)
getFile
public static java.io.File getFile(java.lang.String base,
java.lang.String fname)
getFilePath
public static java.lang.String getFilePath(java.lang.String fname)
getFilePath
public static java.lang.String getFilePath(java.lang.String base,
java.lang.String fname)
calcValues
public static Variable[] calcValues(Expr[] vals)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
calcValues
public static Variable[] calcValues(Expr[] vals,
boolean expand)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
calcValuesAsStrings
public static java.lang.String[] calcValuesAsStrings(Expr[] vals,
boolean expand)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
runStmts
public static void runStmts(Stmt[] sa)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
pushFrame
public static void pushFrame(Frame frm,
Stmt[] inits)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
pushFrame
public static void pushFrame(Frame frm,
java.util.List inits)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
popFrame
public static Frame popFrame()
peekFrame
public static Frame peekFrame()
pushThis
public static void pushThis(Variable _this)
popThis
public static void popThis()
getThisObject
public static Variable getThisObject()
getLineNumber
public static int getLineNumber()
getSrcFileName
public static java.lang.String getSrcFileName()
execStmt
public static void execStmt(Stmt stmt)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
execStmts
public static void execStmts(Stmt[] stmts)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
execStmts
public static void execStmts(java.util.List stmts)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
setTableDataSource
public static void setTableDataSource(ExprTableData etd)
getTableDataSource
public static ExprTableData getTableDataSource()
clearTableDataSource
public static void clearTableDataSource()
getGuiContext
public static GuiContext getGuiContext()
getGuiHandler
public static GuiListenerBase getGuiHandler(java.lang.String clsName)
throws ExceptionRuntime
- Throws:
ExceptionRuntime
getGuiEventHandler
public static GuiListenerBase getGuiEventHandler(java.lang.String eventName)
throws ExceptionRuntime
- Throws:
ExceptionRuntime
getGuiDefaultHandler
public static AwtSwingListeners getGuiDefaultHandler()
tempVarAt
public static Variable tempVarAt(int i)
throws ExceptionRuntime
- Throws:
ExceptionRuntime
pushExprStack
public static void pushExprStack(Expr expr)
markExprStack
public static void markExprStack()
resetExprStack
public static void resetExprStack()
setFunctionArguments
public static void setFunctionArguments(Expr[] _args)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
retrieveFunctionArguments
public static Variable[] retrieveFunctionArguments()
getDefaultDateFormat
public static java.text.SimpleDateFormat getDefaultDateFormat()
setDefaultDateFormat
public static void setDefaultDateFormat(java.lang.String fmt)
curLoopIndex
public static int curLoopIndex(int level)
incLoopIndex
public static void incLoopIndex()
pushLoopIndex
public static void pushLoopIndex()
throws ExceptionRuntime
- Throws:
ExceptionRuntime
popLoopIndex
public static void popLoopIndex()
setUndefinedAccessPolicy
public static void setUndefinedAccessPolicy(int policy)
getUndefinedAccessPolicy
public static int getUndefinedAccessPolicy()
setAssertAs
public static void setAssertAs(int policy)
getAssertAs
public static int getAssertAs()
getClasspath
public static UserClasspath getClasspath()
throws java.lang.Exception
- Throws:
java.lang.Exception
getSysClass
public static java.lang.Class getSysClass(java.lang.String name)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
getClass
public static java.lang.Class getClass(java.lang.String name)
throws java.lang.Exception
- Throws:
java.lang.Exception
isMainThread
public static boolean isMainThread()
checkClass
public static void checkClass(java.lang.String clazz,
java.lang.String msg)
throws ExceptionRuntime
- Throws:
ExceptionRuntime
getNamespace
public static Namespace getNamespace(java.lang.String name)
throws java.lang.Exception
- For now, only for Java class static member accesses.
- Throws:
java.lang.Exception