public static List<PrincipalDesc> analyzePrincipalListDef(ASTNode node) {
    List<PrincipalDesc> principalList = new ArrayList<PrincipalDesc>();
    for (int i = 0; i < node.getChildCount(); i++) {
      principalList.add(getPrincipalDesc((ASTNode) node.getChild(i)));
    }
    return principalList;
  }
Utility functions for creating objects relevant for authorization operations
from AST
ql/src/java/org/apache/hadoop/hive/ql/parse/authorization/AuthorizationParseUtils.java