orc.ast.extended.pattern
Class ListPattern

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

public class ListPattern
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
ListPattern(java.util.List<Pattern> ps)
           
 
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

ListPattern

public ListPattern(java.util.List<Pattern> ps)
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) => _|_