public class Flatten extends Object
The ZLive parameter to the constructor is used to access the section manager (to get the current context of the expr/pred).
Modifier and Type | Method and Description |
---|---|
static net.sourceforge.czt.z.ast.Expr |
charTuple(net.sourceforge.czt.z.util.Factory factory,
List<net.sourceforge.czt.z.ast.Decl> decls)
Constructs a characteristic tuple.
|
static List<net.sourceforge.czt.z.ast.ZName> |
declNames(List<net.sourceforge.czt.z.ast.Decl> decls)
An auxiliary method for getting all the names in a list of Decl.
|
net.sourceforge.czt.z.ast.ZName |
flattenExpr(net.sourceforge.czt.z.ast.Expr toFlatten,
FlatPredList destination)
Flattens the toFlatten expression into a list of FlatPred predicates.
|
void |
flattenPred(net.sourceforge.czt.z.ast.Pred toFlatten,
FlatPredList destination)
Flattens the toFlatten predicate into a list of FlatPred predicates.
|
public Flatten(ZLive zlive)
public void flattenPred(net.sourceforge.czt.z.ast.Pred toFlatten, FlatPredList destination) throws net.sourceforge.czt.session.CommandException
toFlatten
- The Pred to flatten.destination
- Generated FlatPred objects are appended to this list.net.sourceforge.czt.session.CommandException
public net.sourceforge.czt.z.ast.ZName flattenExpr(net.sourceforge.czt.z.ast.Expr toFlatten, FlatPredList destination) throws net.sourceforge.czt.session.CommandException
toFlatten
- An Expr to flatten.destination
- Generated FlatPred objects are appended to this list.net.sourceforge.czt.session.CommandException
public static net.sourceforge.czt.z.ast.Expr charTuple(net.sourceforge.czt.z.util.Factory factory, List<net.sourceforge.czt.z.ast.Decl> decls)
decls
- List of declarations.Copyright © 2003–2016 Community Z Tools Project. All rights reserved.