/** * Get the item type of the atomic values that will be produced when an item * of this type is atomized (assuming that atomization succeeds) */ /*@NotNull*/ public AtomicType getAtomizedItemType() { AtomicType type1 = nodetest1.getAtomizedItemType(); AtomicType type2 = nodetest2.getAtomizedItemType(); if (type1.isSameType(type2)) { return type1; } if (operator == Token.INTERSECT) { if (type2.equals(BuiltInAtomicType.ANY_ATOMIC)) { return type1; } if (type1.equals(BuiltInAtomicType.ANY_ATOMIC)) { return type2; } } return BuiltInAtomicType.ANY_ATOMIC; }
/** * Get the item type of the atomic values that will be produced when an item * of this type is atomized (assuming that atomization succeeds) */ public AtomicType getAtomizedItemType() { AtomicType type1 = nodetest1.getAtomizedItemType(); AtomicType type2 = nodetest2.getAtomizedItemType(); if (type1.isSameType(type2)) return type1; if (operator == Token.INTERSECT) { if (type2.equals(BuiltInAtomicType.ANY_ATOMIC)) { return type1; } if (type1.equals(BuiltInAtomicType.ANY_ATOMIC)) { return type2; } } return BuiltInAtomicType.ANY_ATOMIC; }
/** * Get the item type of the atomic values that will be produced when an item * of this type is atomized (assuming that atomization succeeds) */ public AtomicType getAtomizedItemType() { AtomicType type1 = nodetest1.getAtomizedItemType(); AtomicType type2 = nodetest2.getAtomizedItemType(); if (type1.isSameType(type2)) return type1; if (operator == Token.INTERSECT) { if (type2.equals(BuiltInAtomicType.ANY_ATOMIC)) { return type1; } if (type1.equals(BuiltInAtomicType.ANY_ATOMIC)) { return type2; } } return BuiltInAtomicType.ANY_ATOMIC; }
/** * Get the item type of the atomic values that will be produced when an item * of this type is atomized (assuming that atomization succeeds) */ /*@NotNull*/ public AtomicType getAtomizedItemType() { AtomicType type1 = nodetest1.getAtomizedItemType(); AtomicType type2 = nodetest2.getAtomizedItemType(); if (type1.isSameType(type2)) { return type1; } if (operator == Token.INTERSECT) { if (type2.equals(BuiltInAtomicType.ANY_ATOMIC)) { return type1; } if (type1.equals(BuiltInAtomicType.ANY_ATOMIC)) { return type2; } } return BuiltInAtomicType.ANY_ATOMIC; }