| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorc.ast.extended.pattern.Pattern
orc.ast.extended.pattern.LiteralPattern
public class LiteralPattern
| Field Summary | 
|---|
| Fields inherited from class orc.ast.extended.pattern.Pattern | 
|---|
| EQUAL, IF, NONE, SOME, TRYCONS, TRYNIL, TRYNONE, TRYSOME | 
| Constructor Summary | |
|---|---|
| LiteralPattern(Literal l) | |
| 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 | 
| Constructor Detail | 
|---|
public LiteralPattern(Literal l)
| Method Detail | 
|---|
public void process(Var fragment,
                    PatternSimplifier visitor)
             throws PatternException
Pattern
process in class Patternfragment - A variable holding the current fragment of the value to be matchedvisitor - A visitor object which accumulates an expression and a transformer
PatternExceptionpublic java.lang.String toString()
toString in class java.lang.Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||