case Axis.DESCENDANT_OR_SELF:
return new IterableDescendantOrSelfAxis( axis );
case Axis.ANCESTOR_OR_SELF:
return new IterableAncestorOrSelfAxis( axis );
case Axis.ANCESTOR:
return new IterableAncestorAxis( axis );
default:
throw new JaxenException("Unrecognized axis code: " + axis);
}
}