|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.sym.SymImpl
coins.sym.VarImpl
coins.sym.ParamImpl
Param Class Param class (formal parameter class) interface. Anonymous parameter should be assigned a generated name.
| Field Summary | |
protected boolean |
fCallByReference
fCallByReference true if call-by-reference, false if call-by-value. |
protected int |
fIndex
Parameter index number |
protected boolean |
fOptional
Optional parameter generated for "..." specification |
| Fields inherited from class coins.sym.VarImpl |
fDefList, fDefUseList, fOperandSet, fUseList |
| Fields inherited from class coins.sym.SymImpl |
fDbgLevel, fDefinedIn, fFlagBox, fKind, fName, fNextSym, fRecordedIn, fSourceInf, fSymInf, fType, fUniqueNameSym, fWork, machineParam, sourceLanguage, symRoot |
| Fields inherited from interface coins.sym.Var |
STORAGECLASS, VAR_AUTO, VAR_REGISTER, VAR_STATIC |
| Fields inherited from interface coins.sym.Sym |
KIND_NAME, VISIBILITY |
| Constructor Summary | |
ParamImpl(SymRoot pSymRoot)
|
|
ParamImpl(SymRoot pSymRoot,
java.lang.String pParamName,
int pIndex,
Sym pDefinedIn)
|
|
ParamImpl(SymRoot pSymRoot,
java.lang.String pParamName,
Sym pDefinedIn)
|
|
| Method Summary | |
Param |
generateOptionalParam()
|
long |
getArrayParamSize()
get array parameter size. |
int |
getParamIndex()
getParamIndex Get parameter index. |
Subp |
getSubp()
getSubp |
boolean |
isCallByReference()
true if this parameter is call-by-reference, false otherwise. |
boolean |
isCallByValue()
true if this parameter is call-by-value, false otherwise. |
boolean |
isOptionalParam()
isOptionalParam (##2) See if this is optional parameter generated for "..." specification. |
void |
markAsCallByReference()
Mark this parameter as call-by-reference |
void |
markAsCallByValue()
Mark this parameter as call-by-value |
void |
markAsOptional()
markAsOptional Mark this parameter as optional. |
void |
setArrayParamSize(long s)
set array parameter size. |
void |
setParamIndex(int pIndex)
setParamIndex Set parameter index. |
| Methods inherited from class coins.sym.VarImpl |
addOperand, evaluateAsObject, getDimension, getIndex, getInitialValue, getNext, getOperandSet, getSize, getStorageClass, getVisibility, isSizeEvaluable, resetFlowAnalInf, setIndex, setInitialValue, setNext, setStorageClass, setVisibility, toStringDetail |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface coins.sym.Var |
evaluateAsObject, getDimension, getInitialValue, getNext, getSize, getStorageClass, getVisibility, isSizeEvaluable, setInitialValue, setNext, setStorageClass, setVisibility |
| Methods inherited from interface coins.sym.Sym0 |
charConst, definedType, defineElem, defineLabel, defineParam, defineSubp, defineVar, enumType, floatConst, getDefinedFile, getDefinedIn, getFlag, getName, getNextSym, getRecordedIn, getSymKind, getSymType, getUniqueName, intConst, isGlobal, namedConst, pointerType, setFlag, stringConst, structType, subpType, unionType, vectorType, vectorTypeUnfixed |
| Field Detail |
protected int fIndex
protected boolean fOptional
protected boolean fCallByReference
| Constructor Detail |
public ParamImpl(SymRoot pSymRoot)
public ParamImpl(SymRoot pSymRoot,
java.lang.String pParamName,
Sym pDefinedIn)
public ParamImpl(SymRoot pSymRoot,
java.lang.String pParamName,
int pIndex,
Sym pDefinedIn)
| Method Detail |
public int getParamIndex()
getParamIndex in interface Parampublic void setParamIndex(int pIndex)
Param
setParamIndex in interface ParampIndex - index value to be set to this parameter.
public Param generateOptionalParam()
public boolean isOptionalParam()
isOptionalParam in interface Parampublic void markAsOptional()
Param
markAsOptional in interface Parampublic void markAsCallByReference()
Param
markAsCallByReference in interface Parampublic void markAsCallByValue()
Param
markAsCallByValue in interface Parampublic boolean isCallByReference()
Param
isCallByReference in interface Parampublic boolean isCallByValue()
Param
isCallByValue in interface Parampublic Subp getSubp()
Param
getSubp in interface Parampublic long getArrayParamSize()
Param
getArrayParamSize in interface Parampublic void setArrayParamSize(long s)
Param
setArrayParamSize in interface Params - array parameter size
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||