orc.ast.extended.pattern
Class CallPattern
java.lang.Object
   orc.ast.extended.pattern.Pattern
orc.ast.extended.pattern.Pattern
       orc.ast.extended.pattern.CallPattern
orc.ast.extended.pattern.CallPattern
- All Implemented Interfaces: 
- Locatable, Located
- public class CallPattern 
- extends Pattern
 
 
 
| Method Summary | 
|  void | process(Var 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, 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 | 
 
CallPattern
public CallPattern(java.lang.String site,
                   java.util.List<Pattern> args)
CallPattern
public CallPattern(java.lang.String site,
                   Pattern argpat)
process
public void process(Var 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:
- processin 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:
- toStringin class- java.lang.Object
 
-