Class MethodSignature

All Implemented Interfaces:
Comparable<SootClassMemberSignature<MethodSubSignature>>, Signature

public class MethodSignature extends SootClassMemberSignature<MethodSubSignature>
Represents the fully qualified signature of a method.
  • Constructor Details

    • MethodSignature

      public MethodSignature(@NonNull ClassType declaringClassSignature, @NonNull String methodName, @NonNull Iterable<Type> parameters, @NonNull Type fqReturnType)
    • MethodSignature

      public MethodSignature(@NonNull ClassType declaringClass, @NonNull MethodSubSignature subSignature)
      Internal: Constructs a MethodSignature. Instances should only be created by a IdentifierFactory
      Parameters:
      declaringClass - the declaring class signature
      subSignature - the sub-signature
  • Method Details

    • getParameterTypes

      public @NonNull List<Type> getParameterTypes()
      The method's parameters' signatures.
    • getParameterCount

      public int getParameterCount()
      Returns the number of parameters.
    • getParameterType

      public @NonNull Type getParameterType(int n)