/** * @inheritDoc */ @Override public void meet(Regex theOp) throws Exception { mBuffer.append(" regex("); theOp.getArg().visit(this); mBuffer.append(", "); theOp.getPatternArg().visit(this); if (theOp.getFlagsArg() != null) { mBuffer.append(","); theOp.getFlagsArg().visit(this); } mBuffer.append(")"); }
/** * @inheritDoc */ @Override public void meet(Regex theOp) throws Exception { mBuffer.append(" regex("); theOp.getArg().visit(this); mBuffer.append(", "); theOp.getPatternArg().visit(this); if (theOp.getFlagsArg() != null) { mBuffer.append(","); theOp.getFlagsArg().visit(this); } mBuffer.append(")"); }
/** * @inheritDoc */ @Override public void meet(Regex theOp) throws Exception { mBuffer.append(" regex("); theOp.getArg().visit(this); mBuffer.append(", "); theOp.getPatternArg().visit(this); if (theOp.getFlagsArg() != null) { mBuffer.append(","); theOp.getFlagsArg().visit(this); } mBuffer.append(")"); }
/** * @inheritDoc */ @Override public void meet(Regex theOp) throws Exception { mBuffer.append(" regex("); theOp.getArg().visit(this); mBuffer.append(", "); theOp.getPatternArg().visit(this); if (theOp.getFlagsArg() != null) { mBuffer.append(","); theOp.getFlagsArg().visit(this); } mBuffer.append(")"); }
/** * @inheritDoc */ @Override public void meet(Regex theOp) throws Exception { mBuffer.append(" regex("); theOp.getArg().visit(this); mBuffer.append(", "); theOp.getPatternArg().visit(this); if (theOp.getFlagsArg() != null) { mBuffer.append(","); theOp.getFlagsArg().visit(this); } mBuffer.append(")"); }
/** * @inheritDoc */ @Override public void meet(Regex theOp) throws Exception { mBuffer.append(" regex("); theOp.getArg().visit(this); mBuffer.append(", "); theOp.getPatternArg().visit(this); if (theOp.getFlagsArg() != null) { mBuffer.append(","); theOp.getFlagsArg().visit(this); } mBuffer.append(")"); }
/** * Override meetBinaryValueOperator */ @Override public void meet(Regex node) { super.meetNode(node); if (isConstant(node.getArg()) && isConstant(node.getPatternArg()) && isConstant(node.getFlagsArg())) { try { Value value = strategy.evaluate(node, EmptyBindingSet.getInstance()); node.replaceWith(new ValueConstant(value)); } catch (ValueExprEvaluationException e) { logger.debug("Failed to evaluate BinaryValueOperator with two constant arguments", e); } catch (QueryEvaluationException e) { logger.error("Query evaluation exception caught", e); } } }
/** * Override meetBinaryValueOperator */ @Override public void meet(Regex node) { super.meetNode(node); if (isConstant(node.getArg()) && isConstant(node.getPatternArg()) && isConstant(node.getFlagsArg())) { try { Value value = strategy.evaluate(node, EmptyBindingSet.getInstance()); node.replaceWith(new ValueConstant(value)); } catch (ValueExprEvaluationException e) { logger.debug("Failed to evaluate BinaryValueOperator with two constant arguments", e); } catch (QueryEvaluationException e) { logger.error("Query evaluation exception caught", e); } } }
throws ValueExprEvaluationException, QueryEvaluationException Value arg = evaluate(node.getArg(), bindings); Value parg = evaluate(node.getPatternArg(), bindings); Value farg = null;
throws ValueExprEvaluationException, QueryEvaluationException Value arg = evaluate(node.getArg(), bindings); Value parg = evaluate(node.getPatternArg(), bindings); Value farg = null;
Value arg = evaluate(node.getArg(), bindings); Value parg = evaluate(node.getPatternArg(), bindings); Value farg = null;