public static class OutTextPreparer.DataTextPreparer
extends java.lang.Object
OutTextPreparer.createArgumentDataObj()
proper and associated to the out text.
The constructor of this class is not public, it should be only gotten with this routine.
setArgument(String, Object)
to set any named argument.Modifier and Type | Field and Description |
---|---|
(package private) java.lang.Object[] |
args
Array of all arguments.
|
(package private) java.util.Map<java.lang.String,java.lang.Object> |
argsByName
This is only to see the arguments for debug.
|
(package private) java.util.Map<java.lang.String,DataAccess.IntegerIx> |
argsIxByName
This is only to see the arguments for debug.
|
(package private) OutTextPreparer.DataTextPreparer[] |
argSub
Any <call in the pattern get the data for the called OutTextPreparer, but only ones, reused.
|
(package private) boolean |
bChecks |
(package private) CalculatorExpr.Data |
calcExprData
Set on first usage.
|
int |
debugIxCmd |
java.lang.String |
debugOtx |
(package private) java.lang.Object |
execObj
The instance where the <:exec:operation(...)> are located. null if not necessary.
|
(package private) java.util.Formatter |
formatter
Default use formatter for ENCLISH to be international.
|
(package private) java.lang.Appendable |
logExec
If this is not null, the line of the cmd is written into on certain cmds.
|
(package private) OutTextPreparer |
prep
The associated const data for OutText preparation used for
setArgument(String, Object) by name. |
(package private) java.lang.StringBuilder |
sbFormatted |
Constructor and Description |
---|
DataTextPreparer(OutTextPreparer prep)
Package private constructor invoked only in
OutTextPreparer.createArgumentDataObj() |
Modifier and Type | Method and Description |
---|---|
void |
setArgument(int ixArg,
java.lang.Object value)
User routine to set a argument with an index in order of the argument list with a value.
|
void |
setArgument(java.lang.String name,
java.lang.Object value)
User routine to set a named argument with a value.
|
boolean |
setArgumentOptional(java.lang.String name,
java.lang.Object value)
User routine to set a optional argument with a value.
|
void |
setCheck(boolean bChecks)
Switches check of some stuff on or off, especially <:type: check
|
void |
setDebug(java.lang.String patternName,
int ixCmd)
Sets a debug point.
|
void |
setExecObj(java.lang.Object data)
Sets an instance due to the given 'execClass' for the script.
|
void |
setLogCmdline(java.lang.Appendable log)
Sets an output channel to output the line on certain cmds.
|
final OutTextPreparer prep
setArgument(String, Object)
by name.java.lang.Object execObj
final java.lang.Object[] args
OutTextPreparer.nameVariables
with its value DataAccess.IntegerIx
.java.util.Map<java.lang.String,java.lang.Object> argsByName
final java.util.Map<java.lang.String,DataAccess.IntegerIx> argsIxByName
OutTextPreparer.DataTextPreparer[] argSub
CalculatorExpr.Data calcExprData
public java.lang.String debugOtx
public int debugIxCmd
java.lang.Appendable logExec
java.lang.StringBuilder sbFormatted
java.util.Formatter formatter
boolean bChecks
DataTextPreparer(OutTextPreparer prep)
OutTextPreparer.createArgumentDataObj()
public void setArgument(java.lang.String name, java.lang.Object value)
name
- argument name of the argument list given in the constructor
OutTextPreparer#OutTextPreparer(String, Object, String, String)
, 3. argment
or also given in the textual script.value
- any value for this argument.public boolean setArgumentOptional(java.lang.String name, java.lang.Object value)
name
- argument name of the argument list given in the constructor
OutTextPreparer#OutTextPreparer(String, Object, String, String)
, 3. argment
or also given in the textual script.value
- any value for this argument.public void setArgument(int ixArg, java.lang.Object value)
ixArg
- index of the argument starting with 0 for the first argument in the list.value
- any value for this argument.public void setLogCmdline(java.lang.Appendable log)
log
- public void setExecObj(java.lang.Object data)
data
- The instance must be proper to the 'execClass' argument of the constructors
respectively to the OutTextPreparer#readTemplateCreatePreparer(InputStream, String, Class, Map, String).
If it does not match, an exception is thrown while processing a non static <:exec:operation(...)>
public void setDebug(java.lang.String patternName, int ixCmd)
patternName
- Because the debug info is copied to called pattern, the name of the called pattern is possible here.ixCmd
- Use 0 to stop in the start cmd, see the commands with data debug, then decide.public void setCheck(boolean bChecks)
bCheck
- true check on
Hint for user: Set in anyway from a one time set boolean variable.