/** * Get the static properties of this expression (other than its type). The result is * bit-signficant. These properties are used for optimizations. In general, if * property bit is set, it is true, but if it is unset, the value is unknown. */ public int computeSpecialProperties() { final int prop0 = operand0.getSpecialProperties(); final int prop1 = operand1.getSpecialProperties(); int props = StaticProperty.ORDERED_NODESET; if (testContextDocumentNodeSet(prop0, prop1)) { props |= StaticProperty.CONTEXT_DOCUMENT_NODESET; } if (testSubTree(prop0, prop1)) { props |= StaticProperty.SUBTREE_NODESET; } if (!testCreative(prop0, prop1)) { props |= StaticProperty.NON_CREATIVE; } return props; }
/** * Get the static properties of this expression (other than its type). The result is * bit-signficant. These properties are used for optimizations. In general, if * property bit is set, it is true, but if it is unset, the value is unknown. */ public int computeSpecialProperties() { final int prop0 = operand0.getSpecialProperties(); final int prop1 = operand1.getSpecialProperties(); int props = StaticProperty.ORDERED_NODESET; if (testContextDocumentNodeSet(prop0, prop1)) { props |= StaticProperty.CONTEXT_DOCUMENT_NODESET; } if (testSubTree(prop0, prop1)) { props |= StaticProperty.SUBTREE_NODESET; } if (!testCreative(prop0, prop1)) { props |= StaticProperty.NON_CREATIVE; } return props; }
/** * Get the static properties of this expression (other than its type). The result is * bit-signficant. These properties are used for optimizations. In general, if * property bit is set, it is true, but if it is unset, the value is unknown. */ public int computeSpecialProperties() { final int prop0 = operand0.getSpecialProperties(); final int prop1 = operand1.getSpecialProperties(); int props = StaticProperty.ORDERED_NODESET; if (testContextDocumentNodeSet(prop0, prop1)) { props |= StaticProperty.CONTEXT_DOCUMENT_NODESET; } if (testSubTree(prop0, prop1)) { props |= StaticProperty.SUBTREE_NODESET; } if (!testCreative(prop0, prop1)) { props |= StaticProperty.NON_CREATIVE; } return props; }
/** * Get the static properties of this expression (other than its type). The result is * bit-signficant. These properties are used for optimizations. In general, if * property bit is set, it is true, but if it is unset, the value is unknown. */ public int computeSpecialProperties() { final int prop0 = getLhsExpression().getSpecialProperties(); final int prop1 = getRhsExpression().getSpecialProperties(); int props = StaticProperty.ORDERED_NODESET; if (testContextDocumentNodeSet(prop0, prop1)) { props |= StaticProperty.CONTEXT_DOCUMENT_NODESET; } if (testSubTree(prop0, prop1)) { props |= StaticProperty.SUBTREE_NODESET; } if (createsNoNewNodes(prop0, prop1)) { props |= StaticProperty.NO_NODES_NEWLY_CREATED; } return props; }
/** * Get the static properties of this expression (other than its type). The result is * bit-signficant. These properties are used for optimizations. In general, if * property bit is set, it is true, but if it is unset, the value is unknown. */ public int computeSpecialProperties() { final int prop0 = getLhsExpression().getSpecialProperties(); final int prop1 = getRhsExpression().getSpecialProperties(); int props = StaticProperty.ORDERED_NODESET; if (testContextDocumentNodeSet(prop0, prop1)) { props |= StaticProperty.CONTEXT_DOCUMENT_NODESET; } if (testSubTree(prop0, prop1)) { props |= StaticProperty.SUBTREE_NODESET; } if (createsNoNewNodes(prop0, prop1)) { props |= StaticProperty.NO_NODES_NEWLY_CREATED; } return props; }