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 TypeMethodDescriptionprivate static booleanequalsConstant(byte high, byte low, String cnst, org.apache.bcel.classfile.ConstantPool cp) static booleanisConstructorLikeMethod(String methodName) Check if the method name looks like a constructorprivate static booleanisSingleLineUnsupportedOperationThrower(org.apache.bcel.classfile.Method method) static booleanlooksLikeASetter(XClass xClass, XMethod xmethod) static booleanlooksLikeASetter(String methodName) Check if the method name looks like a setterstatic booleanlooksLikeASetter(String classSig, XMethod xmethod) static booleanlooksLikeASetter(String methodName, String classSig, String retSig) Check if the method name looks like a setterstatic booleanlooksLikeASetter(String classSig, String clsName, org.apache.bcel.classfile.Method method) static 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
-
looksLikeASetter
-
looksLikeASetter
-
isSingleLineUnsupportedOperationThrower
private static boolean isSingleLineUnsupportedOperationThrower(org.apache.bcel.classfile.Method method) -
equalsConstant
private static boolean equalsConstant(byte high, byte low, String cnst, org.apache.bcel.classfile.ConstantPool cp) -
looksLikeASetter
-