FindBugs™ 1.3.4

edu.umd.cs.findbugs.ba
Class LegacyAnalysisContext

java.lang.Object
  extended by edu.umd.cs.findbugs.ba.AnalysisContext
      extended by edu.umd.cs.findbugs.ba.LegacyAnalysisContext

Deprecated.

@Deprecated
public class LegacyAnalysisContext
extends AnalysisContext

Original implementation of AnalysisContext. (Eventual goal is a new implementation that uses the IAnalysisCache.)

Author:
David Hovemeyer

Field Summary
 
Fields inherited from class edu.umd.cs.findbugs.ba.AnalysisContext
DEBUG, DEFAULT_CHECK_FOR_NULL_PARAM_DATABASE_FILENAME, DEFAULT_NONNULL_PARAM_DATABASE_FILENAME, DEFAULT_NULL_RETURN_VALUE_ANNOTATION_DATABASE, DEFAULT_NULL_RETURN_VALUE_DB_FILENAME, IGNORE_BUILTIN_MODELS, NONNULL_RETURN_DB_FILENAME, NONNULL_RETURN_DB_RESOURCE, UNCONDITIONAL_DEREF_DB_FILENAME, UNCONDITIONAL_DEREF_DB_RESOURCE
 
Method Summary
 void addApplicationClassToRepository(org.apache.bcel.classfile.JavaClass appClass)
          Deprecated. Add an application class to the repository.
 void addClasspathEntry(java.lang.String url)
          Deprecated. Add an entry to the Repository's classpath.
 void clearClassContextCache()
          Deprecated. Clear the ClassContext cache.
 void clearRepository()
          Deprecated. Clear the BCEL Repository in preparation for analysis.
 AnnotationRetentionDatabase getAnnotationRetentionDatabase()
          Deprecated.  
 CheckReturnAnnotationDatabase getCheckReturnAnnotationDatabase()
          Deprecated.  
 ClassContext getClassContext(org.apache.bcel.classfile.JavaClass javaClass)
          Deprecated. Get the ClassContext for a class.
 java.lang.String getClassContextStats()
          Deprecated. Get stats about hit rate for ClassContext cache.
 FieldStoreTypeDatabase getFieldStoreTypeDatabase()
          Deprecated. Get the property database recording the types of values stored into fields.
 InnerClassAccessMap getInnerClassAccessMap()
          Deprecated.  
 JCIPAnnotationDatabase getJCIPAnnotationDatabase()
          Deprecated.  
 RepositoryLookupFailureCallback getLookupFailureCallback()
          Deprecated. Get the lookup failure callback.
 INullnessAnnotationDatabase getNullnessAnnotationDatabase()
          Deprecated.  
 ReturnValueNullnessPropertyDatabase getReturnValueNullnessPropertyDatabase()
          Deprecated. Get the property database recording which methods always return nonnull values
 SourceFinder getSourceFinder()
          Deprecated. Get the SourceFinder, for finding source files.
 SourceInfoMap getSourceInfoMap()
          Deprecated. Get the SourceInfoMap.
 Subtypes getSubtypes()
          Deprecated. Get the Subtypes database.
 Subtypes2 getSubtypes2()
          Deprecated. Get the Subtypes2 inheritance hierarchy database.
 ParameterNullnessPropertyDatabase getUnconditionalDerefParamDatabase()
          Deprecated. Get the property database recording which methods unconditionally dereference parameters.
 void initDatabases()
          Deprecated. Instantiate the CheckReturnAnnotationDatabase.
 org.apache.bcel.classfile.JavaClass lookupClass(java.lang.String className)
          Deprecated. Lookup a class.
 void updateDatabases(int pass)
          Deprecated. After a pass has been completed, allow the analysis context to update information.
 
Methods inherited from class edu.umd.cs.findbugs.ba.AnalysisContext
create, currentAnalysisContext, currentXFactory, getBoolProperty, getDatabaseInputDir, getDatabaseOutputDir, getDirectlyRelevantTypeQualifiersDatabase, getFieldSummary, getUnreadFields, getXClassCollection, isApplicationClass, isApplicationClass, isApplicationClass, isTooBig, loadDefaultInterproceduralDatabases, loadInterproceduralDatabases, loadPropertyDatabase, loadPropertyDatabaseFromResource, logError, logError, lookupClass, lookupSourceFile, lookupSystemClass, removeCurrentAnalysisContext, reportMissingClass, setBoolProperty, setCurrentAnalysisContext, setDatabaseInputDir, setDatabaseOutputDir, setDirectlyRelevantTypeQualifiersDatabase, setFieldSummary, setMissingClassWarningsSuppressed, setSourcePath, setUnreadFields, storePropertyDatabase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNullnessAnnotationDatabase

public INullnessAnnotationDatabase getNullnessAnnotationDatabase()
Deprecated. 
Specified by:
getNullnessAnnotationDatabase in class AnalysisContext

getCheckReturnAnnotationDatabase

public CheckReturnAnnotationDatabase getCheckReturnAnnotationDatabase()
Deprecated. 
Specified by:
getCheckReturnAnnotationDatabase in class AnalysisContext

getAnnotationRetentionDatabase

public AnnotationRetentionDatabase getAnnotationRetentionDatabase()
Deprecated. 
Specified by:
getAnnotationRetentionDatabase in class AnalysisContext

