Package edu.umd.cs.findbugs.ba.npe
Class ReturnValueNullnessPropertyDatabase
java.lang.Object
edu.umd.cs.findbugs.ba.interproc.PropertyDatabase<MethodDescriptor,Boolean>
edu.umd.cs.findbugs.ba.interproc.MethodPropertyDatabase<Boolean>
edu.umd.cs.findbugs.ba.npe.ReturnValueNullnessPropertyDatabase
Method property database storing which methods return values guaranteed to be
nonnull
- Author:
- David Hovemeyer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Boolean
decodeProperty
(String propStr) Subclasses must define this to instantiate the actual property value from its string encoding.protected String
encodeProperty
(Boolean property) Subclasses must define this to encode a property as a string for output to a file.Methods inherited from class edu.umd.cs.findbugs.ba.interproc.MethodPropertyDatabase
parseKey, writeKey
Methods inherited from class edu.umd.cs.findbugs.ba.interproc.PropertyDatabase
entrySet, getKeys, getProperty, isEmpty, read, readFromFile, removeProperty, setProperty, write, writeToFile
-
Constructor Details
-
ReturnValueNullnessPropertyDatabase
public ReturnValueNullnessPropertyDatabase()
-
-
Method Details
-
decodeProperty
Description copied from class:PropertyDatabase
Subclasses must define this to instantiate the actual property value from its string encoding.- Specified by:
decodeProperty
in classPropertyDatabase<MethodDescriptor,
Boolean> - Parameters:
propStr
- String containing the encoded property- Returns:
- the property
-
encodeProperty
Description copied from class:PropertyDatabase
Subclasses must define this to encode a property as a string for output to a file.- Specified by:
encodeProperty
in classPropertyDatabase<MethodDescriptor,
Boolean> - Parameters:
property
- the property- Returns:
- a String which encodes the property
-