/** * Get the item type of the function item * * @return the function item's type */ public FunctionItemType getFunctionItemType() { SequenceType resultType = targetType.getResultTypeOfCast(); SequenceType argType = allowEmpty ? SequenceType.OPTIONAL_ATOMIC : SequenceType.SINGLE_ATOMIC; return new SpecificFunctionType( new SequenceType[]{argType}, resultType); }
/** * Get the item type of the function item * * @return the function item's type */ public FunctionItemType getFunctionItemType() { SequenceType resultType = targetType.getResultTypeOfCast(); SequenceType argType = allowEmpty ? SequenceType.OPTIONAL_ATOMIC : SequenceType.SINGLE_ATOMIC; return new SpecificFunctionType( new SequenceType[]{argType}, resultType); }