@Override
    @NotNull
    public Axis getAxis() {
        final ASTNode[] nodes = getNode().getChildren(XPathTokenTypes.AXIS);
        if (nodes.length > 0) {
          return Axis.fromName(nodes[0].getText());
        } else if (getNode().findChildByType(XPathTokenTypes.AT) != null) {
            return Axis.ATTRIBUTE;
        } else {
            return Axis.CHILD;
        }
    }
@Override
    @NotNull
    public Axis getAxis()