public class GenerateFile extends java.lang.Object
Java2C_Main.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
sVersion
Version, history and license.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEnhancedRefType(java.lang.String sRefType)
If a type is used as enhanced reference in the code of the class, it is noted here.
|
void |
addIncludeC(java.lang.String sFileName,
java.lang.String comment)
Adds a type to include the type-correspondent h-file in the c-file.
|
void |
addIncludeH(java.lang.String sFileName,
java.lang.String comment)
Adds a type to include the type-correspondent h-file in the h-file.
|
void |
addMtblRefType(java.lang.String sRefType,
char intension)
If a type is used as method-table- reference in the code of the class, it is noted here.
|
void |
addStructForwardType(org.vishia.java2C.ClassData type) |
void |
setFirstPass(boolean isFirstPass) |
java.lang.String |
toString() |
void |
writeCdefs(java.lang.StringBuilder content)
Adds a text to the C-definition-code
|
void |
writeClassC(java.lang.String content)
Adds a text to the C-code
|
void |
writeClassC(java.lang.StringBuilder content)
Adds a text to the C-code
|
void |
writeClassH(java.lang.String line)
Adds a text to the Headerfile-code
|
void |
writeHdefs(java.lang.StringBuilder content)
Adds a text to the H-code
|
public static final java.lang.String sVersion
#include "Fwc/fw_MemC.h" in any header.
FirstPass.gatherAllDefinitions() before FirstPass.runFirstPass2(StringBuilder).
public void setFirstPass(boolean isFirstPass)
public void writeCdefs(java.lang.StringBuilder content)
content - the content with the necessary line feeds.public void writeHdefs(java.lang.StringBuilder content)
content - the content with the necessary line feeds.public void writeClassC(java.lang.String content)
iWriteContent.writeClassC(java.lang.String)public void writeClassC(java.lang.StringBuilder content)
iWriteContent.writeClassC(java.lang.StringBuilder)public void writeClassH(java.lang.String line)
iWriteContent.writeClassH(java.lang.String)public void addIncludeC(java.lang.String sFileName, java.lang.String comment)
sFileName - The file path without .hcomment - a commment written after the include line.public void addIncludeH(java.lang.String sFileName, java.lang.String comment)
public void addEnhancedRefType(java.lang.String sRefType)
sRefType - The referenced type.public void addMtblRefType(java.lang.String sRefType, char intension)
sRefType - The referenced type.public void addStructForwardType(org.vishia.java2C.ClassData type)
public java.lang.String toString()
toString in class java.lang.Object