Package sootup.core.model
Interface SootMethod
- All Superinterfaces:
Method
- All Known Implementing Classes:
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 BodygetBody()@NonNull BodySource@NonNull ClassType@NonNull ClassType@NonNull Set<MethodModifier>@NonNull StringgetName()int@NonNull TypegetParameterType(int index) @NonNull Position@NonNull Type@NonNull MethodSignature@NonNull MethodSubSignaturebooleanhasBody()booleanbooleanbooleanisConstructor(@NonNull IdentifierFactory idf) booleanisDefaultConstructor(@NonNull IdentifierFactory idf) booleanisFinal()booleanisMain(@NonNull IdentifierFactory idf) booleanisNative()booleanbooleanbooleanisPublic()booleanisStatic()booleanvoidtoString(@NonNull StmtPrinter printer) @NonNull SootMethod@NonNull SootMethodwithModifiers(@NonNull Iterable<MethodModifier> modifiers) @NonNull SootMethod@NonNull SootMethodwithSource(@NonNull BodySource source) @NonNull SootMethodwithThrownExceptions(@NonNull Iterable<ClassType> thrownExceptions)
-
Method Details
-
getModifiers
@NonNull Set<MethodModifier> getModifiers() -
getSignature
@NonNull MethodSignature getSignature()- Specified by:
getSignaturein 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()
-