Class MutableClasses

java.lang.Object
edu.umd.cs.findbugs.util.MutableClasses

public class MutableClasses extends Object
  • Constructor Details

    • MutableClasses

      public MutableClasses()
  • Method Details

    • mutableSignature

      public static boolean mutableSignature(String sig)
    • isConstructorLikeMethod

      public static boolean isConstructorLikeMethod(String methodName)
      Check if the method name looks like a constructor
      Parameters:
      methodName - the method name
      Returns:
      true if the method name looks like a constructor
    • looksLikeASetter

      public static boolean looksLikeASetter(String methodName, String classSig, String retSig)
      Check if the method name looks like a setter
      Parameters:
      methodName - the method name
      classSig - the class signature
      retSig - the return type signature
      Returns:
      true if the method name looks like a setter
    • looksLikeASetter

      public static boolean looksLikeASetter(String methodName)
      Check if the method name looks like a setter
      Parameters:
      methodName - the method name
      Returns:
      true if the method name looks like a setter