org.quasiliteral.base
Interface MatchMaker

All Known Implementing Classes:
ParseNode, QAstro, QuasiContent, Substituter

public interface MatchMaker

Untamed:


Method Summary
 ConstList matchBind(ConstList args, Object specimen)
          Enabled: Reports failure by returning null.
 boolean matchBind(ConstList args, Object specimen, FlexList bindings)
          Enabled: Reports failure by returning false, in which case 'bindings' should not be assumed to still be meaningful.
 

Method Detail

matchBind

public ConstList matchBind(ConstList args,
                           Object specimen)
Enabled: Reports failure by returning null. Reports success by returning a list of bindings. Appropriate for a top level match.


matchBind

public boolean matchBind(ConstList args,
                         Object specimen,
                         FlexList bindings)
Enabled: Reports failure by returning false, in which case 'bindings' should not be assumed to still be meaningful. Reports success by returning true and adding the bindings to appropriate places in 'bindings'. Appropriate for matching a component pattern within a larger pattern match.



comments?