public static class WriterCodegen.OtxWorkData
extends java.lang.Object
WriterCodegen class) allows parallel generation
of more as one output file, any parallel thread per file.
This may support multicore chip usage.| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
idlog
This is a number written to generated code and written in the Log for code generation.
|
java.util.Map<java.lang.String,java.lang.String> |
idxVariablesLocal
Index of all gathered variables to prevent twice definition.
|
LogMessage |
log |
WriterCodegen.MdlData |
mdl |
long |
mEventOperation
This is the mask for the evout (evinMdl) which triggers the current operation to generate.
|
int |
posInsertion
Position in the main StringBuilder where the sbLocalVariables should be inserted.
|
OutTextPreparer.WriteDst |
wrLocalVariables
A reused StringBuilder for some local variable which should be defined outside of if-branches,
though they are set inside some if branches.
|
| Constructor and Description |
|---|
OtxWorkData(WriterCodegen.MdlData data,
LogMessage log) |
| Modifier and Type | Method and Description |
|---|---|
void |
setEventOperation(Pin_FBcl evPin)
This special operation is called if the
mEventOperation is not set in WriterCodegen#prcEvchainOperation(EvtreeNode_FBcl, Evout_FBcl, Module_FBcl, OtxWorkData, org.vishia.util.OutTextPreparer.WriteDst)
especially this is specific code for the TEST FBlocks (Scope). |
public final LogMessage log
public java.lang.String idlog
public final WriterCodegen.MdlData mdl
public long mEventOperation
WriterCodegen#prcEvchainOperation(EvtreeNode_FBcl, Evout_FBcl, Module_FBcl, OtxWorkData, Appendable)
valid for this operation.public final OutTextPreparer.WriteDst wrLocalVariables
public final java.util.Map<java.lang.String,java.lang.String> idxVariablesLocal
WriterCodegen#insertPoint(OtxWorkData, StringBuilder),
should be used in the otx scripts in form: <public int posInsertion
WriterCodegen#insertPoint(OtxWorkData, StringBuilder)OtxWorkData(WriterCodegen.MdlData data, LogMessage log)
public void setEventOperation(Pin_FBcl evPin)
mEventOperation is not set in WriterCodegen#prcEvchainOperation(EvtreeNode_FBcl, Evout_FBcl, Module_FBcl, OtxWorkData, org.vishia.util.OutTextPreparer.WriteDst)
especially this is specific code for the TEST FBlocks (Scope).mask - proper gotten from environment.