public class Ident extends Xobject
Modifier and Type | Field and Description |
---|---|
static int |
AS_NONE |
static int |
AS_PRIVATE |
static int |
AS_PROTECTED |
static int |
AS_PUBLIC |
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 |
---|
Ident(int num,
Xtype type)
:
// for upper-compatibility
public Ident(String name, StorageClass stg_class, Xtype type, Xobject v,
boolean declared, int optionalFlags, Xobject gccAttrs,
int bit_field, Xobject bit_field_expr, Xobject enum_value,
Xobject fparam_value) {
this(name, stg_class, type, v,
declared, optionalFlags, gccAttrs,
bit_field, bit_field_expr, enum_value,
fparam_value, null);
}
|
Ident(java.lang.String name,
StorageClass stg_class,
Xtype type,
Xobject v,
boolean declared,
int optionalFlags,
Xobject gccAttrs,
int bit_field,
Xobject bit_field_expr,
Xobject enum_value,
Xobject fparam_value,
Xobject codimensions)
// for upper-compatibility
public Ident(String name, StorageClass stg_class, Xtype type, Xobject v,
int optionalFlags, Xobject gccAttrs,
int bit_field, Xobject bit_field_expr, Xobject enum_value,
Xobject fparam_value) {
this(name, stg_class, type, v,
optionalFlags, gccAttrs,
bit_field, bit_field_expr, enum_value,
fparam_value, null);
}
|
Ident(java.lang.String name,
StorageClass stg_class,
Xtype type,
Xobject v,
int optionalFlags,
Xobject gccAttrs,
int bit_field,
Xobject bit_field_expr,
Xobject enum_value,
Xobject fparam_value,
Xobject codimensions) |
Ident(java.lang.String name,
StorageClass stg_class,
Xtype type,
Xobject v,
VarScope scope) |
Ident(java.lang.String name,
StorageClass stg_class,
Xtype type,
Xobject v,
VarScope scope,
Xobject codimensions) |
Ident(java.lang.String name,
java.lang.String full_name,
int access,
boolean is_op,
StorageClass stg_class,
Xtype type,
Xobject v,
int optionalFlags,
Xobject gccAttrs,
int bit_field,
Xobject bit_field_expr,
Xobject enum_value,
Xobject fparam_value,
Xobject codimensions) |
Modifier and Type | Method and Description |
---|---|
void |
addFcommonVar(Ident id) |
static int |
as_num(java.lang.String access) |
Xobject |
Call() |
Xobject |
Call(Xobject args) |
Xobject |
callSubroutine() |
Xobject |
callSubroutine(Xobject args) |
Xobject |
cfold(Block block) |
Xobject |
copy()
Dummy method at base class, it causes exception.
|
void |
Declared()
Deprecated.
setIsDeclared()
|
boolean |
enter(XobjectVisitor visitor) |
boolean |
equals(Xobject x) |
static Ident |
Fident(java.lang.String name,
Xtype t) |
static Ident |
Fident(java.lang.String name,
Xtype t,
boolean isFcommon,
boolean isDecl,
XobjectFile xobjFile)
Fortran: create identifier.
|
static Ident |
Fident(java.lang.String name,
Xtype t,
boolean isFcommon,
XobjectFile xobjFile) |
static Ident |
Fident(java.lang.String name,
Xtype t,
XobjectFile xobjFile) |
static Ident |
FidentNotExternal(java.lang.String name,
Xtype t) |
java.lang.String |
getAccessStr() |
Xobject |
getAddr() |
java.lang.String |
getAlias() |
int |
getBitField() |
Xobject |
getBitFieldExpr() |
Xobject |
getCodimensions() |
int |
getCorank() |
BlockList |
getDeclaredBlock() |
Xobject |
getEnumValue() |
java.lang.String |
getFcommonName() |
java.util.List<Ident> |
getFcommonVars() |
java.lang.String |
getFdeclaredModule() |
Xobject |
getFparamValue() |
int |
getFrank() |
java.lang.String |
getFullName() |
Xobject |
getGccAttributes() |
java.lang.String |
getName()
Returns Name of Xobject.
|
Ident |
getOrigId() |
StorageClass |
getStorageClass() |
java.lang.String |
getString()
Returns string in XobjString.
|
java.lang.String |
getSym()
Returns Symbol name in XobjString.
|
Xobject |
getValue() |
Xobject |
Index(int i) |
Xobject |
Index(Xobject i) |
boolean |
isCoarray() |
boolean |
isDeclared() |
boolean |
isMemberAligned() |
boolean |
isOp() |
boolean |
isUsedInArraySize() |
static Ident |
Local(java.lang.String name,
Xtype t) |
static Ident |
Local(java.lang.String name,
Xtype t,
Xtype addrt) |
static Ident |
Param(java.lang.String name,
Xtype t) |
Xobject |
Ref() |
int |
regn() |
void |
saveOrigId() |
void |
setAlias(java.lang.String newAlias) |
void |
setBitField(int n) |
void |
setCodimensions(Xobject codimensions) |
void |
setDeclaredBlock(BlockList bl) |
void |
setFcommonName(java.lang.String name) |
void |
setFdeclaredModule(java.lang.String module_name) |
void |
setFparamValue(Xobject value) |
void |
setIsDeclared(boolean declared) |
void |
setIsUsedInArraySize(boolean enabled) |
void |
setMemberAligned(boolean flag) |
void |
setName(java.lang.String name)
Returns Name of Xobject.
|
void |
setStorageClass(StorageClass stg_class) |
void |
setValue(Xobject value) |
static Ident |
TempVar(int num,
Xtype t) |
java.lang.String |
toString() |
static Ident |
Var(java.lang.String name,
Xtype t,
Xtype addrt,
VarScope scope) |
static Ident |
Var(java.lang.String name,
Xtype t,
Xtype addrt,
VarScope scope,
Xobject codimensions) |
boolean |
wasCoarray() |
add, bottomupIterator, canGetInt, copyTo, equals, extent, extent, extents, extents, find, findCommonIdent, findVarIdent, getArg, getArgOrNull, getArgs, getFloat, getFloatString, getFrank, getIdentList, getInt, getLineNo, getLong, getLongHigh, getLongLow, getMember, getOptionalFlag, getOptionalFlags, getParent, getScope, getSubscripts, getTail, hasNullArg, insert, isArray, isArrayAddr, isAsgOp, isAtomicStmt, isBinaryOp, isCglobalVarOrFvar, isConstant, isDelayedDecl, isEmpty, 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, left, Nargs, newCode, Opcode, OpcodeName, operand, removeArgs, removeFirstArgs, removeLastArgs, right, setArg, setArgs, setIsAtomicStmt, setIsDelayedDecl, setIsFmoduleVar, setIsGccExtension, setIsGccSyntax, setIsGccThread, setIsGlobal, setIsInductionVar, setIsParsed, setIsRewrittedByXmp, setIsSyntaxModified, setIsToBeFcommon, setLeft, setLineNo, setOperand, setOptionalFlag, setOptionalFlags, setParentRecursively, setRight, setScope, setType, topdownIterator, Type, ubound, ubound, ubounds, ubounds
getProp, getProperties, Id, remProp, remProperties, setId, setProp, setProperties
public static final int AS_NONE
public static final int AS_PUBLIC
public static final int AS_PROTECTED
public static final int AS_PRIVATE
public Ident(java.lang.String name, StorageClass stg_class, Xtype type, Xobject v, VarScope scope)
public Ident(java.lang.String name, StorageClass stg_class, Xtype type, Xobject v, VarScope scope, Xobject codimensions)
public Ident(java.lang.String name, StorageClass stg_class, Xtype type, Xobject v, int optionalFlags, Xobject gccAttrs, int bit_field, Xobject bit_field_expr, Xobject enum_value, Xobject fparam_value, Xobject codimensions)
public Ident(java.lang.String name, java.lang.String full_name, int access, boolean is_op, StorageClass stg_class, Xtype type, Xobject v, int optionalFlags, Xobject gccAttrs, int bit_field, Xobject bit_field_expr, Xobject enum_value, Xobject fparam_value, Xobject codimensions)
public Ident(java.lang.String name, StorageClass stg_class, Xtype type, Xobject v, boolean declared, int optionalFlags, Xobject gccAttrs, int bit_field, Xobject bit_field_expr, Xobject enum_value, Xobject fparam_value, Xobject codimensions)
public Ident(int num, Xtype type)
public static final int as_num(java.lang.String access)
public StorageClass getStorageClass()
public void setStorageClass(StorageClass stg_class)
public java.lang.String getName()
Xobject
public java.lang.String getAlias()
public BlockList getDeclaredBlock()
public java.lang.String getFullName()
public java.lang.String getAccessStr()
public boolean isOp()
public int getFrank()
public void setName(java.lang.String name)
Xobject
public void setAlias(java.lang.String newAlias)
public void setDeclaredBlock(BlockList bl)
public java.lang.String getSym()
Xobject
public java.lang.String getString()
Xobject
public Xobject getAddr()
public Xobject getValue()
public void setValue(Xobject value)
public Xobject getCodimensions()
public void setCodimensions(Xobject codimensions)
public int getCorank()
public boolean isCoarray()
public boolean wasCoarray()
public void saveOrigId()
public Ident getOrigId()
public void setMemberAligned(boolean flag)
public boolean isMemberAligned()
public boolean isDeclared()
@Deprecated public void Declared()
public void setIsDeclared(boolean declared)
public int regn()
public void setBitField(int n)
public int getBitField()
public Xobject getBitFieldExpr()
public Xobject getEnumValue()
public Xobject getGccAttributes()
public final boolean isUsedInArraySize()
public final void setIsUsedInArraySize(boolean enabled)
public Xobject copy()
Xobject
public Xobject Ref()
public Xobject Index(int i)
public Xobject Call()
public boolean enter(XobjectVisitor visitor)
enter
in interface XobjectVisitable
enter
in class Xobject
public static Ident Var(java.lang.String name, Xtype t, Xtype addrt, VarScope scope, Xobject codimensions)
public static Ident Fident(java.lang.String name, Xtype t, XobjectFile xobjFile)
public static Ident Fident(java.lang.String name, Xtype t, boolean isFcommon, XobjectFile xobjFile)
public static Ident Fident(java.lang.String name, Xtype t, boolean isFcommon, boolean isDecl, XobjectFile xobjFile)
name
- symbol namet
- typeisFcommon
- if is declare as common variableisDecl
- 1. copy type if type is function/subroutine which is not external if true.
2. add declaration if true.xobjFile
- XobjectFile in current contextpublic void addFcommonVar(Ident id)
public java.util.List<Ident> getFcommonVars()
public java.lang.String getFcommonName()
public void setFcommonName(java.lang.String name)
public Xobject getFparamValue()
public void setFparamValue(Xobject value)
public java.lang.String getFdeclaredModule()
public void setFdeclaredModule(java.lang.String module_name)
public Xobject callSubroutine()