private static class ControlFlowOps.LastInvokeDetails
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Class<?>[] |
argumentTypes
The argument types for this call.
|
private java.lang.ref.WeakReference<java.lang.Object> |
eventProcedureContext
The event procedure context, in case of an ASYNC call.
|
private java.lang.String |
eventProcedureName
The event procedure name being invoked, in case of an ASYNC call.
|
private java.lang.ref.WeakReference<java.lang.Object> |
inHandle
The target handle for an internal procedure, specified at the call.
|
private java.lang.String |
legacyName
The legacy name of the target.
|
private java.lang.reflect.Method |
method
The Java method to invoke.
|
private java.lang.String |
modes
The parameter modes.
|
private java.lang.ref.WeakReference<java.lang.Object> |
reference
|
private java.lang.String |
target
The exact target name used at the call-site.
|
| Constructor and Description |
|---|
LastInvokeDetails(java.lang.String legacyName,
java.lang.String target,
java.lang.String modes,
java.lang.Object inHandle,
java.lang.String eventProcedureName,
java.lang.Object eventProcedureContext,
java.lang.Object reference,
java.lang.reflect.Method method,
java.lang.Class<?>[] argumentTypes)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isExternalProgram()
Check if this cached details are for an external program.
|
private boolean |
matches(InvokeConfig cfg)
Check if this invocation matches the specified configuration.
|
boolean |
matchesFunction(InvokeConfig cfg)
Check if this invocation matches a function call.
|
boolean |
matchesRun(InvokeConfig cfg)
Check if this invocation matches a RUN call.
|
private boolean |
validReference()
Check if the
reference still exists. |
private final java.lang.String legacyName
private final java.lang.String target
private final java.lang.String modes
private final java.lang.String eventProcedureName
private final java.lang.Class<?>[] argumentTypes
private final java.lang.ref.WeakReference<java.lang.Object> eventProcedureContext
private final java.lang.ref.WeakReference<java.lang.Object> inHandle
private final java.lang.ref.WeakReference<java.lang.Object> reference
private final java.lang.reflect.Method method
public LastInvokeDetails(java.lang.String legacyName,
java.lang.String target,
java.lang.String modes,
java.lang.Object inHandle,
java.lang.String eventProcedureName,
java.lang.Object eventProcedureContext,
java.lang.Object reference,
java.lang.reflect.Method method,
java.lang.Class<?>[] argumentTypes)
legacyName - The legacy name of the target.target - The exact target name used at the call-site.modes - The parameter modes.inHandle - The target handle for an internal procedure, specified at the call.eventProcedureName - The event procedure name being invoked, in case of an ASYNC call.eventProcedureContext - The event procedure context, in case of an ASYNC call.reference - The actual external program from where the target was resolved and the
method is being invoked.method - The Java method to invoke.argumentTypes - The argument types for this call.public boolean isExternalProgram()
true if method is null.public boolean matchesFunction(InvokeConfig cfg)
cfg - The configuration to match against.true if cfg is for a matching function call.matches(InvokeConfig)public boolean matchesRun(InvokeConfig cfg)
The configuration matches if and only if:
matches(InvokeConfig) is trueInvokeConfig.getServerHandle() is the SESSION handle, if specified.InvokeConfig.getEventProcedure() is the same as eventProcedureName,
if specified.InvokeConfig.getEventProcedureContext() is the same as eventProcedureContext,
if specified.cfg - The configuration to match against.true if cfg is for a matchin RUN call.matches(InvokeConfig)private boolean matches(InvokeConfig cfg)
The configuration matches if and only if:
reference is set and still valid.InvokeConfig.getTarget() is the same as target.InvokeConfig.getModes() is the same as modes, if specified.InvokeConfig.getInHandle() is the same as inHandle, if specified.InvokeConfig.getArguments() types are the same as argumentTypes,
if specified.
cfg - The configuration to match against.true if cfg matches.private boolean validReference()
reference still exists.