orc.ast.extended.pattern
Class ConsPattern

java.lang.Object
  extended by orc.ast.extended.pattern.Pattern
      extended by orc.ast.extended.pattern.ConsPattern

public class ConsPattern
extends Pattern


Field Summary
 
Fields inherited from class orc.ast.extended.pattern.Pattern
CONS, EQUAL, HEAD, IF, ISCONS, ISNIL, ISNONE, ISSOME, NONE, NOT, SOME, TAIL
 
Constructor Summary
ConsPattern(Pattern h, Pattern t)
           
 
Method Summary
 Expression bind(Var u, Expression g)
           
 Expression match(Var u)
           
 
Methods inherited from class orc.ast.extended.pattern.Pattern
bind, filter, ifexp, lift, match, opbind, strict
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsPattern

public ConsPattern(Pattern h,
                   Pattern t)
Method Detail

bind

public Expression bind(Var u,
                       Expression g)
Specified by:
bind in class Pattern

match

public Expression match(Var u)
Specified by:
match in class Pattern
Returns:
A new expression publishing, for each publication !v of f,
 some(v')       if p(v) => v' 
 none           if p(v) => _|_