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 Body
build()
@NonNull Set<MethodModifier>
@Nullable Position
Line and column information of the corresponding code object that this represents.@NonNull MutableStmtGraph
getStmts()
void
removeDefLocalsOf
(@NonNull Stmt stmt) void
replaceLocal
(@NonNull Local existingLocal, @NonNull Local newLocal) @NonNull Body.BodyBuilder
setMethodSignature
(@NonNull MethodSignature methodSig) setModifiers
(@NonNull Set<MethodModifier> modifiers) @NonNull Body.BodyBuilder
setPosition
(@NonNull Position position) toString()
-
Method Details
-
getStmtGraph
-
getStmts
-
getLocals
-
setLocals
-
addLocal
-
replaceLocal
-
setModifiers
-
getPosition
Description copied from interface:HasPosition
Line and column information of the corresponding code object that this represents.- Specified by:
getPosition
in interfaceHasPosition
- Returns:
- a
Position
containing position information.
-
setPosition
-
getMethodSignature
-
setMethodSignature
-
build
-
getModifiers
-
toString
-
removeDefLocalsOf
-