Class ModuleElementUtil


  • public class ModuleElementUtil
    extends java.lang.Object
    Since:
    1.6
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<ModuleElement> flattenAST​(ModuleElement ast)
      Recursively retrieves all of the ModuleElement's children, returning a unique flattened collection in encounter order.
      protected static <C extends java.util.Collection<ModuleElement>>
      C
      flattenAST​(ModuleElement ast, C collection)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ModuleElementUtil

        public ModuleElementUtil()
    • Method Detail

      • flattenAST

        public static java.util.List<ModuleElement> flattenAST​(ModuleElement ast)
        Recursively retrieves all of the ModuleElement's children, returning a unique flattened collection in encounter order.
        Parameters:
        ast - The ModuleElement to flatten.
        Returns:
        All children (including subchildren) of the ModuleElement. The collection is guaranteed to contain no duplicates.
        Since:
        1.6
      • flattenAST

        protected static <C extends java.util.Collection<ModuleElement>> C flattenAST​(ModuleElement ast,
                                                                                      C collection)