|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Untamed: Non-public classes that would introduce a public matcher should instead implement JMatcher so that their match method is actually public.
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 |
public Object match(String verb, ConstList args)
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.
verb
- args
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |