public static class JZtxtcmdScript.StatementList extends java.lang.Object implements SetLineColumn_ifc
JZtxtcmdScript.JZcmditem.statementlist
.
Docu_UML_simpleNotation
:
StatementList JZcmditem | !The statement StatementList | | !Sub statements |----statements--*>| | |-----statementlist------>|
Modifier and Type | Field and Description |
---|---|
boolean |
bContainsVariableDef
True if the block
JZtxtcmdScript.JZcmditem.statementlist contains at least one variable definition. |
(package private) boolean |
bSetSkipSpaces
Set with
<:s> in a textExpression to enforce skipping white spaces. |
java.lang.String |
cmpnName |
(package private) JZtxtcmdScript.JZscriptSettings |
jzSettings |
(package private) int |
nIndentInScript
Number of indent whitespace characters which should be skipped for an text expression.
|
(package private) java.util.List<JZtxtcmdScript.Onerror> |
onerrorAccu
List of currently onerror statements.
|
(package private) JZtxtcmdScript.JZcmditem |
parentStatement
Only used for debug, to see which is the parent.
|
(package private) java.lang.String |
sIndentChars
indent characters which should be skipped for an text expression.
|
(package private) int |
srcColumn
For debug and error message, set by compiler.
|
(package private) java.lang.String |
srcFile
Hint to the source of this parsed argument or statement.
|
(package private) int |
srcLine
For debug and error message, set by compiler.
|
java.util.List<JZtxtcmdScript.JZcmditem> |
statements |
protected java.util.List<JZtxtcmdScript.JZcmditem> |
statementsAdd
This is only temporary used to to fill statements of script level
also of included statements to the
JZtxtcmdScript.JZcmdInclude item. |
(package private) java.util.List<JZtxtcmdScript.JZcmditem> |
withoutOnerror |
mColumn, mFile, mLine
Constructor and Description |
---|
StatementList(JZtxtcmdScript.JZcmditem parentStatement) |
StatementList(JZtxtcmdScript.JZscriptSettings jzSettings)
Scripts for some local variable.
|
java.lang.String srcFile
int srcLine
int srcColumn
final JZtxtcmdScript.JZcmditem parentStatement
public java.lang.String cmpnName
public final java.util.List<JZtxtcmdScript.JZcmditem> statements
protected java.util.List<JZtxtcmdScript.JZcmditem> statementsAdd
JZtxtcmdScript.JZcmdInclude
item.
In this case this list refers the JZtxtcmdScript.JZcmditem.statementlist
.
After processing includes this is set back to the original one.
So further adding of statements can be done if necessary maybe also dynamically.java.util.List<JZtxtcmdScript.Onerror> onerrorAccu
XXXXXXStatement#onerror
too.
If an onerror statement will be gotten next, it is added to this list using this reference.
If another statement will be gotten next, this reference is cleared. So a new list will be created
for a later getting onerror statement.java.util.List<JZtxtcmdScript.JZcmditem> withoutOnerror
public boolean bContainsVariableDef
JZtxtcmdScript.JZcmditem.statementlist
contains at least one variable definition.
In this case the execution of the ScriptElement as a block should be done with an separated set
of variables because new variables should not merge between existing of the outer block.boolean bSetSkipSpaces
<:s>
in a textExpression to enforce skipping white spaces.
Also true if a text expression starts with <::>, then the first line feed should not be generated
if the text before is empty.
It is valid for the first statements till a statement with content is found.
Then this variable is set to false.final JZtxtcmdScript.JZscriptSettings jzSettings
int nIndentInScript
java.lang.String sIndentChars
public StatementList(JZtxtcmdScript.JZscriptSettings jzSettings)
public StatementList(JZtxtcmdScript.JZcmditem parentStatement)
public JZtxtcmdScript.JZcmditem new_createTextOut()
public void add_createTextOut(JZtxtcmdScript.JZcmditem val)
public JZtxtcmdScript.JZcmditem new_appendTextOut()
public void add_appendTextOut(JZtxtcmdScript.JZcmditem val)
public void setLineColumnFile(int line, int column, java.lang.String sFile)
setLineColumnFile
in interface SetLineColumn_ifc
public int setLineColumnFileMode()
setLineColumnFileMode
in interface SetLineColumn_ifc
public JZtxtcmdScript.StatementList new_statementBlock()
public void add_statementBlock(JZtxtcmdScript.StatementList val)
public JZtxtcmdScript.JZcmditem new_debugOp()
public void add_debugOp(JZtxtcmdScript.JZcmditem val)
public JZtxtcmdScript.JZcmditem new_debug()
public void add_debug(JZtxtcmdScript.JZcmditem val)
public void set_debug()
public void set_scriptdir()
public JZtxtcmdScript.TextOut new_textOut()
public void add_textOut(JZtxtcmdScript.TextOut val)
public void set_nIndent(long value)
public void set_cIndent(java.lang.String value)
public JZtxtcmdScript.StatementList new_textExpr(ZbnfParseResultItem zbnfItem)
JZtxtcmdScript.JZcmditem.new_textExpr(ZbnfParseResultItem)
: It is invoked here as sub statement list
for this new JZcmditem(this, ':');
. The difference is less, both have the same effect.
This StatementList contains some sub statements as text expression with this item.
The text is assembled and outputted to the standard output.public void add_textExpr(JZtxtcmdScript.StatementList val)
public JZtxtcmdScript.StatementList new_textExprTEST(ZbnfParseResultItem zbnfItem)
public void add_textExprTEST(JZtxtcmdScript.StatementList val)
public JZtxtcmdScript.DefVariable new_textVariable()
public void add_textVariable(JZtxtcmdScript.DefVariable val)
public JZtxtcmdScript.DefVariable new_Pipe()
public void add_Pipe(JZtxtcmdScript.DefVariable val)
public JZtxtcmdScript.DefVariable new_Stringjar()
public void add_Stringjar(JZtxtcmdScript.DefVariable val)
public JZtxtcmdScript.DefContainerVariable new_List()
public void add_List(JZtxtcmdScript.DefContainerVariable val)
public JZtxtcmdScript.DefVariable new_DefMapVar()
public void add_DefMapVar(JZtxtcmdScript.DefVariable val)
public JZtxtcmdScript.DefVariable new_Openfile()
public void add_Openfile(JZtxtcmdScript.DefVariable val)
public JZtxtcmdScript.DefVariable new_DefFilepath()
public void add_DefFilepath(JZtxtcmdScript.DefVariable val)
public JZtxtcmdScript.UserFileset new_DefFileset()
public void add_DefFileset(JZtxtcmdScript.UserFileset val)
public JZtxtcmdScript.Zmake new_zmake()
public void add_zmake(JZtxtcmdScript.Zmake val)
public JZtxtcmdScript.DefVariable new_DefObjVar()
public void add_DefObjVar(JZtxtcmdScript.DefVariable val)
public JZtxtcmdScript.DefVariable XXXnew_DefSubtext()
public void XXXadd_DefSubtext(JZtxtcmdScript.DefVariable val)
public JZtxtcmdScript.Subroutine new_DefSubtext()
public void add_DefSubtext(JZtxtcmdScript.Subroutine val)
public JZtxtcmdScript.DefClasspathVariable new_DefClasspath()
public void add_DefClasspath(JZtxtcmdScript.DefClasspathVariable val)
public JZtxtcmdScript.DefClassVariable new_DefClassVar()
public void add_DefClassVar(JZtxtcmdScript.DefClassVariable val)
public JZtxtcmdScript.DefVariable new_DefNumVar()
public void add_DefNumVar(JZtxtcmdScript.DefVariable val)
public JZtxtcmdScript.DefVariable new_DefBoolVar()
public void add_DefBoolVar(JZtxtcmdScript.DefVariable val)
public JZtxtcmdScript.DefVariable new_setEnvVar()
public void add_setEnvVar(JZtxtcmdScript.DefVariable val)
public JZtxtcmdScript.DataText new_dataText()
public void add_dataText(JZtxtcmdScript.DataText val)
public void set_textReplLf(java.lang.String text)
textExpr::=...<*|\<:|\<+|\<=|\<*|\<\.?textReplLf>
.
The text is written in the source file, but the line feed character sequence may be another
int the generated text. Additional a left indent can be removed.text
- public JZtxtcmdScript.TextColumn new_setColumn()
public void add_setColumn(JZtxtcmdScript.TextColumn val)
public void set_plainText(java.lang.String text)
set_textReplLf(String)
if the text contains
other characters as white spaces.
It regards bSetSkipSpaces
.public void set_transliteration(java.lang.String val)
public void set_utf16code(long val)
public void set_newline()
public void set_skipWhiteSpaces()
public JZtxtcmdScript.AssignExpr new_assignExpr()
public void add_assignExpr(JZtxtcmdScript.AssignExpr val)
public JZtxtcmdScript.JZcmditem new_throw()
public void add_throw(JZtxtcmdScript.JZcmditem val)
public void set_throwonerror(int val)
public void set_errorToOutput(java.lang.String val)
public JZtxtcmdScript.Onerror new_onerror()
public void add_onerror(JZtxtcmdScript.Onerror val)
public JZtxtcmdScript.Onerror new_iferrorlevel()
public void add_iferrorlevel(JZtxtcmdScript.Onerror val)
public void set_breakBlock()
public JZtxtcmdScript.IfStatement new_ifCtrl()
public void add_ifCtrl(JZtxtcmdScript.IfStatement val)
public JZtxtcmdScript.StatementList new_hasNext()
public void add_hasNext(JZtxtcmdScript.StatementList val)
public JZtxtcmdScript.ForStatement new_forCtrl()
public void add_forCtrl(JZtxtcmdScript.ForStatement val)
public JZtxtcmdScript.CondStatement new_whileCtrl()
public void add_whileCtrl(JZtxtcmdScript.CondStatement val)
public JZtxtcmdScript.CondStatement new_dowhileCtrl()
public void add_dowhileCtrl(JZtxtcmdScript.CondStatement val)
public JZtxtcmdScript.ThreadBlock new_threadBlock()
public void add_threadBlock(JZtxtcmdScript.ThreadBlock val)
public JZtxtcmdScript.CallStatement new_call()
public void add_call(JZtxtcmdScript.CallStatement val)
public JZtxtcmdScript.CmdInvoke new_cmdWait()
public void add_cmdWait(JZtxtcmdScript.CmdInvoke val)
public JZtxtcmdScript.CmdInvoke new_cmdStart()
public void add_cmdStart(JZtxtcmdScript.CmdInvoke val)
public JZtxtcmdScript.FileOpArg new_move()
public void add_move(JZtxtcmdScript.FileOpArg val)
public JZtxtcmdScript.FileOpArg new_copy()
public void add_copy(JZtxtcmdScript.FileOpArg val)
public JZtxtcmdScript.FileOpArg new_del()
public void add_del(JZtxtcmdScript.FileOpArg val)
public JZtxtcmdScript.JZcmditem new_cd()
public void add_cd(JZtxtcmdScript.JZcmditem val)
public JZtxtcmdScript.JZcmditem new_mkdir()
public void add_mkdir(JZtxtcmdScript.JZcmditem val)
public void set_name(java.lang.String name)
public void set_exitScript(int val)