Package org.eclipse.epsilon.common.util
Class ModuleElementUtil
- java.lang.Object
-
- org.eclipse.epsilon.common.util.ModuleElementUtil
-
public class ModuleElementUtil extends java.lang.Object
- Since:
- 1.6
-
-
Constructor Summary
Constructors Constructor Description ModuleElementUtil()
-
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>>
CflattenAST(ModuleElement ast, C collection)
-
-
-
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)
-
-