Package io.codemodder
Interface NodeCollector
public interface NodeCollector
A type that can collect specific types of nodes from a
CompilationUnit.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NodeCollectorANodeCollectorimplementation that collects all comments from aCompilationUnit.static final NodeCollectorANodeCollectorimplementation that collects all nodes of a specified type. -
Method Summary
Modifier and TypeMethodDescriptionList<? extends com.github.javaparser.ast.Node>collectNodes(com.github.javaparser.ast.CompilationUnit cu, Class<? extends com.github.javaparser.ast.Node> nodeType) Collects nodes of the specified type from theCompilationUnit.
-
Field Details
-
ALL_FROM_TYPE
ANodeCollectorimplementation that collects all nodes of a specified type. -
ALL_COMMENTS
ANodeCollectorimplementation that collects all comments from aCompilationUnit.
-
-
Method Details