public class FlatConst extends FlatPred
| Modifier and Type | Field and Description |
|---|---|
protected net.sourceforge.czt.z.ast.Expr |
constant_ |
| Constructor and Description |
|---|
FlatConst(net.sourceforge.czt.z.ast.ZName a,
net.sourceforge.czt.z.ast.Expr b) |
| 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)
Chooses the mode in which the predicate can be evaluated.
|
FlatConst |
create(Object[] newargs) |
Object[] |
getChildren()
getChildren returns { args[0], constant }
|
boolean |
inferBounds(Bounds bnds)
Infer bounds for any integer variables.
|
boolean |
nextEvaluation()
Does the actual evaluation
|
String |
toString()
A default implementation of toString.
|
freeVars, getArgs, getEnvir, getLastArg, getMode, indent, modeAllDefined, modeCollection, modeFunction, modeOneOutput, printArg, printBinOp, printLastArg, printName, printQuant, setMode, startEvaluationpublic FlatConst(net.sourceforge.czt.z.ast.ZName a,
net.sourceforge.czt.z.ast.Expr b)
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()
nextEvaluation in class FlatPredpublic String toString()
FlatPredpublic Object[] getChildren()
public <R> R accept(net.sourceforge.czt.util.Visitor<R> visitor)
FlatPredCopyright © 2003–2016 Community Z Tools Project. All rights reserved.