org.erights.e.elib.prim
Interface JMatcher

All Known Implementing Classes:
ForwardingSlot

public interface JMatcher

Untamed: Non-public classes that would introduce a public matcher should instead implement JMatcher so that their match method is actually public.

Author:
Mark S. Miller

Method Summary
 Object match(String verb, ConstList args)
          Suppressed: When a JMatcher (or any object with a truly public 'match(String, ConstList)' method) is invoked through ELib, if no matching method is found, then the match/2 method is invoked with the verb (message name) and args of the message that didn't match.
 

Method Detail

match

public Object match(String verb,
                    ConstList args)
Suppressed: When a JMatcher (or any object with a truly public 'match(String, ConstList)' method) is invoked through ELib, if no matching method is found, then the match/2 method is invoked with the verb (message name) and args of the message that didn't match.

When defining a matcher, it's a good idea to define it to respond to MirandaMethods.__respondsTo(java.lang.Object, java.lang.String, int) and MirandaMethods.__getAllegedType(java.lang.Object) appropriately. Most appropriate would be to respond with a description of the behavior of the matcher as a whole. But a degenerate behavior is better than none.

Parameters:
verb -
args -
Returns:


comments?