Package com.schibsted.spt.data.jslt.impl
Class VariableInfo
java.lang.Object
com.schibsted.spt.data.jslt.impl.VariableInfo
- Direct Known Subclasses:
LetInfo
,ParameterInfo
Class encapsulating what we know about a specific variable. Keeps
track of the stack frame slot, but mostly used for optimizations.
-
Field Details
-
slot
private int slot -
location
-
usages
private int usages
-
-
Constructor Details
-
VariableInfo
-
-
Method Details
-
getName
-
setSlot
public void setSlot(int slot) -
getSlot
public int getSlot() -
getLocation
-
incrementUsageCount
public void incrementUsageCount() -
getUsageCount
public int getUsageCount() -
isLet
public boolean isLet() -
getDeclaration
The expression that computes this variable's value. null for parameters, because in that case we don't know the expression.
-