getJCIPAnnotationDatabase

public JCIPAnnotationDatabase getJCIPAnnotationDatabase()
Deprecated. 
Specified by:
getJCIPAnnotationDatabase in class AnalysisContext

initDatabases

public void initDatabases()
Deprecated. 
Description copied from class: AnalysisContext
Instantiate the CheckReturnAnnotationDatabase. Do this after the repository has been set up.

Specified by:
initDatabases in class AnalysisContext

updateDatabases

public void updateDatabases(int pass)
Deprecated. 
Description copied from class: AnalysisContext
After a pass has been completed, allow the analysis context to update information.

Specified by:
updateDatabases in class AnalysisContext
Parameters:
pass - -- the first pass is pass 0

getLookupFailureCallback

public RepositoryLookupFailureCallback getLookupFailureCallback()
Deprecated. 
Description copied from class: AnalysisContext
Get the lookup failure callback.

Specified by:
getLookupFailureCallback in class AnalysisContext

getSourceFinder

public SourceFinder getSourceFinder()
Deprecated. 
Description copied from class: AnalysisContext
Get the SourceFinder, for finding source files.

Specified by:
getSourceFinder in class AnalysisContext

getSubtypes

public Subtypes getSubtypes()
Deprecated. 
Description copied from class: AnalysisContext
Get the Subtypes database.

Specified by:
getSubtypes in class AnalysisContext
Returns:
the Subtypes database

clearRepository

public void clearRepository()
Deprecated. 
Description copied from class: AnalysisContext
Clear the BCEL Repository in preparation for analysis.

Specified by:
clearRepository in class AnalysisContext

clearClassContextCache

public void clearClassContextCache()
Deprecated. 
Description copied from class: AnalysisContext
Clear the ClassContext cache. This should be done between analysis passes.

Specified by:
clearClassContextCache in class AnalysisContext

addClasspathEntry

public void addClasspathEntry(java.lang.String url)
                       throws java.io.IOException
Deprecated. 
Description copied from class: AnalysisContext
Add an entry to the Repository's classpath.

Specified by:
addClasspathEntry in class AnalysisContext
Parameters:
url - the classpath entry URL
Throws:
java.io.IOException

addApplicationClassToRepository

public void addApplicationClassToRepository(org.apache.bcel.classfile.JavaClass appClass)
Deprecated. 
Description copied from class: AnalysisContext
Add an application class to the repository.

Specified by:
addApplicationClassToRepository in class AnalysisContext
Parameters:
appClass - the application class

lookupClass

public org.apache.bcel.classfile.JavaClass lookupClass(@NonNull
                                                       java.lang.String className)
                                                throws java.lang.ClassNotFoundException
Deprecated. 
Description copied from class: AnalysisContext
Lookup a class. Use this method instead of Repository.lookupClass().

Specified by:
lookupClass in class AnalysisContext
Parameters:
className - the name of the class
Returns:
the JavaClass representing the class
Throws:
java.lang.ClassNotFoundException - (but not really)

getClassContext

public ClassContext getClassContext(org.apache.bcel.classfile.JavaClass javaClass)
Deprecated. 
Description copied from class: AnalysisContext
Get the ClassContext for a class.

Specified by:
getClassContext in class AnalysisContext
Parameters:
javaClass - the class
Returns:
the ClassContext for that class

getSourceInfoMap

public SourceInfoMap getSourceInfoMap()
Deprecated. 
Description copied from class: AnalysisContext
Get the SourceInfoMap.

Specified by:
getSourceInfoMap in class AnalysisContext

getFieldStoreTypeDatabase

public FieldStoreTypeDatabase getFieldStoreTypeDatabase()
Deprecated. 
Description copied from class: AnalysisContext
Get the property database recording the types of values stored into fields.

Specified by:
getFieldStoreTypeDatabase in class AnalysisContext
Returns:
the database, or null if there is no database available

getUnconditionalDerefParamDatabase

public ParameterNullnessPropertyDatabase getUnconditionalDerefParamDatabase()
Deprecated. 
Description copied from class: AnalysisContext
Get the property database recording which methods unconditionally dereference parameters.

Specified by:
getUnconditionalDerefParamDatabase in class AnalysisContext
Returns:
the database, or null if there is no database available

getInnerClassAccessMap

public InnerClassAccessMap getInnerClassAccessMap()
Deprecated. 
Specified by:
getInnerClassAccessMap in class AnalysisContext

getReturnValueNullnessPropertyDatabase

public ReturnValueNullnessPropertyDatabase getReturnValueNullnessPropertyDatabase()
Deprecated. 
Description copied from class: AnalysisContext
Get the property database recording which methods always return nonnull values

Specified by:
getReturnValueNullnessPropertyDatabase in class AnalysisContext
Returns:
the database, or null if there is no database available

getSubtypes2

public Subtypes2 getSubtypes2()
Deprecated. 
Description copied from class: AnalysisContext
Get the Subtypes2 inheritance hierarchy database.

Specified by:
getSubtypes2 in class AnalysisContext

getClassContextStats

public java.lang.String getClassContextStats()
Deprecated. 
Description copied from class: AnalysisContext
Get stats about hit rate for ClassContext cache.

Specified by:
getClassContextStats in class AnalysisContext
Returns:
stats about hit rate for ClassContext cache

FindBugs™ 1.3.4

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.