|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orc.ast.extended.declaration.def.Clause
public class Clause
Field Summary | |
---|---|
Expression |
body
|
java.util.List<Pattern> |
ps
|
Constructor Summary | |
---|---|
Clause(java.util.List<Pattern> ps,
Expression body)
|
Method Summary | |
---|---|
Expression |
simplify(java.util.List<Variable> formals,
Expression otherwise)
Simplify a clause. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.List<Pattern> ps
public Expression body
Constructor Detail |
---|
public Clause(java.util.List<Pattern> ps, Expression body)
Method Detail |
---|
public Expression simplify(java.util.List<Variable> formals, Expression otherwise) throws CompilationException
formals
- The formal arguments against which to match. These are
created elsewhere, by some other translation step.otherwise
- The alternative expression to execute if the clause does not fire.
CompilationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |