/** * Determine whether an expression, when used as a filter, has an explicit dependency on position() or last() * * @param exp the expression being tested * @return true if the expression is explicitly positional, that is, if it contains an explicit call on * position() or last() */ private static boolean isExplicitlyPositional(Expression exp) { return (exp.getDependencies() & (StaticProperty.DEPENDS_ON_POSITION | StaticProperty.DEPENDS_ON_LAST)) != 0; }
/** * Get the dependencies of the pattern. The only interesting dependencies for a pattern are * dependencies on local variables or on user-defined functions. These are analyzed in those * patterns containing predicates. * * @return the dependencies, as a bit-significant mask */ public int getDependencies() { return equivalentExpr.getDependencies() & (StaticProperty.DEPENDS_ON_LOCAL_VARIABLES | StaticProperty.DEPENDS_ON_USER_FUNCTIONS); }
/** * Get the dependencies of the pattern. The only possible dependency for a pattern is * on local variables. This is analyzed in those patterns where local variables may appear. */ public int getDependencies() { return keyExpression.getDependencies(); }
/** * Determine whether an expression, when used as a filter, has an explicit dependency on position() or last() * * @param exp the expression being tested * @return true if the expression is explicitly positional, that is, if it contains an explicit call on * position() or last() */ private static boolean isExplicitlyPositional(Expression exp) { return (exp.getDependencies() & (StaticProperty.DEPENDS_ON_POSITION | StaticProperty.DEPENDS_ON_LAST)) != 0; }
/** * Compute the dependencies of an expression, as the union of the * dependencies of its subexpressions. (This is overridden for path expressions * and filter expressions, where the dependencies of a subexpression are not all * propogated). This method should be called only once, to compute the dependencies; * after that, getDependencies should be used. * * @return the depencies, as a bit-mask */ public int computeDependencies() { return operand.getDependencies(); }
/** * Determine whether an expression, when used as a filter, has an explicit dependency on position() or last() * * @param exp the expression being tested * @return true if the expression is explicitly positional, that is, if it contains an explicit call on * position() or last() */ private static boolean isExplicitlyPositional(Expression exp) { return (exp.getDependencies() & (StaticProperty.DEPENDS_ON_POSITION | StaticProperty.DEPENDS_ON_LAST)) != 0; }
/** * Determine whether an expression, when used as a filter, has an explicit dependency on position() or last() * * @param exp the expression being tested * @return true if the expression is explicitly positional, that is, if it contains an explicit call on * position() or last() */ private static boolean isExplicitlyPositional(Expression exp) { return (exp.getDependencies() & (StaticProperty.DEPENDS_ON_POSITION | StaticProperty.DEPENDS_ON_LAST)) != 0; }
/** * Ask whether an expression has a dependency on the focus * * @param exp the expression * @return true if the value of the expression depends on the context item, position, or size */ public static boolean dependsOnFocus(Expression exp) { return (exp.getDependencies() & StaticProperty.DEPENDS_ON_FOCUS) != 0; }
/** * Determine whether the attribute set has any dependencies on the focus * * @return the dependencies */ public int getFocusDependencies() { return body.getDependencies() & StaticProperty.DEPENDS_ON_FOCUS; }
/** * Get the dependencies of the pattern. The only interesting dependencies for a pattern are * dependencies on local variables or on user-defined functions. These are analyzed in those * patterns containing predicates. * * @return the dependencies, as a bit-significant mask */ public int getDependencies() { // the only dependency that's interesting is a dependency on local variables return positionExpr.getDependencies() & (StaticProperty.DEPENDS_ON_LOCAL_VARIABLES | StaticProperty.DEPENDS_ON_USER_FUNCTIONS); }
/** * Get the dependencies of the pattern. The only possible dependency for a pattern is * on local variables. This is analyzed in those patterns where local variables may appear. */ public int getDependencies() { return keyexp.getDependencies(); }
/** * Determine whether an expression, when used as a filter, has an explicit dependency on position() or last() * * @param exp the expression being tested * @return true if the expression is explicitly positional, that is, if it contains an explicit call on * position() or last() */ private static boolean isExplicitlyPositional(Expression exp) { return (exp.getDependencies() & (StaticProperty.DEPENDS_ON_POSITION | StaticProperty.DEPENDS_ON_LAST)) != 0; }
/** * Determine whether the attribute set has any dependencies on the focus * * @return the dependencies */ public int getFocusDependencies() { return body.getDependencies() & StaticProperty.DEPENDS_ON_FOCUS; }
/** * Compute the dependencies of an expression, as the union of the * dependencies of its subexpressions. (This is overridden for path expressions * and filter expressions, where the dependencies of a subexpression are not all * propogated). This method should be called only once, to compute the dependencies; * after that, getDependencies should be used. * * @return the depencies, as a bit-mask */ public int computeDependencies() { return operand.getDependencies(); }
/** * Get the dependencies of the pattern. The only possible dependency for a pattern is * on local variables. This is analyzed in those patterns where local variables may appear. */ public int getDependencies() { return keyexp.getDependencies(); }
/** * Get the dependencies of the pattern. The only possible dependency for a pattern is * on local variables. This is analyzed in those patterns where local variables may appear. */ public int getDependencies() { return idExpression.getDependencies(); }
/** * Get the dependencies of the pattern. The only possible dependency for a pattern is * on local variables. This is analyzed in those patterns where local variables may appear. * * @return the dependencies, as a bit-significant mask */ @Override public int getDependencies() { return getPredicate().getDependencies(); }
/** * Get the dependencies of the pattern. The only possible dependency for a pattern is * on local variables. This is analyzed in those patterns where local variables may appear. */ public int getDependencies() { return getSelectionExpression().getDependencies(); }
/** * Get the dependencies of the pattern. The only possible dependency for a pattern is * on local variables. This is analyzed in those patterns where local variables may appear. * * @return the dependencies, as a bit-significant mask */ @Override public int getDependencies() { return getPredicate().getDependencies(); }
/** * Get the dependencies of the pattern. The only possible dependency for a pattern is * on local variables. This is analyzed in those patterns where local variables may appear. */ public int getDependencies() { return getSelectionExpression().getDependencies(); }