Package sootup.core.model
Class SootMethod.SootMethodBuilder
java.lang.Object
sootup.core.model.SootMethod.SootMethodBuilder
- All Implemented Interfaces:
HasPosition
,SootMethod.BuildStep
,SootMethod.MethodSourceStep
,SootMethod.ModifierStep
,SootMethod.SignatureStep
,SootMethod.ThrownExceptionsStep
- Direct Known Subclasses:
JavaSootMethod.JavaSootMethodBuilder
- Enclosing class:
- SootMethod
public static class SootMethod.SootMethodBuilder
extends Object
implements SootMethod.MethodSourceStep, SootMethod.SignatureStep, SootMethod.ModifierStep, SootMethod.ThrownExceptionsStep, SootMethod.BuildStep, HasPosition
Defines a
SootMethod
builder that provides a fluent API.- Author:
- Jan Martin Persch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Line and column information of the corresponding code object that this represents.withModifier
(Iterable<MethodModifier> modifiers) withPosition
(Position position) withSignature
(MethodSignature methodSignature) withSource
(BodySource source) withThrownExceptions
(Iterable<ClassType> thrownExceptions) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface sootup.core.model.SootMethod.ModifierStep
withModifiers
-
Constructor Details
-
SootMethodBuilder
public SootMethodBuilder()
-
-
Method Details
-
getModifiers
-
getSource
-
getSignature
-
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.
-
getThrownExceptions
-
withSource
- Specified by:
withSource
in interfaceSootMethod.MethodSourceStep
-
withSignature
- Specified by:
withSignature
in interfaceSootMethod.SignatureStep
-
withModifier
@Nonnull public SootMethod.ThrownExceptionsStep withModifier(@Nonnull Iterable<MethodModifier> modifiers) - Specified by:
withModifier
in interfaceSootMethod.ModifierStep
-
withThrownExceptions
@Nonnull public SootMethod.BuildStep withThrownExceptions(@Nonnull Iterable<ClassType> thrownExceptions) - Specified by:
withThrownExceptions
in interfaceSootMethod.ThrownExceptionsStep
-
withPosition
- Specified by:
withPosition
in interfaceSootMethod.BuildStep
-
build
- Specified by:
build
in interfaceSootMethod.BuildStep
- Specified by:
build
in interfaceSootMethod.ThrownExceptionsStep
-