public class FlatBinding extends FlatPred
| Modifier and Type | Field and Description |
|---|---|
protected net.sourceforge.czt.z.util.Factory |
factory_ |
| Constructor and Description |
|---|
FlatBinding(List<net.sourceforge.czt.z.ast.ZName> names,
List<net.sourceforge.czt.z.ast.ZName> exprs,
net.sourceforge.czt.z.ast.ZName bind)
Constructs a FlatBinding FlatPred.
|
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(net.sourceforge.czt.util.Visitor<R> visitor)
Calls visitor.visitPred (preferably) or visitor.visitTerm.
|
Mode |
chooseMode(Envir env)
Same modes as FlatTuple
|
boolean |
inferBounds(Bounds bnds)
Infer bounds for any integer variables.
|
boolean |
nextEvaluation()
Generates the next solution that satisfies this predicate.
|
String |
toString()
A default implementation of toString.
|
freeVars, getArgs, getEnvir, getLastArg, getMode, indent, modeAllDefined, modeCollection, modeFunction, modeOneOutput, printArg, printBinOp, printLastArg, printName, printQuant, setMode, startEvaluationpublic FlatBinding(List<net.sourceforge.czt.z.ast.ZName> names, List<net.sourceforge.czt.z.ast.ZName> exprs, net.sourceforge.czt.z.ast.ZName bind)
names - The list of names in the binding (name1,name2,...nameN). (no duplicates)exprs - The list of expressions (e1,e2,...,eN).bind - The name of the BindExpr \lblot name1==e1, ... nameN==eN \rblot.public boolean inferBounds(Bounds bnds)
FlatPredinferBounds in class FlatPredbnds - The database of lower and upper bounds for integer variables.The default implementation infers nothing and returns false.
public Mode chooseMode(Envir env)
chooseMode in class FlatPredpublic boolean nextEvaluation()
FlatPrednextEvaluation in class FlatPredpublic String toString()
FlatPredpublic <R> R accept(net.sourceforge.czt.util.Visitor<R> visitor)
FlatPredCopyright © 2003–2016 Community Z Tools Project. All rights reserved.