Package sootup.core.jimple.common
Interface Local
- All Known Subinterfaces:
JavaLocal,JavaSlotLocal,JavaStackLocal,SlotLocal,StackLocal
- All Known Implementing Classes:
AbstractLocal
Local variable in a
Body. Use LocalGenerator or the factories in Jimple
to create locals. JVM slot provenance is available through SlotLocal.
Implementations must compare locals by name in Object.equals(Object) and Object.hashCode(), and by name and type for Jimple equivalence. Extend AbstractLocal to
inherit this contract.
-
Method Summary
Modifier and TypeMethodDescriptiongetDefs(Collection<Stmt> defs) getDefsForLocalUse(ControlFlowGraph<?> graph, Stmt stmt) @NonNull StringgetName()getStmtsUsingOrDefiningthisLocal(Collection<Stmt> stmts, Stmt removedStmt) @NonNull LocalReturns a copy with a new name, preserving all other state and capabilities.@NonNull LocalReturns a copy with a new type, preserving all other state and capabilities.Methods inherited from interface sootup.core.jimple.basic.EquivTo
equivHashCode, equivTo, equivTo
-
Method Details
-
getName
@NonNull String getName() -
withName
Returns a copy with a new name, preserving all other state and capabilities. -
withType
Returns a copy with a new type, preserving all other state and capabilities. -
getDefs
-
getDefsForLocalUse
-
getStmtsUsingOrDefiningthisLocal
-