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 boolean
isConstructorLikeMethod
(String methodName) Check if the method name looks like a constructorstatic boolean
looksLikeASetter
(String methodName) Check if the method name looks like a setterstatic boolean
looksLikeASetter
(String methodName, String classSig, String retSig) Check if the method name looks like a setterstatic boolean
mutableSignature
(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
-