Package edu.umd.cs.findbugs.util
Class MutableClasses
java.lang.Object
edu.umd.cs.findbugs.util.MutableClasses
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisConstructorLikeMethod(String methodName) Check if the method name looks like a constructorstatic booleanlooksLikeASetter(String methodName) Check if the method name looks like a setterstatic booleanlooksLikeASetter(String methodName, String classSig, String retSig) Check if the method name looks like a setterstatic booleanmutableSignature(String sig)
-
Constructor Details
-
MutableClasses
public MutableClasses()
-
-
Method Details
-
mutableSignature
-
isConstructorLikeMethod
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
Check if the method name looks like a setter- Parameters:
methodName- the method nameclassSig- the class signatureretSig- the return type signature- Returns:
- true if the method name looks like a setter
-
looksLikeASetter
Check if the method name looks like a setter- Parameters:
methodName- the method name- Returns:
- true if the method name looks like a setter
-