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
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull SootMethod
build()
@NonNull Iterable<MethodModifier>
@NonNull Position
Line and column information of the corresponding code object that this represents.@Nullable MethodSignature
@Nullable BodySource
@NonNull SootMethod.ThrownExceptionsStep
withModifier
(@NonNull Iterable<MethodModifier> modifiers) @NonNull SootMethod.BuildStep
withPosition
(@NonNull Position position) @NonNull SootMethod.ModifierStep
withSignature
(@NonNull MethodSignature methodSignature) @NonNull SootMethod.SignatureStep
withSource
(@NonNull BodySource source) @NonNull SootMethod.BuildStep
withThrownExceptions
(@NonNull 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
public @NonNull SootMethod.ThrownExceptionsStep withModifier(@NonNull Iterable<MethodModifier> modifiers) - Specified by:
withModifier
in interfaceSootMethod.ModifierStep
-
withThrownExceptions
public @NonNull 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
-