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 TypeMethodDescriptionbuild()
Line and column information of the corresponding code object that this represents.getStmts()
void
removeDefLocalsOf
(Stmt stmt) void
replaceLocal
(Local existingLocal, Local newLocal) setMethodSignature
(MethodSignature methodSig) setModifiers
(Set<MethodModifier> modifiers) setPosition
(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
-