@Deprecated
public class Header2Reflection
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private class |
Header2Reflection.ConverterClass
Deprecated.
|
(package private) static class |
Header2Reflection.FieldTypeInfos
Deprecated.
This class holds some informations about a type of a element (attrubute).
|
(package private) static class |
Header2Reflection.FileIn
Deprecated.
|
private static class |
Header2Reflection.TypeEntry
Deprecated.
Informations about type read from Configfile.
|
Modifier and Type | Field and Description |
---|---|
private boolean |
bCheckNewness
Deprecated.
If true, generate only if at least one of the header files are newer then the generate.
|
(package private) BinOutPrep |
binOutPrep
Deprecated.
|
private boolean |
bNewFileReflectionTypesOut
Deprecated.
True if a new file for types should be created, false if append.
|
private java.lang.StringBuilder |
bufferOffsArray
Deprecated.
|
(package private) boolean |
c_only
Deprecated.
Parse only struct, no class.
|
(package private) MainCmdLogging_ifc |
console
Deprecated.
Aggregation to the Console implementation class.
|
private java.text.SimpleDateFormat |
dataFormat
Deprecated.
|
private java.util.Date |
dateNow
Deprecated.
The time-stamp of calling conversion.
|
private java.io.BufferedWriter |
fileAllC
Deprecated.
If setOutC is called, this writer is present, else it is null.
|
private java.io.BufferedWriter |
fileAllH
Deprecated.
If setOutC is called, this writer is present, else it is null.
|
(package private) boolean |
fileBinBigEndian
Deprecated.
|
(package private) boolean |
fileBinHex
Deprecated.
|
private java.io.BufferedWriter |
fileC
Deprecated.
created header and c file.
|
private java.io.BufferedWriter |
fileH
Deprecated.
created header and c file.
|
private java.io.BufferedWriter |
fileOffs
Deprecated.
If setOutOffset is called, this writer is present, else it is null.
|
private java.io.File |
fileReflectionBlockedTypes
Deprecated.
File-path of the file with the infos for blocked types and files.
|
private java.util.TreeMap<java.lang.String,Header2Reflection.TypeEntry> |
identifierRelacements
Deprecated.
|
(package private) java.util.Map<java.lang.String,java.lang.String> |
idxDefines
Deprecated.
|
(package private) java.lang.StringBuilder |
leaderTextC
Deprecated.
Text for leader and trailer in the offset- and C-Files.
|
(package private) java.lang.StringBuilder |
leaderTextH
Deprecated.
Text for leader and trailer in the offset- and C-Files.
|
(package private) java.lang.StringBuilder |
leaderTextOffs
Deprecated.
Text for leader and trailer in the offset- and C-Files.
|
private java.util.List<Header2Reflection.FileIn> |
listFileIn
Deprecated.
Input files.
|
private ZbnfParser |
parser
Deprecated.
The parser.
|
private static java.lang.String |
scalarTypes
Deprecated.
|
private int |
secondsAfter1970Now
Deprecated.
|
private java.lang.String |
sExprOffsBase
Deprecated.
The pattern for the expression for base address, which is generated to calculate the offset value in the C-code.
|
private java.lang.String |
sExprOffsCppObj
Deprecated.
The pattern for the expression for Object-Base-address for C++, which is generated to calculate the offset value in the C-code.
|
private java.lang.String |
sExprOffsField
Deprecated.
The pattern for the expression for field offset, which is generated to calculate the offset value in the C-code.
|
private java.lang.String |
sExprOffsObj
Deprecated.
The pattern for the expression for Object-Base-address in C, which is generated to calculate the offset value in the C-code.
|
private java.lang.String |
sExprOffsObjJcpp
Deprecated.
The pattern for the expression for Object-Base-address for C++, which is generated to calculate the offset value in the C-code.
|
private java.lang.String |
sExprSizeType
Deprecated.
The pattern for the expression for the size of a type.
|
private java.lang.String[] |
sExprTokens
Deprecated.
|
private java.lang.String |
sFileAllC
Deprecated.
Path and Name of the only one output.c and output.h-file.
|
private java.lang.String |
sFileBin
Deprecated.
Path and Name of the binary output.h-file.
|
private java.lang.String |
sFileOffset
Deprecated.
Path and Name of the offset.c file.
|
private java.lang.String |
sFileReflectionTypes
Deprecated.
File-path of the file with the type info for Reflection generating.
|
private java.lang.String |
sFileReflectionTypesOut
Deprecated.
File-path of the file with the type info to write out from Reflection generating useable for next pass.
|
private java.lang.String |
sFileZbnf
Deprecated.
|
private java.lang.String |
sLinefeed
Deprecated.
|
private java.lang.String |
sOffsetDirAbs
Deprecated.
|
private java.lang.String |
sOutDir
Deprecated.
Cmdline-argument, set on -o option.
|
private java.lang.String |
sOutDirAbs
Deprecated.
|
private java.lang.String[] |
sPlaceholderType
Deprecated.
|
(package private) static java.lang.String |
sSyntaxReflectionTypes
Deprecated.
|
(package private) java.lang.StringBuilder |
trailerTextC
Deprecated.
Text for leader and trailer in the offset- and C-Files.
|
(package private) java.lang.StringBuilder |
trailerTextH
Deprecated.
Text for leader and trailer in the offset- and C-Files.
|
(package private) java.lang.StringBuilder |
trailerTextOffs
Deprecated.
Text for leader and trailer in the offset- and C-Files.
|
private java.util.TreeMap<java.lang.String,Header2Reflection.TypeEntry> |
types
Deprecated.
|
private java.util.TreeMap<java.lang.String,java.util.List<Header2Reflection.TypeEntry>> |
typesByFilename
Deprecated.
|
static java.lang.String |
version
Deprecated.
Version, history and license.
|
Constructor and Description |
---|
Header2Reflection(MainCmdLogging_ifc report)
Deprecated.
The Constructor is called after parsing CmdLine arguments.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addInputFilemask(java.lang.String sMask)
Deprecated.
Adds a path/file or path/mask to the
listFileIn . |
void |
execute()
Deprecated.
|
private java.lang.StringBuilder |
getLeaderTrailerText(ZbnfParseResultItem zbnfResult,
java.lang.StringBuilder lines)
Deprecated.
|
private boolean |
init()
Deprecated.
|
private boolean |
readBlockedFilesAndTypes()
Deprecated.
Reads all types from the file given with -r: argument in cmdline or setted with setReflectionTypes(filepath);
|
private void |
searchAndTranslateClassDef(ZbnfParseResultItem zbnfParent,
java.lang.String sCLASS_C_name,
java.lang.String sFileNameRelative)
Deprecated.
|
void |
setCfg(java.lang.String sFile)
Deprecated.
|
void |
setCheckNewness(boolean value)
Deprecated.
|
void |
setConfig(java.lang.String sFile)
Deprecated.
|
boolean |
setOutBin(java.lang.String sFile,
boolean bigEndian,
boolean hexBin)
Deprecated.
|
boolean |
setOutC(java.lang.String sFile)
Deprecated.
|
boolean |
setOutDir(java.lang.String sFile)
Deprecated.
|
boolean |
setOutOffset(java.lang.String sFile)
Deprecated.
|
void |
setReflectionBlockedTypes(java.lang.String sFile)
Deprecated.
|
void |
setReflectionTypes(java.lang.String sFile)
Deprecated.
|
void |
setReflectionTypesOut(java.lang.String sFile,
boolean bNew)
Deprecated.
|
void |
setSyntax(java.lang.String sFileZbnf)
Deprecated.
|
(package private) void |
stop()
Deprecated.
Helper method for debugging.
|
private void |
translate(java.io.File headerFile,
java.lang.String sFilePath)
Deprecated.
|
private void |
writeReflectionTypes()
Deprecated.
|
private boolean |
XXXreadReflectionTypes()
Deprecated.
Reads all types from the file given with -r: argument in cmdline or setted with setReflectionTypes(filepath);
|
public static final java.lang.String version
sExprSizeType
from the ctrl file.
idxDefines
,
conditional #ifdef ... in headerfile only taken if #define is known.
org.vishia.zbatch.ZbatchExecuter
in this class.
That algorithm are able to use independent in some applications.
MainCmdLogging_ifc console
private final java.util.List<Header2Reflection.FileIn> listFileIn
private ZbnfParser parser
private java.lang.String sFileZbnf
private java.lang.String sFileReflectionTypes
private java.lang.String sFileReflectionTypesOut
private java.io.File fileReflectionBlockedTypes
private boolean bNewFileReflectionTypesOut
boolean c_only
private java.lang.String sFileAllC
private java.lang.String sFileBin
private boolean bCheckNewness
boolean fileBinBigEndian
boolean fileBinHex
private java.lang.String sFileOffset
private java.lang.String sOutDir
private java.lang.String sOutDirAbs
private java.lang.String sOffsetDirAbs
private final java.lang.String[] sExprTokens
private final java.lang.String[] sPlaceholderType
private java.lang.String sExprOffsField
private java.lang.String sExprOffsBase
private java.lang.String sExprOffsObj
private java.lang.String sExprOffsCppObj
private java.lang.String sExprOffsObjJcpp
private java.lang.String sExprSizeType
private final java.lang.String sLinefeed
java.lang.StringBuilder leaderTextC
java.lang.StringBuilder trailerTextC
java.lang.StringBuilder leaderTextH
java.lang.StringBuilder trailerTextH
java.lang.StringBuilder leaderTextOffs
java.lang.StringBuilder trailerTextOffs
private static final java.lang.String scalarTypes
static final java.lang.String sSyntaxReflectionTypes
private final java.util.TreeMap<java.lang.String,Header2Reflection.TypeEntry> identifierRelacements
private final java.util.TreeMap<java.lang.String,Header2Reflection.TypeEntry> types
private final java.util.TreeMap<java.lang.String,java.util.List<Header2Reflection.TypeEntry>> typesByFilename
private java.io.BufferedWriter fileH
private java.io.BufferedWriter fileC
private java.io.BufferedWriter fileAllC
private java.io.BufferedWriter fileAllH
private java.io.BufferedWriter fileOffs
private java.lang.StringBuilder bufferOffsArray
private java.util.Date dateNow
private int secondsAfter1970Now
private final java.text.SimpleDateFormat dataFormat
BinOutPrep binOutPrep
final java.util.Map<java.lang.String,java.lang.String> idxDefines
public Header2Reflection(MainCmdLogging_ifc report)
public void setSyntax(java.lang.String sFileZbnf)
public void setCheckNewness(boolean value)
public void setReflectionTypes(java.lang.String sFile)
public void setReflectionTypesOut(java.lang.String sFile, boolean bNew)
public void setReflectionBlockedTypes(java.lang.String sFile)
public void setConfig(java.lang.String sFile)
public void setCfg(java.lang.String sFile)
public boolean setOutC(java.lang.String sFile)
public boolean setOutOffset(java.lang.String sFile)
public boolean setOutBin(java.lang.String sFile, boolean bigEndian, boolean hexBin)
public boolean setOutDir(java.lang.String sFile)
public boolean addInputFilemask(java.lang.String sMask)
listFileIn
.sMask
- public void execute() throws java.lang.Exception
java.lang.Exception
private boolean readBlockedFilesAndTypes() throws java.text.ParseException, java.nio.charset.IllegalCharsetNameException, java.nio.charset.UnsupportedCharsetException, java.io.FileNotFoundException, java.io.IOException
java.text.ParseException
java.nio.charset.IllegalCharsetNameException
java.nio.charset.UnsupportedCharsetException
java.io.FileNotFoundException
java.io.IOException
private java.lang.StringBuilder getLeaderTrailerText(ZbnfParseResultItem zbnfResult, java.lang.StringBuilder lines)
private boolean XXXreadReflectionTypes() throws java.text.ParseException, java.nio.charset.IllegalCharsetNameException, java.nio.charset.UnsupportedCharsetException, java.io.FileNotFoundException, java.io.IOException
java.text.ParseException
java.nio.charset.IllegalCharsetNameException
java.nio.charset.UnsupportedCharsetException
java.io.FileNotFoundException
java.io.IOException
private void writeReflectionTypes() throws java.io.IOException
java.io.IOException
private boolean init() throws java.nio.charset.IllegalCharsetNameException, java.nio.charset.UnsupportedCharsetException, java.io.FileNotFoundException, java.io.IOException
java.nio.charset.IllegalCharsetNameException
java.nio.charset.UnsupportedCharsetException
java.io.FileNotFoundException
java.io.IOException
private void translate(java.io.File headerFile, java.lang.String sFilePath) throws java.nio.charset.IllegalCharsetNameException, java.nio.charset.UnsupportedCharsetException, java.io.FileNotFoundException, java.io.IOException, java.text.ParseException
java.nio.charset.IllegalCharsetNameException
java.nio.charset.UnsupportedCharsetException
java.io.FileNotFoundException
java.io.IOException
java.text.ParseException
private void searchAndTranslateClassDef(ZbnfParseResultItem zbnfParent, java.lang.String sCLASS_C_name, java.lang.String sFileNameRelative) throws java.io.IOException
java.io.IOException
void stop()