Package sootup.core.model
Class Body.BodyBuilder
java.lang.Object
sootup.core.model.Body.BodyBuilder
- All Implemented Interfaces:
HasPosition
- Enclosing class:
- Body
The BodyBuilder helps to create a new Body in a fluent way (see Builder Pattern)
-
Method Summary
Modifier and TypeMethodDescription@NonNull Body.BodyBuilder@NonNull Bodybuild()@NonNull Set<MethodModifier>@Nullable PositionLine and column information of the corresponding code object that this represents.@NonNull MutableStmtGraphgetStmts()voidremoveDefLocalsOf(@NonNull Stmt stmt) voidreplaceLocal(@NonNull Local existingLocal, @NonNull Local newLocal) @NonNull Body.BodyBuildersetMethodSignature(@NonNull MethodSignature methodSig) setModifiers(@NonNull Set<MethodModifier> modifiers) @NonNull Body.BodyBuildersetPosition(@NonNull Position position) toString()
-
Method Details
-
getStmtGraph
-
getStmts
-
getLocals
-
setLocals
-
addLocal
-
replaceLocal
-
setModifiers
-
getPosition
Description copied from interface:HasPositionLine and column information of the corresponding code object that this represents.- Specified by:
getPositionin interfaceHasPosition- Returns:
- a
Positioncontaining position information.
-
setPosition
-
getMethodSignature
-
setMethodSignature
-
build
-
getModifiers
-
toString
-
removeDefLocalsOf
-