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 NodeCollector
ANodeCollector
implementation that collects all comments from aCompilationUnit
.static final NodeCollector
ANodeCollector
implementation 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
ANodeCollector
implementation that collects all nodes of a specified type. -
ALL_COMMENTS
ANodeCollector
implementation that collects all comments from aCompilationUnit
.
-
-
Method Details