Package org.eclipse.epsilon.common.util
Class ModuleElementUtil
java.lang.Object
org.eclipse.epsilon.common.util.ModuleElementUtil
- Since:
- 1.6
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Collection<ModuleElement>>
CflattenAST
(ModuleElement ast, C collection)
-
Constructor Details
-
ModuleElementUtil
public ModuleElementUtil()
-
-
Method Details
-
flattenAST
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 Collection<ModuleElement>> C flattenAST(ModuleElement ast, C collection)
-