org.netbeans.modules.java.source 0.80.1 17

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

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

public class CancellableTreeScanner<R,P>
extends TreeScanner<R,P>


Constructor Summary
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.
 
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.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

CancellableTreeScanner

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


CancellableTreeScanner

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

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