entities
Class SizeOfExpression
java.lang.Object
entities.Expression
entities.SizeOfExpression
- All Implemented Interfaces:
- ScopeManager
- public class SizeOfExpression
- extends Expression
The class SizeOfExpression represents a sizeOf expression
Fields inherited from class entities.Expression |
fCast, fFile, fLBracketPosition, fOperator, fParentScope, fPosition, fPreviousExpression, fRBracketPosition, fToTrace, fTypeOfCast, SEPARATORS |
Method Summary |
void |
computeType(ScopeInfo scopeInfo,
java.lang.String indentation)
This method computes recursively the types on the parameter and
field expressions. |
Expression |
getExpression()
|
java.lang.String |
getString()
|
java.lang.String |
getType()
For expressions that have a field corresponding to the type,
it returns the type or null |
void |
print(java.lang.String indentation)
Print all information |
void |
setExpression(Expression expression)
|
void |
setType(java.lang.String type)
|
Methods inherited from class entities.Expression |
addClass, addClassHeaderFile, addEnumerator, addExpression, addExternalField, addExternalMethod, addField, addFriendClass, addFriendFunction, addFriendMethod, addFunction, addGeneralization, addMethod, addNameSpace, addType, addUserType, addVariable, cleanType, fillName, fillNameNew, findVariableType, getAllocationType, getCast, getCastType, getClassContext, getContainingMethod, getContext, getContextNew, getCurrentMethod, getFile, getLBracketPosition, getName, getOperator, getOperators, getParent, getParentScope, getPosition, getPreviousExpression, getRBracketPosition, getTypeOfCast, propagateParentScope, resolveType, setCast, setFile, setLBracketPosition, setOperator, setParentScope, setPosition, setPreviousExpression, setRBracketPosition, setTypeOfCast |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SizeOfExpression
public SizeOfExpression(ScopeManager parentScope)
getType
public java.lang.String getType()
- Description copied from class:
Expression
- For expressions that have a field corresponding to the type,
it returns the type or null
- Overrides:
getType
in class Expression
- Returns:
- the type specified inside the sizeof if it is a type
setType
public void setType(java.lang.String type)
- Parameters:
type
- represent the type specified inside the sizeof
getExpression
public Expression getExpression()
- Returns:
- an object of type Expression corresponding to the
expression specified inside the sizeof
getString
public java.lang.String getString()
- Overrides:
getString
in class Expression
- Returns:
- the representation of the Expression as a String (it
is not a thorough reconstruction)
setExpression
public void setExpression(Expression expression)
- Parameters:
expression
- represents the expression specified inside the sizeof
computeType
public void computeType(ScopeInfo scopeInfo,
java.lang.String indentation)
- This method computes recursively the types on the parameter and
field expressions.
- Overrides:
computeType
in class Expression
print
public void print(java.lang.String indentation)
- Print all information
- Specified by:
print
in interface ScopeManager
- Overrides:
print
in class Expression