public static boolean handles(ASTNode root) {
    return getAnalyzerClass(root, null) != null;
  }
Reveals the actual type of an ASTTree that has a category as main element.
ql/src/java/org/apache/hadoop/hive/ql/ddl/DDLSemanticAnalyzerFactory.java