public static class JZtxtcmdExecuter.JzTcMain
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
bAccessPrivate
Set it to true if private and protected fields and methods should be used
by data access.
|
java.util.Map<java.lang.String,DataAccess.Variable<java.lang.Object>> |
envar
possible environment variables from a calling Java environment.
|
(package private) JZtxtcmdExecuter |
jzCmdExecuter |
(package private) JZtxtcmdScript |
jzcmdScript
The java prepared generation script.
|
protected java.util.Locale |
locale
Used for formatting Numbers.
|
LogMessage |
log |
java.lang.String |
newline
The newline char sequence.
|
private int |
nextNr_ |
(package private) java.lang.Appendable |
outFromCmdlineArg
It is set from argument outside.
|
(package private) java.util.Queue<CmdExecuter> |
runningCmdExecuter |
JZtxtcmdExecuter.ExecuteLevel |
scriptLevel |
JZtxtcmdThreadData |
scriptThread |
long |
startmilli
The time stamp from
System.currentTimeMillis() on start of script. |
long |
startnano
The time stamp from
System.nanoTime() on start of script. |
int |
tabsize
The width or size of a tab in the script file is used for detect and ignore tab indentation in the script.
|
(package private) StringFormatter |
textline
The text output, the same for all threads.
|
java.util.Queue<JZtxtcmdThreadData> |
threads |
Constructor and Description |
---|
JzTcMain(LogMessage log,
JZtxtcmdExecuter jzCmdExecuter) |
Modifier and Type | Method and Description |
---|---|
long |
calctime() |
java.lang.CharSequence |
currdir() |
DataAccess.Variable<java.lang.Object> |
getScriptVariable(java.lang.String name) |
java.lang.String |
getstdin() |
LogMessage |
log()
Returns the log interface from the environment class.
|
private java.util.Map<java.lang.String,DataAccess.Variable<java.lang.Object>> |
new_Variables() |
java.lang.String |
nextNr() |
DataAccess.Variable<java.lang.Object> |
removeScriptVariable(java.lang.String name) |
java.util.Map<java.lang.String,DataAccess.Variable<java.lang.Object>> |
scriptVariables()
Returns the association to all script variables.
|
void |
setScriptVariable(java.lang.String name,
char type,
java.lang.Object content,
boolean bConst) |
boolean |
sleep(int millisec)
Capability to delay an execution, maybe for polling.
|
JZtxtcmdScript.Subroutine |
sub(java.lang.CharSequence name) |
final JZtxtcmdExecuter jzCmdExecuter
public final LogMessage log
public java.lang.String newline
public int tabsize
protected java.util.Locale locale
java.lang.Appendable outFromCmdlineArg
text = path/to/textout;
is suppressed in script level.
It means, a textout can be set in script level, but a argument -t=textout on invocation wins.
On runtime a text = path/to/newTextOut;
can be set because this variable is ==null then.StringFormatter textline
text
script variablepublic long startmilli
System.currentTimeMillis()
on start of script.public long startnano
System.nanoTime()
on start of script.private int nextNr_
public boolean bAccessPrivate
JZtxtcmdScript jzcmdScript
java.util.Queue<CmdExecuter> runningCmdExecuter
public final java.util.Queue<JZtxtcmdThreadData> threads
public final JZtxtcmdThreadData scriptThread
public final JZtxtcmdExecuter.ExecuteLevel scriptLevel
public java.util.Map<java.lang.String,DataAccess.Variable<java.lang.Object>> envar
JZtxtcmdExecuter.initialize(JZtxtcmdScript, boolean, List, Map, CharSequence)
JzTcMain(LogMessage log, JZtxtcmdExecuter jzCmdExecuter)
public java.util.Map<java.lang.String,DataAccess.Variable<java.lang.Object>> scriptVariables()
public LogMessage log()
public java.lang.String getstdin()
public boolean sleep(int millisec)
millisec
- public void setScriptVariable(java.lang.String name, char type, java.lang.Object content, boolean bConst) throws java.lang.IllegalAccessException
java.lang.IllegalAccessException
public DataAccess.Variable<java.lang.Object> getScriptVariable(java.lang.String name) throws java.lang.NoSuchFieldException
java.lang.NoSuchFieldException
public JZtxtcmdScript.Subroutine sub(java.lang.CharSequence name)
public java.lang.String nextNr()
public DataAccess.Variable<java.lang.Object> removeScriptVariable(java.lang.String name)
public java.lang.CharSequence currdir()
public long calctime()
private java.util.Map<java.lang.String,DataAccess.Variable<java.lang.Object>> new_Variables()