public static class JZtxtcmdScript.JZcmditem extends java.lang.Object implements SetLineColumn_ifc
statementlist
, dataAccess
,
expression
or textArg
is set.Modifier and Type | Field and Description |
---|---|
protected char |
conversion
Designation of a conversion from given value to a destination instance.
|
JZtxtcmdScript.JZcmdDataAccess |
dataAccess
Any access to an Object, maybe content of a variable, maybe access to any Java data,
maybe invocation of a Java routine.
|
protected char |
elementType
Designation what presents the element.
|
CalculatorExpr |
expression
Any calculation of data.
|
(package private) JZtxtcmdScript.StatementList |
parentList
Necessary for throwing exceptions with the
JZtxtcmdScript.StatementList.srcFile in its text. |
(package private) static java.lang.String |
sindentA |
(package private) int |
srcColumn
Hint to the source of this parsed argument or statement.
|
(package private) java.lang.String |
srcFile |
(package private) int |
srcLine
Hint to the source of this parsed argument or statement.
|
JZtxtcmdScript.StatementList |
statementlist
If need, sub statements, maybe null.
|
(package private) JZtxtcmdScript.JZcmditem |
subitem
Any special sub item if necessary, see conversion.
|
java.lang.String |
textArg
From Zbnf <""?
|
mColumn, mFile, mLine
Constructor and Description |
---|
JZcmditem(JZtxtcmdScript.StatementList parentList,
char whatisit) |
Modifier and Type | Method and Description |
---|---|
void |
add_boolExpr(JZtxtcmdScript.JZcmdCalculatorExpr val) |
void |
add_dataAccess(JZtxtcmdScript.JZcmdDataAccess val) |
void |
add_dataStruct(JZtxtcmdScript.StatementList val) |
void |
add_Filepath(JZtxtcmdScript.JZcmditem val) |
void |
add_filesetAccess(JZtxtcmdScript.AccessFilesetname val) |
void |
add_numExpr(JZtxtcmdScript.JZcmdCalculatorExpr val) |
void |
add_statementBlock(JZtxtcmdScript.StatementList val) |
void |
add_textExpr(JZtxtcmdScript.StatementList val) |
private void |
checkEmpty() |
(package private) char |
elementType() |
protected boolean |
isEmpty() |
JZtxtcmdScript.JZcmdCalculatorExpr |
new_boolExpr() |
JZtxtcmdScript.JZcmdDataAccess |
new_dataAccess() |
JZtxtcmdScript.StatementList |
new_dataStruct()
For ZbnfJavaOutput: Creates a statementlist for a dataStruct.
|
JZtxtcmdScript.JZcmditem |
new_Filepath() |
JZtxtcmdScript.AccessFilesetname |
new_filesetAccess() |
JZtxtcmdScript.JZcmdCalculatorExpr |
new_numExpr() |
JZtxtcmdScript.StatementList |
new_statementBlock()
For ZbnfJavaOutput: All block statements in if, while etc.
|
JZtxtcmdScript.StatementList |
new_textExpr(ZbnfParseResultItem zbnfItem)
Define the whole item as a statement block which is a text expression.
|
javax.script.ScriptException |
scriptException(java.lang.String text)
Builds a ScriptException with the given text and the srcFile, line, column of this item.
|
void |
set_plainText(java.lang.String text) |
void |
set_text(java.lang.String text) |
void |
setLineColumnFile(int line,
int column,
java.lang.String sFile) |
int |
setLineColumnFileMode()
Returns wheter only the line or only the column should be set.
|
JZtxtcmdScript.StatementList |
statementlist() |
java.lang.String |
toString() |
(package private) void |
writeStruct(int indent,
java.lang.Appendable out)
Writes a complete readable information about this item with all nested information.
|
(package private) void |
writeStructAdd(int indent,
java.lang.Appendable out)
Prepares information in following lines if necessary.
|
(package private) void |
writeStructLine(java.lang.Appendable u)
Prepares the information about the JZcmditem in one line.
|
void |
XXXadd_File(JZtxtcmdScript.JZcmditem val) |
JZtxtcmdScript.JZcmditem |
XXXnew_File()
For ZbnfJavaOutput: An < objExpr> is designated as "File : < textValue?
|
protected char elementType
c | what is it |
---|---|
t | simple constant text |
n | simple newline text |
T | textual output to any variable or file |
l | add to list |
i | content of the input, textArg describes the build-prescript,
see ZmakeGenerator#getPartsFromFilepath(org.vishia.zmake.ZmakeUserScript.Filepath, String) |
o | content of the output, textArg describes the build-prescript,
see ZmakeGenerator#getPartsFromFilepath(org.vishia.zmake.ZmakeUserScript.Filepath, String) |
e | A datatext, from <*expression> or such. |
XXXg | content of a data path starting with an internal variable (reference) or value of the variable. |
s | call of a subtext by name. textArg ==null, statementlist == null. |
j | call of a static java method. #identArgJbat ==its name, statementlist == null. |
c | cmd line invocation. |
d | cd change current directory. |
J | Object variable #identArgJbat ==its name, statementlist == null. |
P | Pipe variable, textArg contains the name of the variable |
U | Buffer variable, textArg contains the name of the variable |
S | String variable, textArg contains the name of the variable |
K | Numeric variable, textArg contains the name of the variable |
Q | Bool variable, textArg contains the name of the variable |
L | Container variable, a list |
W | Opened file, a Writer in Java |
F | FilePath |
G | FileSet |
= | assignment of an expression to a variable. |
B | statement block |
C | <:for:path> statementlist contains build.script for any list element, |
E | <:else> statementlist contains build.script for any list element, |
?? F | <:if:condition:path> statementlist contains build.script for any list element, |
?? G | <:elsif:condition:path> statementlist contains build.script for any list element, |
w | while(cond) statementlist contains build.script for any list element, |
b | break |
? | <:if:...?gt> compare-operation in if |
D | debug: break at a defined break point in JZtxtcmdExecuter |
H | debugOp: break on invocation of an operation (method) in DataAccess before evaluating the arguments or if operation not found. |
Z | a target, |
Y | the file |
xxxX | a subtext definition |
protected char conversion
FilePath
'G' to JZtxtcmdScript.UserFileset
int srcLine
int srcColumn
java.lang.String srcFile
final JZtxtcmdScript.StatementList parentList
JZtxtcmdScript.StatementList.srcFile
in its text.public JZtxtcmdScript.StatementList statementlist
expression
or with dataAccess
or it is a simple textArg
.public JZtxtcmdScript.JZcmdDataAccess dataAccess
public CalculatorExpr expression
JZtxtcmdScript.JZcmditem subitem
public java.lang.String textArg
static java.lang.String sindentA
JZcmditem(JZtxtcmdScript.StatementList parentList, char whatisit)
public void setLineColumnFile(int line, int column, java.lang.String sFile)
setLineColumnFile
in interface SetLineColumn_ifc
public int setLineColumnFileMode()
setLineColumnFileMode
in interface SetLineColumn_ifc
char elementType()
public JZtxtcmdScript.StatementList statementlist()
private void checkEmpty()
protected boolean isEmpty()
public JZtxtcmdScript.JZcmdDataAccess new_dataAccess()
public void add_dataAccess(JZtxtcmdScript.JZcmdDataAccess val)
public void set_plainText(java.lang.String text)
public void set_text(java.lang.String text)
public JZtxtcmdScript.StatementList new_dataStruct()
objExpr::= \\{\\} | <\"\"?text> | .... dataStruct::= { ; }.\n"
public void add_dataStruct(JZtxtcmdScript.StatementList val)
public JZtxtcmdScript.StatementList new_statementBlock()
ifBlock::= () \\{ \\} . ... statementBlock::= { }."
public void add_statementBlock(JZtxtcmdScript.StatementList val)
public JZtxtcmdScript.StatementList new_textExpr(ZbnfParseResultItem zbnfItem)
JZtxtcmdScript.StatementList.new_textExpr(ZbnfParseResultItem)
: There such an item
is declared inside a longer statement list. The difference is less, both have the same effect.
This list does only contain text expression statements.public void add_textExpr(JZtxtcmdScript.StatementList val)
public JZtxtcmdScript.JZcmdCalculatorExpr new_numExpr()
public void add_numExpr(JZtxtcmdScript.JZcmdCalculatorExpr val)
public JZtxtcmdScript.JZcmdCalculatorExpr new_boolExpr()
public void add_boolExpr(JZtxtcmdScript.JZcmdCalculatorExpr val)
public JZtxtcmdScript.JZcmditem XXXnew_File()
public void XXXadd_File(JZtxtcmdScript.JZcmditem val)
public JZtxtcmdScript.JZcmditem new_Filepath()
public void add_Filepath(JZtxtcmdScript.JZcmditem val)
public JZtxtcmdScript.AccessFilesetname new_filesetAccess()
public void add_filesetAccess(JZtxtcmdScript.AccessFilesetname val)
public javax.script.ScriptException scriptException(java.lang.String text)
text
- message of the ScriptExceptionfinal void writeStruct(int indent, java.lang.Appendable out) throws java.io.IOException
indent
- out
- java.io.IOException
void writeStructAdd(int indent, java.lang.Appendable out) throws java.io.IOException
indent
- out
- java.io.IOException
void writeStructLine(java.lang.Appendable u)
toString()
and in writeStruct(int, Appendable)
.
It should be called in all overridden routines with super.writeStructLine
for the derived statement types.u
- java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object