/** * @inheritDoc */ @Override public void meet(Bound theOp) throws Exception { mBuffer.append(" bound("); theOp.getArg().visit(this); mBuffer.append(")"); }
@Override public Bound visit(ASTBound node, Object data) throws VisitorException { return new Bound((Var)super.visit(node, data)); }
@Override public void meet(Bound bound) { super.meet(bound); if (bound.getArg().hasValue()) { // variable is always bound bound.replaceWith(new ValueConstant(BooleanLiteral.TRUE)); } }
public Bound(Var arg) { setArg(arg); }
public Bound(Var arg) { setArg(arg); }
/** * @inheritDoc */ @Override public void meet(Bound theOp) throws Exception { mBuffer.append(" bound("); theOp.getArg().visit(this); mBuffer.append(")"); }
@Override public Bound visit(ASTBound node, Object data) throws VisitorException { return new Bound((Var)super.visit(node, data)); }
@Override public void meet(Bound bound) { super.meet(bound); if (bound.getArg().hasValue()) { // variable is always bound bound.replaceWith(new ValueConstant(BooleanLiteral.TRUE)); } }
@Override public void replaceChildNode(QueryModelNode current, QueryModelNode replacement) { if (arg == current) { setArg((Var)replacement); } else { super.replaceChildNode(current, replacement); } }
@Override public boolean equals(Object other) { if (other instanceof Bound) { Bound o = (Bound)other; return arg.equals(o.getArg()); } return false; }
@Override public Bound visit(ASTBound node, Object data) throws VisitorException { return new Bound((Var)super.visit(node, data)); }
@Override public void replaceChildNode(QueryModelNode current, QueryModelNode replacement) { if (arg == current) { setArg((Var)replacement); } else { super.replaceChildNode(current, replacement); } }
/** * @inheritDoc */ @Override public void meet(Bound theOp) throws Exception { mBuffer.append(" bound("); theOp.getArg().visit(this); mBuffer.append(")"); }
@Override public ValueExpr visit(ASTBound node, Object data) throws VisitorException { Var var = (Var)node.getArg().jjtAccept(this, null); return new Bound(var); }
@Override public boolean equals(Object other) { if (other instanceof Bound) { Bound o = (Bound)other; return arg.equals(o.getArg()); } return false; }
@Override public ValueExpr visit(ASTBound node, Object data) throws VisitorException { Var var = (Var)node.getArg().jjtAccept(this, null); return new Bound(var); }
/** * @inheritDoc */ @Override public void meet(Bound theOp) throws Exception { mBuffer.append(" bound("); theOp.getArg().visit(this); mBuffer.append(")"); }
@Override public ValueExpr visit(ASTBound node, Object data) throws VisitorException { Var var = (Var)node.getArg().jjtAccept(this, null); return new Bound(var); }