Class MutableClasses
java.lang.Object
edu.umd.cs.findbugs.util.MutableClasses
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classAnalytic information about aJavaClassrelevant to determining its mutability properties. -
Field Summary
FieldsModifier and TypeFieldDescription -
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)
-
Field Details
-
KNOWN_IMMUTABLE_CLASSES
-
KNOWN_IMMUTABLE_PACKAGES
-
CONSTRUCTOR_LIKE_NAMES
-
SETTER_LIKE_PREFIXES
-
-
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
-
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
-