Method Summary |
|
abstract public void | addApplicationClassToRepository(JavaClass appClass) Add an application class to the repository. |
abstract public void | addClasspathEntry(String url) Add an entry to the Repository's classpath. |
abstract public void | clearClassContextCache() Clear the ClassContext cache. |
abstract public void | clearRepository() Clear the BCEL Repository in preparation for analysis. |
public static AnalysisContext | create(RepositoryLookupFailureCallback lookupFailureCallback) Create a new AnalysisContext. |
public static AnalysisContext | currentAnalysisContext() |
public static XFactory | currentXFactory() |
abstract public AnnotationRetentionDatabase | getAnnotationRetentionDatabase() |
final public boolean | getBoolProperty(int prop) Get a boolean property. |
abstract public CheckReturnAnnotationDatabase | getCheckReturnAnnotationDatabase() |
abstract public ClassContext | getClassContext(JavaClass javaClass) Get the ClassContext for a class. |
abstract public String | getClassContextStats() Get stats about hit rate for ClassContext cache. |
final public String | getDatabaseInputDir() Get the interprocedural database input directory. |
final public String | getDatabaseOutputDir() Get the interprocedural database output directory. |
public DirectlyRelevantTypeQualifiersDatabase | getDirectlyRelevantTypeQualifiersDatabase() |
abstract public FieldStoreTypeDatabase | getFieldStoreTypeDatabase() Get the property database recording the types of values stored
into fields. |
abstract public InnerClassAccessMap | getInnerClassAccessMap() |
abstract public JCIPAnnotationDatabase | getJCIPAnnotationDatabase() |
abstract public RepositoryLookupFailureCallback | getLookupFailureCallback() Get the lookup failure callback. |
abstract public INullnessAnnotationDatabase | getNullnessAnnotationDatabase() |
abstract public ReturnValueNullnessPropertyDatabase | getReturnValueNullnessPropertyDatabase() |
abstract public SourceFinder | getSourceFinder() Get the SourceFinder, for finding source files. |
abstract public SourceInfoMap | getSourceInfoMap() Get the SourceInfoMap. |
abstract public Subtypes | getSubtypes() Get the Subtypes database. |
abstract public Subtypes2 | getSubtypes2() Get the Subtypes2 inheritance hierarchy database. |
abstract public ParameterNullnessPropertyDatabase | getUnconditionalDerefParamDatabase() Get the property database recording which methods unconditionally
dereference parameters. |
public UnreadFields | getUnreadFields() |
public Collection<XClass> | getXClassCollection() Get Collection of all XClass objects seen so far. |
abstract public void | initDatabases() Instantiate the CheckReturnAnnotationDatabase. |
public boolean | isApplicationClass(JavaClass cls) Return whether or not the given class is an application class. |
public boolean | isApplicationClass(String className) Return whether or not the given class is an application class. |
public boolean | isApplicationClass(ClassDescriptor desc) |
final public void | loadDefaultInterproceduralDatabases() If possible, load default (built-in) interprocedural property databases. |
final public void | loadInterproceduralDatabases() If possible, load interprocedural property databases. |
public DatabaseType | loadPropertyDatabase(DatabaseType database, String fileName, String description) Load an interprocedural property database. |
public DatabaseType | loadPropertyDatabaseFromResource(DatabaseType database, String resourceName, String description) Load an interprocedural property database. |
public static void | logError(String msg, Exception e) |
public static void | logError(String msg) |
abstract public JavaClass | lookupClass(String className) Lookup a class. |
public JavaClass | lookupClass(ClassDescriptor classDescriptor) Lookup a class. |
final public String | lookupSourceFile(String dottedClassName) |
public static JavaClass | lookupSystemClass(String className) This is equivalent to Repository.lookupClass() or this.lookupClass(),
except it uses the original Repository instead of the current one. |
public static void | removeCurrentAnalysisContext() |
public static void | reportMissingClass(ClassNotFoundException e) |
final public void | setBoolProperty(int prop, boolean value) Set a boolean property. |
public static void | setCurrentAnalysisContext(AnalysisContext analysisContext) Set the current analysis context for this thread. |
final public void | setDatabaseInputDir(String databaseInputDir) Set the interprocedural database input directory. |
final public void | setDatabaseOutputDir(String databaseOutputDir) Set the interprocedural database output directory. |
public void | setDirectlyRelevantTypeQualifiersDatabase(DirectlyRelevantTypeQualifiersDatabase directlyRelevantTypeQualifiersDatabase) |
public boolean | setMissingClassWarningsSuppressed(boolean value) |
final public void | setSourcePath(List<String> sourcePath) Set the source path. |
public void | setUnreadFields(UnreadFields unreadFields) |
public void | storePropertyDatabase(DatabaseType database, String fileName, String description) Write an interprocedural property database. |
abstract public void | updateDatabases(int pass) After a pass has been completed, allow the analysis context to update information. |