|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectentities.Expression
entities.DeleteExpression
The class DeleteExpression represents a C++ delete statement
Field Summary |
Fields inherited from class entities.Expression |
fCast, fFile, fLBracketPosition, fOperator, fParentScope, fPosition, fPreviousExpression, fRBracketPosition, fToTrace, fTypeOfCast, SEPARATORS |
Constructor Summary | |
DeleteExpression(ScopeManager parentScope)
|
Method Summary | |
void |
computeType(ScopeInfo scopeInfo,
java.lang.String indentation)
This method computes recursively the variable types on the Expression corresponding to the memory |
Expression |
getMemory()
|
java.lang.String |
getString()
|
void |
print(java.lang.String indentation)
Print all information. |
void |
setMemory(Expression expr)
The parameter "expr" is used to represent the expression found after the keyword "delete" |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DeleteExpression(ScopeManager parentScope)
Method Detail |
public Expression getMemory()
Ex: P *p = new P(); .... delete p;In this case it returns the SimpleVariable expression correspondig to "p".
public java.lang.String getString()
getString
in class Expression
public void setMemory(Expression expr)
public void computeType(ScopeInfo scopeInfo, java.lang.String indentation)
computeType
in class Expression
public void print(java.lang.String indentation)
print
in interface ScopeManager
print
in class Expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |