|
||||||||||
| 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.PublishPattern
public class PublishPattern
| Field Summary |
|---|
| Fields inherited from class orc.ast.extended.pattern.Pattern |
|---|
EQUAL, ERROR, IF, NONE, SOME, TRYCONS, TRYNIL, TRYNONE, TRYSOME |
| Constructor Summary | |
|---|---|
PublishPattern(Pattern p)
|
|
| 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. |
boolean |
strict()
|
java.lang.String |
toString()
|
| Methods inherited from class orc.ast.extended.pattern.Pattern |
|---|
caseof, compare, condense, fail, getSourceLocation, lift, nth, process, setSourceLocation, trycons, trynil, trysize, unapply |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PublishPattern(Pattern p)
| Method Detail |
|---|
public boolean strict()
strict in class Pattern
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 | |||||||||