public class XobjectDefEnv extends PropObject implements java.lang.Iterable<XobjectDef>, IXobject, XobjectVisitable, XobjContainer
Modifier and Type | Field and Description |
---|---|
protected java.util.LinkedList<XobjectDef> |
defs |
protected Xobject |
identList |
protected XobjectDefEnv |
parent |
id
FINDKIND_ANY, FINDKIND_COMMON, FINDKIND_TAGNAME, FINDKIND_TYPEDEF_NAME, FINDKIND_VAR
Constructor and Description |
---|
XobjectDefEnv() |
XobjectDefEnv(Xobject identList) |
Modifier and Type | Method and Description |
---|---|
void |
add(Xobject x) |
void |
add(XobjectDef s) |
void |
addAfter(XobjectDef pre,
XobjectDef s) |
boolean |
enter(XobjectVisitor visitor) |
IXobject |
find(java.lang.String name,
int kind)
find symbol object.
|
Ident |
findIdent(Ident id) |
Ident |
findIdent(java.lang.String name) |
Ident |
findIdent(java.lang.String name,
int kind) |
Ident |
findVarIdent(java.lang.String name) |
java.util.List<XobjectDef> |
getDefs() |
Xobject |
getGlobalIdentList()
Retruns the list of the global identifiers in the object file.
|
ILineNo |
getLineNo()
get line number.
|
IXobject |
getParent()
get parent IXobject.
|
XobjectFile |
getParentFile() |
void |
insert(Xobject x) |
void |
insert(XobjectDef s) |
void |
insertBefore(XobjectDef post,
XobjectDef s) |
void |
iterateDef(XobjectDefVisitor op) |
void |
iterateFuncDef(XobjectDefVisitor op) |
java.util.Iterator<XobjectDef> |
iterator() |
void |
setIdentList(Xobject identList) |
void |
setParentRecursively(IXobject parent)
set parent IXobject.
|
getProp, getProperties, Id, remProp, remProperties, setId, setProp, setProperties
protected Xobject identList
protected java.util.LinkedList<XobjectDef> defs
protected XobjectDefEnv parent
public XobjectDefEnv()
public XobjectDefEnv(Xobject identList)
public void setIdentList(Xobject identList)
public java.util.List<XobjectDef> getDefs()
public void add(XobjectDef s)
public void add(Xobject x)
add
in interface XobjContainer
public void insert(XobjectDef s)
public void insertBefore(XobjectDef post, XobjectDef s)
public void addAfter(XobjectDef pre, XobjectDef s)
public void insert(Xobject x)
insert
in interface XobjContainer
public void iterateDef(XobjectDefVisitor op)
public void iterateFuncDef(XobjectDefVisitor op)
public IXobject find(java.lang.String name, int kind)
IXobject
public Ident findIdent(java.lang.String name)
public Ident findVarIdent(java.lang.String name)
public Ident findIdent(java.lang.String name, int kind)
public java.util.Iterator<XobjectDef> iterator()
iterator
in interface java.lang.Iterable<XobjectDef>
public boolean enter(XobjectVisitor visitor)
enter
in interface XobjectVisitable
public Xobject getGlobalIdentList()
public XobjectFile getParentFile()
public IXobject getParent()
IXobject
public void setParentRecursively(IXobject parent)
IXobject
setParentRecursively
in interface IXobject