|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclarion.clarion.runtime.CRun
public class CRun
| Constructor Summary | |
|---|---|
CRun()
|
|
| Method Summary | |
|---|---|
static void |
_assert(boolean assertion)
Clarion assertion test |
static void |
_assert(boolean assertion,
java.lang.String msg)
|
static void |
addInitThreadHook(java.lang.Runnable r)
|
static void |
addShutdownHook(java.lang.Runnable r)
|
static int |
call(java.lang.String dll,
java.lang.String function,
java.lang.Integer params)
|
static ClarionNumber |
choose(boolean bool)
Return 1 or 0 based on condition |
static ClarionObject |
choose(boolean aBool,
ClarionObject o1,
ClarionObject o2)
Retrun either first or second based on condition |
static ClarionObject |
choose(int i,
ClarionObject[] objs)
return matching object |
static ClarionString |
command(java.lang.String string)
Get command line argument |
static java.lang.String |
getDBDescription(ClarionString source)
|
static java.lang.String |
getSystemDescription()
|
static java.lang.Thread |
getThread(int id)
|
static int |
getThreadID()
Get current thread ID |
static void |
halt(java.lang.Integer i,
java.lang.String message)
Halt program |
static void |
init(java.lang.String[] args)
Initialise runtime environment with passed command line args |
static void |
initThread()
|
static ClarionNumber |
inlist(java.lang.String s,
ClarionString[] objs)
Return first match of specified value |
static boolean |
inRange(ClarionObject o,
ClarionObject lower,
ClarionObject upper)
Return true if object is between lower and upper |
static int |
random(int lo,
int hi)
|
static void |
removeShutdownHook(java.lang.Runnable r)
|
static void |
setHardAssert(boolean hard)
|
static void |
shutdown()
|
static java.lang.Thread |
start(java.lang.Runnable r)
Start new thread |
static void |
stop(java.lang.String message)
Stop program |
static void |
yield()
Yield to other running threads |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CRun()
| Method Detail |
|---|
public static java.lang.String getSystemDescription()
public static java.lang.String getDBDescription(ClarionString source)
public static int random(int lo,
int hi)
public static void shutdown()
public static void addInitThreadHook(java.lang.Runnable r)
public static void initThread()
public static void addShutdownHook(java.lang.Runnable r)
public static void removeShutdownHook(java.lang.Runnable r)
public static void init(java.lang.String[] args)
args - public static ClarionString command(java.lang.String string)
string -
public static void setHardAssert(boolean hard)
public static void _assert(boolean assertion)
assertion -
public static void _assert(boolean assertion,
java.lang.String msg)
public static void halt(java.lang.Integer i,
java.lang.String message)
i - message - public static void stop(java.lang.String message)
message -
public static ClarionNumber inlist(java.lang.String s,
ClarionString[] objs)
s - objs -
public static ClarionObject choose(int i,
ClarionObject[] objs)
i - objs -
public static ClarionObject choose(boolean aBool,
ClarionObject o1,
ClarionObject o2)
aBool - o1 - o2 -
public static ClarionNumber choose(boolean bool)
bool -
public static int getThreadID()
public static java.lang.Thread getThread(int id)
public static boolean inRange(ClarionObject o,
ClarionObject lower,
ClarionObject upper)
o - lower - upper -
public static java.lang.Thread start(java.lang.Runnable r)
r - public static void yield()
public static int call(java.lang.String dll,
java.lang.String function,
java.lang.Integer params)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||