Package sootup.core.model
Interface SootMethod
- All Superinterfaces:
Method
- All Known Implementing Classes:
JavaAnnotationSootMethod
,JavaSootMethod
Soot's counterpart of the source language's method concept. Soot representation of a Java method.
Can be declared to belong to a SootClass. Does not contain the actual code, which belongs to a
Body.
- Author:
- Linghui Luo, Jan Martin Persch
-
Method Summary
Modifier and TypeMethodDescription@NonNull Body
getBody()
@NonNull BodySource
@NonNull ClassType
@NonNull ClassType
@NonNull Set<MethodModifier>
@NonNull String
getName()
int
@NonNull Type
getParameterType
(int index) @NonNull Position
@NonNull Type
@NonNull MethodSignature
@NonNull MethodSubSignature
boolean
hasBody()
boolean
boolean
boolean
isConstructor
(@NonNull IdentifierFactory idf) boolean
isDefaultConstructor
(@NonNull IdentifierFactory idf) boolean
isFinal()
boolean
isMain
(@NonNull IdentifierFactory idf) boolean
isNative()
boolean
boolean
boolean
isPublic()
boolean
isStatic()
boolean
void
toString
(@NonNull StmtPrinter printer) @NonNull SootMethod
@NonNull SootMethod
withModifiers
(@NonNull Iterable<MethodModifier> modifiers) @NonNull SootMethod
@NonNull SootMethod
withSource
(@NonNull BodySource source) @NonNull SootMethod
withThrownExceptions
(@NonNull Iterable<ClassType> thrownExceptions)
-
Method Details
-
getModifiers
@NonNull Set<MethodModifier> getModifiers() -
getSignature
@NonNull MethodSignature getSignature()- Specified by:
getSignature
in interfaceMethod
-
isProtected
boolean isProtected() -
isPrivate
boolean isPrivate() -
isPublic
boolean isPublic() -
isStatic
boolean isStatic() -
isFinal
boolean isFinal() -
isAbstract
boolean isAbstract() -
isNative
boolean isNative() -
isSynchronized
boolean isSynchronized() -
isConcrete
boolean isConcrete() -
hasBody
boolean hasBody() -
getBody
@NonNull Body getBody() -
getReturnType
@NonNull Type getReturnType() -
getParameterCount
int getParameterCount() -
getParameterType
-
getParameterTypes
-
getSubSignature
@NonNull MethodSubSignature getSubSignature() -
getDeclClassType
@NonNull ClassType getDeclClassType() -
getName
@NonNull String getName() -
getExceptionSignatures
-
getBodySource
@NonNull BodySource getBodySource() -
isMain
-
isConstructor
-
isDefaultConstructor
-
toString
-
withOverridingMethodSource
@NonNull SootMethod withOverridingMethodSource(Function<OverridingBodySource, OverridingBodySource> overrider) -
withSource
-
withModifiers
-
withThrownExceptions
-
withBody
-
getPosition
@NonNull Position getPosition() -
getDeclaringClassType
@NonNull ClassType getDeclaringClassType()
-