orc.ast.extended.pattern
Class EqPattern

java.lang.Object
  extended by orc.ast.extended.pattern.Pattern
      extended by orc.ast.extended.pattern.EqPattern
All Implemented Interfaces:
ASTNode, Locatable, Located

public class EqPattern
extends Pattern


Field Summary
 FreeVariable x
           
 
Fields inherited from class orc.ast.extended.pattern.Pattern
EQUAL, ERROR, IF, NONE, SOME, TRYCONS, TRYNIL, TRYNONE, TRYSOME
 
Constructor Summary
EqPattern(java.lang.String s)
           
 
Method Summary
<E> E
accept(Visitor<E> visitor)
           
 void process(Variable fragment, PatternSimplifier visitor)
          Visit a pattern recursively, creating two products: An expression that will examine a value to determine whether it matches a pattern, building an output tuple of all value fragments which will be bound to variables.
 java.lang.String toString()
           
 
Methods inherited from class orc.ast.extended.pattern.Pattern
caseof, compare, condense, fail, getSourceLocation, lift, nth, process, setSourceLocation, strict, trycons, trynil, trysize, unapply
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public FreeVariable x
Constructor Detail

EqPattern

public EqPattern(java.lang.String s)
Method Detail

process

public void process(Variable fragment,
                    PatternSimplifier visitor)
             throws PatternException
Description copied from class: Pattern
Visit a pattern recursively, creating two products: An expression that will examine a value to determine whether it matches a pattern, building an output tuple of all value fragments which will be bound to variables. An expression transformer that will examine such an output tuple and bind its elements to variables in a given expression.

Specified by:
process in class Pattern
Parameters:
fragment - A variable holding the current fragment of the value to be matched
visitor - A visitor object which accumulates an expression and a transformer
Throws:
PatternException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

accept

public <E> E accept(Visitor<E> visitor)