public class XobjList extends Xobject implements java.lang.Iterable<Xobject>, XobjContainer
OPT_ATOMIC_STMT, OPT_DELAYED_DECL, OPT_F_MODULE_VAR, OPT_GCC_EXTENSION, OPT_GCC_SYNTAX, OPT_GCC_THREAD, OPT_GLOBAL, OPT_INDUCTION_VAR, OPT_PARSED, OPT_REWRITTED_XMP, OPT_SYNTAX_MODIFIED, OPT_TO_BE_FCOMMON, OPT_USED_IN_ARRAY_SIZE, parent
id
FINDKIND_ANY, FINDKIND_COMMON, FINDKIND_TAGNAME, FINDKIND_TYPEDEF_NAME, FINDKIND_VAR
Constructor and Description |
---|
XobjList()
Constructor for the empty XobjList with Xcode.LIST
|
XobjList(Xcode code)
Constructor with only code
|
XobjList(Xcode code,
XobjArgs a)
Constructor with code and argument
|
XobjList(Xcode code,
Xobject... a)
Constructor with one argument
|
XobjList(Xcode code,
Xtype type)
Constructor for the empty XobjList with code and type
|
XobjList(Xcode code,
Xtype type,
XobjArgs a)
Constructor for the argument list
|
XobjList(Xcode code,
Xtype type,
Xobject... a)
Constructor with one argument
|
Modifier and Type | Method and Description |
---|---|
void |
add(Xobject a)
Add object at the end of list
|
Xobject |
cfold(Block block) |
void |
clear()
remove all arguments
|
void |
cons(Xobject a) |
Xobject |
copy()
Dummy method at base class, it causes exception.
|
boolean |
equals(Xobject x)
check the equality of two Xobjects.
|
Ident |
find(java.lang.String name,
int find_kind)
find symbol object.
|
Ident |
findIdent(java.lang.String name,
int find_kind) |
Xobject |
getArg(int i)
Get the i-th argument
|
Xobject |
getArgOrNull(int i)
Get the i-th argument or null if no i-th argument
|
XobjArgs |
getArgs()
Get the argument list
|
Xobject |
getArgWithKeyword(java.lang.String keyword,
int i)
Get the argument that has the keyword or the i-th argument.
|
int |
getFrank(Block block)
Get rank in the term of Fortran.
|
Ident |
getIdent(java.lang.String name) |
LineNo |
getLineNo()
get the line number information.
|
Ident |
getMember(java.lang.String name) |
java.lang.String |
getName()
Returns Name of Xobject.
|
Ident |
getStructTypeName(Xtype type) |
Xobject |
getSubscripts() |
Xobject |
getTail()
Gets tail of list
|
boolean |
has(Xobject x) |
boolean |
hasIdent(java.lang.String name) |
boolean |
hasNullArg() |
void |
insert(Xobject a)
Inserty object at the first of list
|
boolean |
isEmpty()
Returns true if no argument in XobjArgs.
|
java.util.Iterator<Xobject> |
iterator() |
Xobject |
left()
returns the left argument (the first argument)
|
void |
mergeList(XobjList l) |
int |
Nargs()
Return the number of arugments.
|
Xobject |
operand()
returns the first argument
|
void |
remove(Xobject a) |
Xobject |
removeArgs(XobjArgs a)
Remove the specified argument in XobjArgs
Dummy method at base class, it causes exception.
|
Xobject |
removeFirstArgs()
Remove the first argument in XobjArgs
Dummy method at base class, it causes exception.
|
Xobject |
removeLastArgs()
Remove the last argument in XobjArgs
Dummy method at base class, it causes exception.
|
void |
reverse() |
Xobject |
right()
returns the right argment (the second argument)
|
void |
setArg(int i,
Xobject x)
Sets the i-th argument
|
void |
setArgs(XobjArgs l)
Sets the argument list
|
void |
setLeft(Xobject x)
sets the left (first) argument
|
void |
setLineNo(LineNo ln)
set the line number information.
|
void |
setOperand(Xobject x)
sets the first argument
|
void |
setParentRecursively(IXobject parent)
set parent IXobject.
|
void |
setRight(Xobject x)
sets the right (second) argument
|
java.lang.String |
toString()
convert to the printable string
|
bottomupIterator, canGetInt, copyTo, enter, equals, extent, extent, extents, extents, findCommonIdent, findVarIdent, getFloat, getFloatString, getIdentList, getInt, getLong, getLongHigh, getLongLow, getOptionalFlag, getOptionalFlags, getParent, getScope, getString, getSym, isArray, isArrayAddr, isAsgOp, isAtomicStmt, isBinaryOp, isCglobalVarOrFvar, isConstant, isDelayedDecl, isEmptyList, isExternalCode, isFmoduleVar, isGccExtension, isGccSyntax, isGccThread, isIndexRange, isInductionVar, isIntConstant, isLocalOrParamVar, isLocalOrParamVarAddr, isLogicalOp, isOneConstant, isParsed, isPragma, isRewrittedByXmp, isScopeGlobal, isScopeLocal, isScopeParam, isSet, isSyntaxModified, isTempVar, isTerminal, isToBeFcommon, isUnaryOp, isVarAddr, isVariable, isVarRef, isZeroConstant, lbound, lbound, lbounds, lbounds, newCode, Opcode, OpcodeName, setIsAtomicStmt, setIsDelayedDecl, setIsFmoduleVar, setIsGccExtension, setIsGccSyntax, setIsGccThread, setIsGlobal, setIsInductionVar, setIsParsed, setIsRewrittedByXmp, setIsSyntaxModified, setIsToBeFcommon, setName, setOptionalFlag, setOptionalFlags, setScope, setType, topdownIterator, Type, ubound, ubound, ubounds, ubounds
getProp, getProperties, Id, remProp, remProperties, setId, setProp, setProperties
public XobjList()
public XobjList(Xcode code, Xtype type)
public XobjList(Xcode code)
public void cons(Xobject a)
public void add(Xobject a)
add
in interface XobjContainer
add
in class Xobject
public void remove(Xobject a)
public void insert(Xobject a)
insert
in interface XobjContainer
insert
in class Xobject
public Xobject left()
public Xobject right()
public void setOperand(Xobject x)
setOperand
in class Xobject
public void setLeft(Xobject x)
public void setRight(Xobject x)
public Xobject removeArgs(XobjArgs a)
Xobject
removeArgs
in class Xobject
public Xobject removeFirstArgs()
Xobject
removeFirstArgs
in class Xobject
public Xobject removeLastArgs()
Xobject
removeLastArgs
in class Xobject
public void clear()
public Xobject getArgOrNull(int i)
getArgOrNull
in class Xobject
public Xobject getArgWithKeyword(java.lang.String keyword, int i)
public void setArg(int i, Xobject x)
public void setLineNo(LineNo ln)
public LineNo getLineNo()
public Xobject copy()
Xobject
public boolean equals(Xobject x)
public java.lang.String getName()
Xobject
public int getFrank(Block block)
Xobject
public Xobject getSubscripts()
getSubscripts
in class Xobject
public void reverse()
public boolean isEmpty()
Xobject
public java.lang.String toString()
public java.util.Iterator<Xobject> iterator()
iterator
in interface java.lang.Iterable<Xobject>
public void setParentRecursively(IXobject parent)
IXobject
setParentRecursively
in interface IXobject
setParentRecursively
in class Xobject
public Ident find(java.lang.String name, int find_kind)
IXobject
public Ident findIdent(java.lang.String name, int find_kind)
public boolean has(Xobject x)
public boolean hasIdent(java.lang.String name)
public Ident getIdent(java.lang.String name)
public void mergeList(XobjList l)
public boolean hasNullArg()
hasNullArg
in class Xobject