/** * Copy an expression. This makes a deep copy. * * @return the copy of the original expression */ public Expression copy() { return new VennExpression(operand0.copy(), operator, operand1.copy()); }
/** * Copy an expression. This makes a deep copy. * * @return the copy of the original expression */ public Expression copy() { return new VennExpression(operand0.copy(), operator, operand1.copy()); }
/** * Copy an expression. This makes a deep copy. * * @return the copy of the original expression */ public Expression copy() { return new VennExpression(operand0.copy(), operator, operand1.copy()); }
/** * Parse a UnionExpr:<br> * IntersectExceptExpr ( "|" | "union" IntersectExceptExpr )* * * @throws XPathException if any error is encountered * @return the resulting subexpression */ private Expression parseUnionExpression() throws XPathException { Expression exp = parseIntersectExpression(); while (t.currentToken == Token.UNION ) { nextToken(); exp = new VennExpression(exp, Token.UNION, parseIntersectExpression()); setLocation(exp); } return exp; }
/** * Parse a UnionExpr:<br> * IntersectExceptExpr ( "|" | "union" IntersectExceptExpr )* * * @throws XPathException if any error is encountered * @return the resulting subexpression */ private Expression parseUnionExpression() throws XPathException { Expression exp = parseIntersectExpression(); while (t.currentToken == Token.UNION ) { nextToken(); exp = new VennExpression(exp, Token.UNION, parseIntersectExpression()); setLocation(exp); } return exp; }
/** * Copy an expression. This makes a deep copy. * * @return the copy of the original expression * @param rebindings variables that need to be rebound */ /*@NotNull*/ public Expression copy(RebindingMap rebindings) { VennExpression exp = new VennExpression(getLhsExpression().copy(rebindings), operator, getRhsExpression().copy(rebindings)); ExpressionTool.copyLocationInfo(this, exp); return exp; }
/** * Copy an expression. This makes a deep copy. * * @return the copy of the original expression * @param rebindings variables that need to be rebound */ /*@NotNull*/ public Expression copy(RebindingMap rebindings) { VennExpression exp = new VennExpression(getLhsExpression().copy(rebindings), operator, getRhsExpression().copy(rebindings)); ExpressionTool.copyLocationInfo(this, exp); return exp; }
/** * Parse an IntersectExceptExpr:<br> * PathExpr ( ( 'intersect' | 'except') PathExpr )* * * @throws XPathException if any error is encountered * @return the resulting subexpression */ private Expression parseIntersectExpression() throws XPathException { Expression exp = parseInstanceOfExpression(); while (t.currentToken == Token.INTERSECT || t.currentToken == Token.EXCEPT ) { int op = t.currentToken; nextToken(); exp = new VennExpression(exp, op, parseInstanceOfExpression()); setLocation(exp); } return exp; }
/** * Parse an IntersectExceptExpr:<br> * PathExpr ( ( 'intersect' | 'except') PathExpr )* * * @throws XPathException if any error is encountered * @return the resulting subexpression */ private Expression parseIntersectExpression() throws XPathException { Expression exp = parseInstanceOfExpression(); while (t.currentToken == Token.INTERSECT || t.currentToken == Token.EXCEPT ) { int op = t.currentToken; nextToken(); exp = new VennExpression(exp, op, parseInstanceOfExpression()); setLocation(exp); } return exp; }
case Token.INTERSECT: case Token.EXCEPT: return new VennExpression(lhs, operator, rhs); case Token.OR_ELSE: { RetainedStaticContext rsc = new RetainedStaticContext(env);
case Token.INTERSECT: case Token.EXCEPT: return new VennExpression(lhs, operator, rhs); case Token.OR_ELSE: { RetainedStaticContext rsc = new RetainedStaticContext(env);
final VennExpression venn = new VennExpression( path1.getRemainingSteps(), operator,
final VennExpression venn = new VennExpression( path1.getRemainingSteps(), operator,
final VennExpression venn = new VennExpression( path1.getRemainingSteps(), operator,
final VennExpression venn = new VennExpression( path1.getRemainingSteps(), operator,
final VennExpression venn = new VennExpression( path1.getRemainingSteps(), operator,