Package sootup.java.frontend.conversion
Class WalaSootMethod
java.lang.Object
sootup.core.model.SootClassMember<MethodSignature>
sootup.core.model.SootMethod
sootup.java.core.JavaSootMethod
sootup.java.frontend.conversion.WalaSootMethod
- All Implemented Interfaces:
HasPosition
,Method
,HasAnnotation
-
Nested Class Summary
Nested classes/interfaces inherited from class sootup.java.core.JavaSootMethod
JavaSootMethod.AnnotationOrSignatureStep, JavaSootMethod.JavaSootMethodBuilder
Nested classes/interfaces inherited from class sootup.core.model.SootMethod
SootMethod.BuildStep, SootMethod.MethodSourceStep, SootMethod.ModifierStep, SootMethod.SignatureStep, SootMethod.SootMethodBuilder, SootMethod.ThrownExceptionsStep
-
Field Summary
Fields inherited from class sootup.core.model.SootMethod
bodySource, exceptions, parameterTypes
-
Constructor Summary
ConstructorDescriptionWalaSootMethod
(BodySource source, MethodSignature methodSignature, Iterable<MethodModifier> modifiers, Iterable<ClassType> thrownExceptions, com.ibm.wala.cast.loader.AstMethod.DebuggingInformation debugInfo) Constructs a SootMethod object with the given attributes. -
Method Summary
Modifier and TypeMethodDescriptioncom.ibm.wala.cast.loader.AstMethod.DebuggingInformation
int
withDebugInfo
(com.ibm.wala.cast.loader.AstMethod.DebuggingInformation debugInfo) withModifiers
(Iterable<MethodModifier> modifiers) Creates a new SootMethod based on a newOverridingBodySource
.withSource
(BodySource source) withThrownExceptions
(Iterable<ClassType> thrownExceptions) Methods inherited from class sootup.java.core.JavaSootMethod
builder, getAnnotations, withAnnotations, withBody
Methods inherited from class sootup.core.model.SootMethod
equals, equivHashCode, getBody, getBodySource, getExceptionSignatures, getModifiers, getParameterCount, getParameterType, getParameterTypes, getReturnType, hasBody, hashCode, isAbstract, isConcrete, isFinal, isMain, isNative, isPrivate, isProtected, isPublic, isStatic, isSynchronized, toString
Methods inherited from class sootup.core.model.SootClassMember
getDeclaringClassType, getName, getPosition, getSignature, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface sootup.core.model.Method
getSignature
-
Constructor Details
-
WalaSootMethod
public WalaSootMethod(@Nonnull BodySource source, @Nonnull MethodSignature methodSignature, @Nonnull Iterable<MethodModifier> modifiers, @Nonnull Iterable<ClassType> thrownExceptions, com.ibm.wala.cast.loader.AstMethod.DebuggingInformation debugInfo) Constructs a SootMethod object with the given attributes.- Parameters:
source
-methodSignature
-modifiers
-thrownExceptions
-
-
-
Method Details
-
getJavaSourceStartLineNumber
public int getJavaSourceStartLineNumber() -
getDebugInfo
-
withOverridingMethodSource
@Nonnull public JavaSootMethod withOverridingMethodSource(Function<OverridingBodySource, OverridingBodySource> overrider) Description copied from class:SootMethod
Creates a new SootMethod based on a newOverridingBodySource
. This is useful to change selected parts of aSootMethod
without recreating aBodySource
completely.OverridingBodySource
allows for replacing the body of a method.- Overrides:
withOverridingMethodSource
in classJavaSootMethod
-
withSource
- Overrides:
withSource
in classJavaSootMethod
-
withModifiers
- Overrides:
withModifiers
in classJavaSootMethod
-
withThrownExceptions
- Overrides:
withThrownExceptions
in classJavaSootMethod
-
withDebugInfo
@Nonnull public SootMethod withDebugInfo(com.ibm.wala.cast.loader.AstMethod.DebuggingInformation debugInfo)
-