public class DerefSymbol extends PseudoSymbol implements Symbol
| Constructor and Description |
|---|
DerefSymbol(Symbol symbol)
Constructs a new deref symbol from the given reference symbol object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Checks if this deref symbol equals to the given object.
|
static Symbol |
get(Symbol symbol)
Checks if the given symbol produces an deref symbol and returns a
single-depth deref symbol if it does.
|
java.util.List |
getArraySpecifiers()
Returns the list of array specifiers of the reference symbol.
|
int |
getDepth()
Returns the depth of dereferencing.
|
Symbol |
getIRSymbol()
Returns the IR symbol that represents this deref symbol.
|
Symbol |
getRefSymbol()
Returns the reference symbol (e.g., ref_symbol == &this_deref).
|
java.lang.String |
getSymbolName()
Returns the name of this deref symbol.
|
java.util.List |
getTypeSpecifiers()
Returns the list of specifiers for this deref symbol.
|
Symbol |
getVisibleSymbol()
Returns the visible symbol corresponding to this deref symbol.
|
int |
hashCode()
Returns the hash code of the current deref symbol.
|
Expression |
toExpression()
Returns an expression instantiation of this deref symbol.
|
getDeclaration, setName, toStringgetDeclaration, setNamepublic DerefSymbol(Symbol symbol)
symbol - the reference symbol.public static Symbol get(Symbol symbol)
symbol - the given symbol object.public java.util.List getTypeSpecifiers()
getTypeSpecifiers in interface Symbolpublic java.util.List getArraySpecifiers()
getArraySpecifiers in interface Symbolpublic java.lang.String getSymbolName()
getSymbolName in interface Symbolpublic Symbol getRefSymbol()
public Symbol getIRSymbol()
getIRSymbol in class PseudoSymbolpublic int getDepth()
public Symbol getVisibleSymbol()
public Expression toExpression()
public boolean equals(java.lang.Object o)
equals in class PseudoSymbolo - the object to be compared with.public int hashCode()
hashCode in class PseudoSymbol