public class CancellableTreePathScanner<R,P> extends ErrorAwareTreePathScanner<R,P>
Constructor and Description |
---|
CancellableTreePathScanner()
Construct a new CancellableTreePathScanner which can be canceled by calling
the
cancel() method. |
CancellableTreePathScanner(AtomicBoolean canceled)
Construct a new CancellableTreePath Scanner which can be canceled either by calling
the
cancel() method, or by setting true into the provided
canceled AtomicBoolean . |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
protected boolean |
isCanceled() |
R |
scan(Iterable<? extends Tree> trees,
P p) |
R |
scan(Tree tree,
P p) |
visitErroneous
getCurrentPath, scan
reduce, visitAnnotatedType, visitAnnotation, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitContinue, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitExports, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitIntersectionType, visitLabeledStatement, visitLambdaExpression, visitLiteral, visitMemberReference, visitMemberSelect, visitMethod, visitMethodInvocation, visitModifiers, visitModule, visitNewArray, visitNewClass, visitOpens, visitOther, visitPackage, visitParameterizedType, visitParenthesized, visitPrimitiveType, visitProvides, visitRequires, visitReturn, visitSwitch, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitUses, visitVariable, visitWhileLoop, visitWildcard
public CancellableTreePathScanner()
cancel()
method.public CancellableTreePathScanner(AtomicBoolean canceled)
cancel()
method, or by setting true
into the provided
canceled
AtomicBoolean
.canceled
- an AtomicBoolean
through which this scanner can be canceled.
The scanner never changes the state of the AtomicBoolean
.Built on October 25 2023. | Copyright © 2017-2023 Apache Software Foundation. All Rights Reserved.