org.netbeans.api.java.source.support
public class CancellableTreeScanner<R,P> extends TreeScanner<R,P>
Constructor and Description |
---|
CancellableTreeScanner()
Construct a new CancellableTreeScanner which can be canceled by calling
the
cancel() method. |
CancellableTreeScanner(AtomicBoolean canceled)
Construct a new CancellableTreeScanner 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) |
reduce, visitAnnotation, visitArrayAccess, visitArrayType, visitAssert, visitAssignment, visitBinary, visitBlock, visitBreak, visitCase, visitCatch, visitClass, visitCompilationUnit, visitCompoundAssignment, visitConditionalExpression, visitContinue, visitDoWhileLoop, visitEmptyStatement, visitEnhancedForLoop, visitErroneous, visitExpressionStatement, visitForLoop, visitIdentifier, visitIf, visitImport, visitInstanceOf, visitLabeledStatement, visitLiteral, visitMemberSelect, visitMethod, visitMethodInvocation, visitModifiers, visitNewArray, visitNewClass, visitOther, visitParameterizedType, visitParenthesized, visitPrimitiveType, visitReturn, visitSwitch, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitUnionType, visitVariable, visitWhileLoop, visitWildcard
public CancellableTreeScanner()
cancel()
method.public CancellableTreeScanner(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 March 18 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.