public static class LinkageNode.ApplyingNodeHandler extends java.lang.Object implements LinkageNode.NodeHandler
Generic LinkageNode.NodeHandler impl that delegates to an object
 implementing an apply(Object[]) method.
The apply(Object[]) method is passed the argument vector
 {node} where node is the parameter passed to handleNode(msim.model.LinkageNode).  If it returns a Boolean or a boolean with then the value
 has the same semantics as LinkageNode.NodeHandler.handleNode(msim.model.LinkageNode); other return
 types are treated as true.
This is primarily for integration with higher-level scripting environments such as JScheme.
| Modifier and Type | Field and Description | 
|---|---|
| protected java.lang.Object | appliccablethe delegate | 
| protected java.lang.reflect.Method | applyMethodthe apply method on the delegate | 
| Constructor and Description | 
|---|
| LinkageNode.ApplyingNodeHandler(java.lang.Object appliccable)uses default applyMethodName | 
| LinkageNode.ApplyingNodeHandler(java.lang.Object appliccable,
                               java.lang.String applyMethodName)Make a new delegating handler. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | handleNode(LinkageNode node)Delegates to  appliccable.apply(Object[]), see
 class header doc. | 
protected final java.lang.Object appliccable
protected final java.lang.reflect.Method applyMethod
public LinkageNode.ApplyingNodeHandler(java.lang.Object appliccable,
                               java.lang.String applyMethodName)
Make a new delegating handler.
applyMethodName - the name of the apply(Object[]) method,
 or null to use "apply"public LinkageNode.ApplyingNodeHandler(java.lang.Object appliccable)
public boolean handleNode(LinkageNode node)
Delegates to appliccable.apply(Object[]), see
 class header doc.
handleNode in interface LinkageNode.NodeHandler