noc.core.confdb.engine.transformer

Module Contents

noc.core.confdb.engine.transformer.CVAR_NAME = _ctx
class noc.core.confdb.engine.transformer.PredicateTransformer(engine)

Bases: ast.NodeTransformer

wrap_callable(self, node)
wrap_visitor(self, node)
wrap_expr(self, node)
visit_args(self, fn, args)
visit_Call(self, node, _input=None)
visit_BoolOp(self, node, _input=None)
visit_Name(self, node)

Convert Name(id=name) to self.fn_Var(name) :param node: :return:

visit_UnaryOp(self, node)
class noc.core.confdb.engine.transformer.ExpressionTransformer

Bases: ast.NodeTransformer

RESERVED_NAMES
visit_Name(self, node)