Package pascal.taie.analysis.pta.plugin
Class ClassInitializer
java.lang.Object
pascal.taie.analysis.pta.plugin.ClassInitializer
- All Implemented Interfaces:
Plugin
Triggers the analysis of class initializers.
Well, the description of "when initialization occurs" of JLS (11 Ed., 12.4.1)
and JVM Spec. (11 Ed., 5.5) looks not very consistent.
TODO: handles class initialization triggered by MethodHandle,
and superinterfaces (that declare default methods).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onNewMethod
(JMethod method) Invoked when a new reachable method is discovered.void
Invoked when a new reachable stmt is discovered.void
Sets pointer analysis solver which will be used later by the plugin.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface pascal.taie.analysis.pta.plugin.Plugin
onFinish, onNewCallEdge, onNewCSMethod, onNewPointsToSet, onStart, onUnresolvedCall
-
Constructor Details
-
ClassInitializer
public ClassInitializer()
-
-
Method Details
-
setSolver
Description copied from interface:Plugin
Sets pointer analysis solver which will be used later by the plugin. -
onNewMethod
Description copied from interface:Plugin
Invoked when a new reachable method is discovered.- Specified by:
onNewMethod
in interfacePlugin
- Parameters:
method
- new reachable method
-
onNewStmt
Description copied from interface:Plugin
Invoked when a new reachable stmt is discovered.
-