org.netbeans.modules.java.source 0.80.1 17

org.netbeans.api.java.source.support
Class CancellableTreePathScanner<R,P>

java.lang.Object
  extended by com.sun.source.util.TreeScanner<R,P>
      extended by com.sun.source.util.TreePathScanner<R,P>
          extended by org.netbeans.api.java.source.support.CancellableTreePathScanner<R,P>
All Implemented Interfaces:
TreeVisitor<R,P>

public class CancellableTreePathScanner<R,P>
extends TreePathScanner<R,P>


Constructor Summary
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.
 
Method Summary
 void cancel()
           
protected  boolean isCanceled()
           
 R scan(Iterable<? extends Tree> trees, P p)
           
 R scan(Tree tree, P p)
           
 
Methods inherited from class com.sun.source.util.TreePathScanner
getCurrentPath, scan
 
Methods inherited from class com.sun.source.util.TreeScanner
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CancellableTreePathScanner

public CancellableTreePathScanner()
Construct a new CancellableTreePathScanner which can be canceled by calling the cancel() method.


CancellableTreePathScanner

public 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.

Parameters:
canceled - an AtomicBoolean through which this scanner can be canceled. The scanner never changes the state of the AtomicBoolean.
Since:
0.29
Method Detail

isCanceled

protected boolean isCanceled()

cancel

public void cancel()

scan

public R scan(Tree tree,
              P p)
Overrides:
scan in class TreePathScanner<R,P>

scan

public R scan(Iterable<? extends Tree> trees,
              P p)
Overrides:
scan in class TreeScanner<R,P>

org.netbeans.modules.java.source 0.80.1 17

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.