final class HotSpotInvocationPlugins extends InvocationPlugins
InvocationPlugins
that disables plugins based on runtime configuration.InvocationPlugins.InvocationPluginReceiver, InvocationPlugins.Registration
Modifier and Type | Field and Description |
---|---|
(package private) HotSpotVMConfig |
config |
parent, plugins
Constructor and Description |
---|
HotSpotInvocationPlugins(HotSpotVMConfig config,
MetaAccessProvider metaAccess) |
Modifier and Type | Method and Description |
---|---|
void |
checkNewNodes(GraphBuilderContext b,
InvocationPlugin plugin,
NodeIterable<Node> newNodes)
Checks a set of nodes added to the graph by an
InvocationPlugin . |
private static boolean |
isClass(ConstantNode node) |
void |
register(InvocationPlugin plugin,
Class<?> declaringClass,
String name,
Class<?>... argumentTypes)
Registers an invocation plugin for a given method.
|
closeRegistration, getParent, lookupInvocation, registerOptional, size, toString
final HotSpotVMConfig config
public HotSpotInvocationPlugins(HotSpotVMConfig config, MetaAccessProvider metaAccess)
public void register(InvocationPlugin plugin, Class<?> declaringClass, String name, Class<?>... argumentTypes)
InvocationPlugins
method
.register
in class InvocationPlugins
argumentTypes
- the argument types of the method. Element 0 of this array must be the
Class
value for InvocationPlugin.Receiver
iff the method is
non-static. Upon returning, element 0 will have been rewritten to
declaringClass
public void checkNewNodes(GraphBuilderContext b, InvocationPlugin plugin, NodeIterable<Node> newNodes)
InvocationPlugins
InvocationPlugin
.checkNewNodes
in class InvocationPlugins
b
- the graph builder that applied the pluginplugin
- a plugin that was just appliednewNodes
- the nodes added to the graph by plugin
private static boolean isClass(ConstantNode node)