List of usage examples for org.eclipse.jdt.core.dom NodeFinder interface-usage
From source file ch.acanda.eclipse.pmd.java.resolution.NodeWithinPositionNodeFinder.java
/** * Searches an AST for a node that has the provided type and lies within the provided position. If more than one node * fit the criteria, the one with the smallest distance to the root is returned. */ class NodeWithinPositionNodeFinder<R extends ASTNode, N extends ASTNode> extends ASTVisitor implements NodeFinder<R, N> {
From source file ch.acanda.eclipse.pmd.java.resolution.PositionWithinNodeNodeFinder.java
/** * Searches an AST for a node that has the provided type and includes the provided position. If more than one node fit * the criteria, the one with the largest distance to the root is returned. */ class PositionWithinNodeNodeFinder<R extends ASTNode, N extends ASTNode> extends ASTVisitor implements NodeFinder<R, N> {