|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orc.ast.extended.pattern.Pattern orc.ast.extended.pattern.VariablePattern
public class VariablePattern
Field Summary | |
---|---|
FreeVariable |
x
|
Fields inherited from class orc.ast.extended.pattern.Pattern |
---|
EQUAL, ERROR, IF, NONE, SOME, TRYCONS, TRYNIL, TRYNONE, TRYSOME |
Constructor Summary | |
---|---|
VariablePattern(java.lang.String s)
|
Method Summary | ||
---|---|---|
|
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. |
|
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 |
Field Detail |
---|
public FreeVariable x
Constructor Detail |
---|
public VariablePattern(java.lang.String s)
Method Detail |
---|
public boolean strict()
strict
in class Pattern
public void process(Variable fragment, PatternSimplifier visitor) throws NonlinearPatternException
Pattern
process
in class Pattern
fragment
- A variable holding the current fragment of the value to be matchedvisitor
- A visitor object which accumulates an expression and a transformer
NonlinearPatternException
public java.lang.String toString()
toString
in class java.lang.Object
public <E> E accept(Visitor<E> visitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |