Class ModuleElementUtil


  • public class ModuleElementUtil
    extends Object
    Since:
    1.6
    • Constructor Detail

      • ModuleElementUtil

        public ModuleElementUtil()
    • Method Detail

      • flattenAST

        public static 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