public class XobjectFile extends XobjectDefEnv
Modifier and Type | Field and Description |
---|---|
boolean |
debugFlag |
static boolean |
gcc_huge_common_bug |
protected java.util.HashMap<java.lang.String,Xtype> |
typeIdTable |
defs, identList, parent
id
FINDKIND_ANY, FINDKIND_COMMON, FINDKIND_TAGNAME, FINDKIND_TYPEDEF_NAME, FINDKIND_VAR
Constructor and Description |
---|
XobjectFile()
default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addHeaderLine(java.lang.String s) |
void |
addTailerLine(java.lang.String s) |
void |
addType(Xtype type) |
void |
collectAllTypes() |
Ident |
declExternIdent(java.lang.String name,
Xtype t) |
Ident |
declGlobalIdent(java.lang.String name,
Xtype t)
Find the global identifer with name and type, and return Ident.
|
Ident |
declStaticIdent(java.lang.String name,
Xtype t) |
Xtype |
findType(java.lang.String tid) |
void |
fixupTypeRef() |
java.lang.String |
genExportSym(java.lang.String leader,
java.lang.String parentFuncName) |
java.lang.String |
genSym(java.lang.String leader) |
java.lang.String |
getCompilerInfo() |
java.util.List<java.lang.String> |
getHeaderLines() |
java.lang.String |
getLanguageAttribute() |
java.lang.String |
getSourceFileName()
Return source file name
|
java.util.List<java.lang.String> |
getTailerLines() |
java.lang.String |
getTime() |
java.util.List<Xtype> |
getTypeList() |
java.lang.String |
getVersion() |
void |
Output(java.io.Writer fout) |
void |
setProgramAttributes(java.lang.String sourceFileName,
java.lang.String language,
java.lang.String compilerInfo,
java.lang.String version,
java.lang.String time) |
add, add, addAfter, enter, find, findIdent, findIdent, findIdent, findVarIdent, getDefs, getGlobalIdentList, getLineNo, getParent, getParentFile, insert, insert, insertBefore, iterateDef, iterateFuncDef, iterator, setIdentList, setParentRecursively
getProp, getProperties, Id, remProp, remProperties, setId, setProp, setProperties
protected java.util.HashMap<java.lang.String,Xtype> typeIdTable
public boolean debugFlag
public static boolean gcc_huge_common_bug
public java.lang.String getSourceFileName()
public java.lang.String getCompilerInfo()
public java.lang.String getTime()
public java.lang.String getVersion()
public java.lang.String getLanguageAttribute()
public void setProgramAttributes(java.lang.String sourceFileName, java.lang.String language, java.lang.String compilerInfo, java.lang.String version, java.lang.String time)
public Ident declGlobalIdent(java.lang.String name, Xtype t)
public java.lang.String genExportSym(java.lang.String leader, java.lang.String parentFuncName)
public java.lang.String genSym(java.lang.String leader)
public Xtype findType(java.lang.String tid)
public void fixupTypeRef()
public void addHeaderLine(java.lang.String s)
public java.util.List<java.lang.String> getHeaderLines()
public void addTailerLine(java.lang.String s)
public java.util.List<java.lang.String> getTailerLines()
public void Output(java.io.Writer fout)
public void collectAllTypes()
public java.util.List<Xtype> getTypeList()
public void addType(Xtype type)