|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Exp interface HIR Exp class interface. The expression class Exp is a subclass of HIR. See IR, HIR, Stmt, Sym, IrList.
| Field Summary |
| Fields inherited from interface coins.ir.hir.HIR |
OP_CODE_NAME, OP_CODE_NAME_DENSE |
| Fields inherited from interface coins.ir.IR |
OP_INF, OP_LIST, OP_PROG, OP_SUBP_DEF |
| Method Summary | |
Exp |
adjustTypesOfBinaryOperands(Exp pExp1,
Exp pExp2)
Adjust the types of binary operands according to the C language specifications (See ISO/IEC 9899-1999 Programming language C section 6.3.1.8). |
Const |
evaluate()
Evaluate "this" expression. |
double |
evaluateAsDouble()
evaluateAsDouble Evaluate "this" expression as double. |
float |
evaluateAsFloat()
evaluateAsFloat Evaluate "this" expression as float. |
int |
evaluateAsInt()
evaluateAsInt Evaluate "this" expression as int. |
long |
evaluateAsLong()
Evaluate "this" expression as long. |
SubpType |
findSubpType()
findSubpType Find SubpType represented by this expression. |
Exp |
fold()
Fold "this" expression. |
IrList |
getActualParamList()
|
Exp |
getArrayExp()
getArrayExp (##2) getSubscriptExp getElemSizeExp (##2) Get a component of a subscripted variable. |
Const |
getConstSym()
getConstSym Get constant symbol attached to this node. |
Elem |
getElem()
getElem Get symbol of spefified class from SymNode. |
Exp |
getElemSizeExp()
|
Exp |
getExp1()
getExp1 Get source operand 1 from unary or binary expression. |
Exp |
getExp2()
getExp2 Get source operand 2 from binary expression. |
Label |
getLabel()
getLabel Get symbol of spefified class from SymNode. |
Elem |
getPointedElem()
|
Exp |
getPointerExp()
getPointerExp getPointedElem Get a component of pointed variable expression. |
Elem |
getQualifiedElem()
|
Exp |
getQualifierExp()
getQualifier getQualifiedElem Get a component of qualified variable expression. |
Subp |
getSubp()
getSubp Get symbol of spefified class from SymNode. |
Exp |
getSubpSpec()
getSubpSpec (##2) getActualParamList Get a component expression of the function expression. |
Exp |
getSubscriptExp()
|
java.lang.String |
getValueString()
getValueString //##40 Evaluate this subtree and return the result as a string. |
Var |
getVar()
getVar Get symbol of specified class from SymNode. |
Stmt |
initiateArray(Exp pArray,
Exp pInitExp,
Exp pFrom,
Exp pTo,
Subp pSubp)
initiateArray //##15 Create loop statement to initiate all elements of the array pArray and append it to the initiation block of subprogram pSubp. |
boolean |
isEvaluable()
isEvaluable See if "this" expression can be evaluated or not. |
| Methods inherited from interface coins.ir.hir.HIR |
addrExp, asmStmt, checkLinkage, conditionalExp, contains, copyInfListFrom, cutParentLink, exp, expList, expRepeat, forStmt, getExpId, getFlowAnalSym, getIndentSpace, getInfString, getIrName, getSourceNode, getSourceNode1, getSourceNode2, getSymOrExpId, getWork, hirNodeClone, hirSeq, hirSeq, indexedLoopStmt, indexedLoopStmt, infStmt, infStmt, intConstNode, irList, isEmpty, isStmt, isTree, nullNode, nullStmt, offsetConstNode, phiExp, repeatStmt, replaceSource, replaceSource1, replaceSource2, returnStmt, setChild1, setChild2, setChildren, setChildren, setDataStmt, setIndex, setIndexNumberToAllNodes, setParent, setType, setWork, subpDefinition, subpIterator, subscriptedExp, toString, toStringDetail, toStringShort, toStringWithChildren, undecayExp, undecayExp, undecayExp, whileStmt |
| Methods inherited from interface coins.ir.IR |
addInf, getChild1, getChild2, getInf, getInfList, getParent, getSym, print, print, removeInf |
| Methods inherited from interface coins.ir.IR0 |
getChild, getChildCount, getIndex, getOperator, setChild |
| Methods inherited from interface coins.ir.hir.HIR0 |
accept, assignStmt, blockStmt, callStmt, constNode, contentsExp, convExp, copyWithOperands, copyWithOperandsChangingLabels, decayExp, elemNode, exp, exp, expStmt, falseNode, finishHir, forStmt, functionExp, getChildNumber, getFlag, getFlagBox, getNextStmt, getStmtContainingThisNode, getType, hirClone, hirIterator, hirList, hirSeq, ifStmt, intConstNode, irList, isSameAs, jumpStmt, labelDef, labeledStmt, labelNode, pointedExp, print, program, qualifiedExp, repeatStmt, replaceThisNode, returnStmt, setFlag, setIndexNumberToAllNodes, sizeofExp, sizeofExp, subpDefinition, subpNode, subscriptedExp, switchStmt, symNode, trueNode, undecayExp, varNode, whileStmt |
| Method Detail |
public Const getConstSym()
public Var getVar()
public Subp getSubp()
public Label getLabel()
public Elem getElem()
public Exp getExp1()
public Exp getExp2()
public Exp getArrayExp()
public Exp getSubscriptExp()
public Exp getElemSizeExp()
public Exp getPointerExp()
public Elem getPointedElem()
public Exp getQualifierExp()
public Elem getQualifiedElem()
public Exp getSubpSpec()
public IrList getActualParamList()
public SubpType findSubpType()
public boolean isEvaluable()
public Const evaluate()
public Exp fold()
public int evaluateAsInt()
public long evaluateAsLong()
public float evaluateAsFloat()
public double evaluateAsDouble()
public java.lang.String getValueString()
public Exp adjustTypesOfBinaryOperands(Exp pExp1,
Exp pExp2)
pExp1 - operand 1.pExp2 - operand 2.
public Stmt initiateArray(Exp pArray,
Exp pInitExp,
Exp pFrom,
Exp pTo,
Subp pSubp)
pArray - array variable expression.pInitExp - initial value to be set.pFrom - array index start positionpTo - array index end positionpSubp - subprogram containing the initiation statement.
null for global variable initiation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||