Interface SootMethod

All Superinterfaces:
Method
All Known Implementing Classes:
JavaAnnotationSootMethod, JavaSootMethod

public interface SootMethod extends Method
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 Details

    • getModifiers

      @NonNull Set<MethodModifier> getModifiers()
    • getSignature

      @NonNull MethodSignature getSignature()
      Specified by:
      getSignature in interface Method
    • 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

      @NonNull Type getParameterType(int index)
    • getParameterTypes

      @NonNull List<Type> getParameterTypes()
    • getSubSignature

      @NonNull MethodSubSignature getSubSignature()
    • getDeclClassType

      @NonNull ClassType getDeclClassType()
    • getName

      @NonNull String getName()
    • getExceptionSignatures

      @NonNull List<ClassType> getExceptionSignatures()
    • getBodySource

      @NonNull BodySource getBodySource()
    • isMain

      boolean isMain(@NonNull IdentifierFactory idf)
    • isConstructor

      boolean isConstructor(@NonNull IdentifierFactory idf)
    • isDefaultConstructor

      boolean isDefaultConstructor(@NonNull IdentifierFactory idf)
    • toString

      void toString(@NonNull StmtPrinter printer)
    • withOverridingMethodSource

      @NonNull SootMethod withOverridingMethodSource(Function<OverridingBodySource,OverridingBodySource> overrider)
    • withSource

      @NonNull SootMethod withSource(@NonNull BodySource source)
    • withModifiers

      @NonNull SootMethod withModifiers(@NonNull Iterable<MethodModifier> modifiers)
    • withThrownExceptions

      @NonNull SootMethod withThrownExceptions(@NonNull Iterable<ClassType> thrownExceptions)
    • withBody

      @NonNull SootMethod withBody(@NonNull Body body)
    • getPosition

      @NonNull Position getPosition()
    • getDeclaringClassType

      @NonNull ClassType getDeclaringClassType()