public class MethodHandlePlugin extends Object implements NodePlugin
Modifier and Type | Field and Description |
---|---|
private MethodHandleAccessProvider |
methodHandleAccess |
Constructor and Description |
---|
MethodHandlePlugin(MethodHandleAccessProvider methodHandleAccess) |
Modifier and Type | Method and Description |
---|---|
boolean |
handleInvoke(GraphBuilderContext b,
ResolvedJavaMethod method,
ValueNode[] args)
Handle the parsing of a method invocation bytecode to a method that can be bound statically.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canChangeStackKind, handleCheckCast, handleInstanceOf, handleLoadField, handleLoadIndexed, handleLoadStaticField, handleStoreField, handleStoreIndexed, handleStoreStaticField
private final MethodHandleAccessProvider methodHandleAccess
public MethodHandlePlugin(MethodHandleAccessProvider methodHandleAccess)
public boolean handleInvoke(GraphBuilderContext b, ResolvedJavaMethod method, ValueNode[] args)
NodePlugin
push
a value as the
result of the method invocation using the return kind
of the
method.handleInvoke
in interface NodePlugin
b
- the contextmethod
- the statically bound, invoked methodargs
- the arguments of the method invocation