code: private boolean isAttributeAxis(SimpleNode node) {
          for (int i = 0; i < node.jjtGetNumChildren(); i++) {
              if (((SimpleNode) node.jjtGetChild(i)).getId() == JJTAT) {
                  return true;
              }
          }
          return false;
      }
docs: Returns true if <code>node</code> has a child node which is the attribute
  axis.
  
  @param node a node with type {@link #JJTSTEPEXPR}.
  @return <code>true</code> if this step expression uses the attribute axis.