Class CallGraphPreferences
- java.lang.Object
-
- org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
-
- com.ensoftcorp.open.cg.preferences.CallGraphPreferences
-
public class CallGraphPreferences extends org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CHA_ALGORITHM
Enable/disable CHAstatic java.lang.Boolean
CHA_ALGORITHM_DEFAULT
static java.lang.String
DEBUG_LOGGING
Enable/disable debug loggingstatic java.lang.Boolean
DEBUG_LOGGING_DEFAULT
static java.lang.String
ETA_ALGORITHM
Enable/disable ETAstatic java.lang.Boolean
ETA_ALGORITHM_DEFAULT
static java.lang.String
FTA_ALGORITHM
Enable/disable FTAstatic java.lang.Boolean
FTA_ALGORITHM_DEFAULT
static java.lang.String
GENERAL_LOGGING
Enable/disable general loggingstatic java.lang.Boolean
GENERAL_LOGGING_DEFAULT
static java.lang.String
INFER_LIBRARY_CALLBACK_ENTRY_POINTS
static java.lang.Boolean
INFER_LIBRARY_CALLBACK_ENTRY_POINTS_DEFAULT
static java.lang.String
LIBRARY_CALL_GRAPH_CONSTRUCTION
static java.lang.Boolean
LIBRARY_CALL_GRAPH_CONSTRUCTION_DEFAULT
static java.lang.String
MTA_ALGORITHM
Enable/disable MTAstatic java.lang.Boolean
MTA_ALGORITHM_DEFAULT
static java.lang.String
RA_ALGORITHM
Enable/disable RAstatic java.lang.Boolean
RA_ALGORITHM_DEFAULT
static java.lang.String
REACHABILITY_RESTRICTIONS
Enable/disable reachability restrictions in various CG algorithmsstatic java.lang.Boolean
REACHABILITY_RESTRICTIONS_DEFAULT
static java.lang.String
RTA_ALGORITHM
Enable/disable RTAstatic java.lang.Boolean
RTA_ALGORITHM_DEFAULT
static java.lang.String
XTA_ALGORITHM
Enable/disable XTAstatic java.lang.Boolean
XTA_ALGORITHM_DEFAULT
static java.lang.String
XTA2_ALGORITHM
Enable/disable XTA2static java.lang.Boolean
XTA2_ALGORITHM_DEFAULT
static java.lang.String
ZEROCFA_ALGORITHM
Enable/disable ZeroCFAstatic java.lang.Boolean
ZEROCFA_ALGORITHM_DEFAULT
-
Constructor Summary
Constructors Constructor Description CallGraphPreferences()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
enableClassHierarchyAnalysis(boolean enabled)
Configures Class Hierarchy Analysisstatic void
enableClassicHybridTypeAnalysis(boolean enabled)
Configures Classic Hybrid Type Analysisstatic void
enableDebugLogging(boolean enabled)
Configures debug loggingstatic void
enableExceptionTypeAnalysis(boolean enabled)
Configures Exception Type Analysisstatic void
enableFieldTypeAnalysis(boolean enabled)
Configures Field Type Analysisstatic void
enableGeneralLogging(boolean enabled)
Configures general loggingstatic void
enableHybridTypeAnalysis(boolean enabled)
Configures Hybrid Type Analysisstatic void
enableLibraryCallbackEntryPointsInfererence(boolean enabled)
Configures library callback entry point inferencestatic void
enableLibraryCallGraphConstruction(boolean enabled)
Configures library call graph constructionstatic void
enableMethodTypeAnalysis(boolean enabled)
Configures Method Type Analysisstatic void
enableRapidTypeAnalysis(boolean enabled)
Configures Rapid Type Analysisstatic void
enableReachabilityAnalysis(boolean enabled)
Configures Reachability Analysisstatic void
enableReachabilityRestrictions(boolean enabled)
Configures reachability restrictionsstatic void
enableZeroCFAAnalysis(boolean enabled)
Configures 0-CFA Analysisstatic org.eclipse.jface.preference.IPreferenceStore
getPreferenceStore()
Returns the preference store used for these preferencesvoid
initializeDefaultPreferences()
static boolean
isClassHierarchyAnalysisEnabled()
static boolean
isClassicHybridTypeAnalysisEnabled()
static boolean
isDebugLoggingEnabled()
Returns true if loop cataloging is enabledstatic boolean
isExceptionTypeAnalysisEnabled()
static boolean
isFieldTypeAnalysisEnabled()
static boolean
isGeneralLoggingEnabled()
static boolean
isHybridTypeAnalysisEnabled()
static boolean
isLibraryCallbackEntryPointsInferenceEnabled()
static boolean
isLibraryCallGraphConstructionEnabled()
static boolean
isMethodTypeAnalysisEnabled()
static boolean
isRapidTypeAnalysisEnabled()
static boolean
isReachabilityAnalysisEnabled()
static boolean
isReachabilityEnabled()
static boolean
isZeroCFAEnabled()
static void
loadPreferences()
Loads or refreshes current preference valuesstatic void
restoreDefaults()
Restores the default preferences
-
-
-
Field Detail
-
DEBUG_LOGGING
public static final java.lang.String DEBUG_LOGGING
Enable/disable debug logging- See Also:
- Constant Field Values
-
DEBUG_LOGGING_DEFAULT
public static final java.lang.Boolean DEBUG_LOGGING_DEFAULT
-
RA_ALGORITHM
public static final java.lang.String RA_ALGORITHM
Enable/disable RA- See Also:
- Constant Field Values
-
RA_ALGORITHM_DEFAULT
public static final java.lang.Boolean RA_ALGORITHM_DEFAULT
-
CHA_ALGORITHM
public static final java.lang.String CHA_ALGORITHM
Enable/disable CHA- See Also:
- Constant Field Values
-
CHA_ALGORITHM_DEFAULT
public static final java.lang.Boolean CHA_ALGORITHM_DEFAULT
-
RTA_ALGORITHM
public static final java.lang.String RTA_ALGORITHM
Enable/disable RTA- See Also:
- Constant Field Values
-
RTA_ALGORITHM_DEFAULT
public static final java.lang.Boolean RTA_ALGORITHM_DEFAULT
-
MTA_ALGORITHM
public static final java.lang.String MTA_ALGORITHM
Enable/disable MTA- See Also:
- Constant Field Values
-
MTA_ALGORITHM_DEFAULT
public static final java.lang.Boolean MTA_ALGORITHM_DEFAULT
-
FTA_ALGORITHM
public static final java.lang.String FTA_ALGORITHM
Enable/disable FTA- See Also:
- Constant Field Values
-
FTA_ALGORITHM_DEFAULT
public static final java.lang.Boolean FTA_ALGORITHM_DEFAULT
-
ETA_ALGORITHM
public static final java.lang.String ETA_ALGORITHM
Enable/disable ETA- See Also:
- Constant Field Values
-
ETA_ALGORITHM_DEFAULT
public static final java.lang.Boolean ETA_ALGORITHM_DEFAULT
-
XTA_ALGORITHM
public static final java.lang.String XTA_ALGORITHM
Enable/disable XTA- See Also:
- Constant Field Values
-
XTA_ALGORITHM_DEFAULT
public static final java.lang.Boolean XTA_ALGORITHM_DEFAULT
-
XTA2_ALGORITHM
public static final java.lang.String XTA2_ALGORITHM
Enable/disable XTA2- See Also:
- Constant Field Values
-
XTA2_ALGORITHM_DEFAULT
public static final java.lang.Boolean XTA2_ALGORITHM_DEFAULT
-
ZEROCFA_ALGORITHM
public static final java.lang.String ZEROCFA_ALGORITHM
Enable/disable ZeroCFA- See Also:
- Constant Field Values
-
ZEROCFA_ALGORITHM_DEFAULT
public static final java.lang.Boolean ZEROCFA_ALGORITHM_DEFAULT
-
GENERAL_LOGGING
public static final java.lang.String GENERAL_LOGGING
Enable/disable general logging- See Also:
- Constant Field Values
-
GENERAL_LOGGING_DEFAULT
public static final java.lang.Boolean GENERAL_LOGGING_DEFAULT
-
INFER_LIBRARY_CALLBACK_ENTRY_POINTS
public static final java.lang.String INFER_LIBRARY_CALLBACK_ENTRY_POINTS
- See Also:
- Constant Field Values
-
INFER_LIBRARY_CALLBACK_ENTRY_POINTS_DEFAULT
public static final java.lang.Boolean INFER_LIBRARY_CALLBACK_ENTRY_POINTS_DEFAULT
-
LIBRARY_CALL_GRAPH_CONSTRUCTION
public static final java.lang.String LIBRARY_CALL_GRAPH_CONSTRUCTION
- See Also:
- Constant Field Values
-
LIBRARY_CALL_GRAPH_CONSTRUCTION_DEFAULT
public static final java.lang.Boolean LIBRARY_CALL_GRAPH_CONSTRUCTION_DEFAULT
-
REACHABILITY_RESTRICTIONS
public static final java.lang.String REACHABILITY_RESTRICTIONS
Enable/disable reachability restrictions in various CG algorithms- See Also:
- Constant Field Values
-
REACHABILITY_RESTRICTIONS_DEFAULT
public static final java.lang.Boolean REACHABILITY_RESTRICTIONS_DEFAULT
-
-
Method Detail
-
getPreferenceStore
public static org.eclipse.jface.preference.IPreferenceStore getPreferenceStore()
Returns the preference store used for these preferences- Returns:
-
enableDebugLogging
public static void enableDebugLogging(boolean enabled)
Configures debug logging
-
isDebugLoggingEnabled
public static boolean isDebugLoggingEnabled()
Returns true if loop cataloging is enabled- Returns:
-
isReachabilityAnalysisEnabled
public static boolean isReachabilityAnalysisEnabled()
-
enableReachabilityAnalysis
public static void enableReachabilityAnalysis(boolean enabled)
Configures Reachability Analysis
-
isClassHierarchyAnalysisEnabled
public static boolean isClassHierarchyAnalysisEnabled()
-
enableClassHierarchyAnalysis
public static void enableClassHierarchyAnalysis(boolean enabled)
Configures Class Hierarchy Analysis
-
isRapidTypeAnalysisEnabled
public static boolean isRapidTypeAnalysisEnabled()
-
enableRapidTypeAnalysis
public static void enableRapidTypeAnalysis(boolean enabled)
Configures Rapid Type Analysis
-
isMethodTypeAnalysisEnabled
public static boolean isMethodTypeAnalysisEnabled()
-
enableMethodTypeAnalysis
public static void enableMethodTypeAnalysis(boolean enabled)
Configures Method Type Analysis
-
isFieldTypeAnalysisEnabled
public static boolean isFieldTypeAnalysisEnabled()
-
enableFieldTypeAnalysis
public static void enableFieldTypeAnalysis(boolean enabled)
Configures Field Type Analysis
-
isExceptionTypeAnalysisEnabled
public static boolean isExceptionTypeAnalysisEnabled()
-
enableExceptionTypeAnalysis
public static void enableExceptionTypeAnalysis(boolean enabled)
Configures Exception Type Analysis
-
isClassicHybridTypeAnalysisEnabled
public static boolean isClassicHybridTypeAnalysisEnabled()
-
enableClassicHybridTypeAnalysis
public static void enableClassicHybridTypeAnalysis(boolean enabled)
Configures Classic Hybrid Type Analysis
-
isHybridTypeAnalysisEnabled
public static boolean isHybridTypeAnalysisEnabled()
-
enableHybridTypeAnalysis
public static void enableHybridTypeAnalysis(boolean enabled)
Configures Hybrid Type Analysis
-
isZeroCFAEnabled
public static boolean isZeroCFAEnabled()
-
enableZeroCFAAnalysis
public static void enableZeroCFAAnalysis(boolean enabled)
Configures 0-CFA Analysis
-
isGeneralLoggingEnabled
public static boolean isGeneralLoggingEnabled()
-
enableGeneralLogging
public static void enableGeneralLogging(boolean enabled)
Configures general logging
-
isLibraryCallbackEntryPointsInferenceEnabled
public static boolean isLibraryCallbackEntryPointsInferenceEnabled()
-
enableLibraryCallbackEntryPointsInfererence
public static void enableLibraryCallbackEntryPointsInfererence(boolean enabled)
Configures library callback entry point inference
-
isLibraryCallGraphConstructionEnabled
public static boolean isLibraryCallGraphConstructionEnabled()
-
enableLibraryCallGraphConstruction
public static void enableLibraryCallGraphConstruction(boolean enabled)
Configures library call graph construction
-
isReachabilityEnabled
public static boolean isReachabilityEnabled()
-
enableReachabilityRestrictions
public static void enableReachabilityRestrictions(boolean enabled)
Configures reachability restrictions
-
initializeDefaultPreferences
public void initializeDefaultPreferences()
- Specified by:
initializeDefaultPreferences
in classorg.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
-
restoreDefaults
public static void restoreDefaults()
Restores the default preferences
-
loadPreferences
public static void loadPreferences()
Loads or refreshes current preference values
-
-