Package pascal.taie.ir.exp
Class Var
java.lang.Object
pascal.taie.ir.exp.Var
- All Implemented Interfaces:
Serializable
,Exp
,LValue
,RValue
,Indexable
Representation of method/constructor parameters, lambda parameters,
exception parameters, and local variables.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(ExpVisitor<T> visitor) void
void
addLoadArray
(LoadArray loadArray) void
addLoadField
(LoadField loadField) void
addStoreArray
(StoreArray storeArray) void
addStoreField
(StoreField storeField) int
getIndex()
getName()
getType()
boolean
isConst()
toString()
-
Constructor Details
-
Var
-
Var
-
-
Method Details
-
getMethod
- Returns:
- the method containing this Var.
-
getIndex
public int getIndex() -
getName
- Returns:
- name of this Var.
-
getType
-
isConst
public boolean isConst()- Returns:
- true if this variable is a (temporary) variable generated for holding constant value, otherwise false.
-
getConstValue
- Returns:
- the constant value held by this variable.
- Throws:
AnalysisException
- if this variable does not hold const value
-
accept
-
toString
-
addLoadField
-
getLoadFields
- Returns:
LoadField
s whose base variable is this Var.
-
addStoreField
-
getStoreFields
- Returns:
StoreField
s whose base variable is this Var.
-
addLoadArray
-
getLoadArrays
- Returns:
LoadArray
s whose base variable is this Var.
-
addStoreArray
-
getStoreArrays
- Returns:
StoreArray
s whose base variable is this Var.
-
addInvoke
-
getInvokes
- Returns:
Invoke
s whose base variable is this Var.
-