checkers.util
Class Heuristics.Matcher

java.lang.Object
  extended by com.sun.source.util.SimpleTreeVisitor<Boolean,Void>
      extended by checkers.util.Heuristics.Matcher
All Implemented Interfaces:
TreeVisitor<Boolean,Void>
Enclosing class:
Heuristics

public static class Heuristics.Matcher
extends SimpleTreeVisitor<Boolean,Void>

A convenience class for tree-matching algorithms. Skips parentheses by default.

See Also:
Heuristics.applyAt(TreePath, Tree.Kind, Matcher)

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class com.sun.source.util.SimpleTreeVisitor
DEFAULT_VALUE
 
Constructor Summary
Constructor and Description
Heuristics.Matcher()
           
 
Method Summary
Modifier and Type Method and Description
protected  Boolean defaultAction(Tree node, Void p)
           
 Boolean visitParenthesized(ParenthesizedTree node, Void p)
           
 
Methods inherited from class com.sun.source.util.SimpleTreeVisitor
visit, visit, visitAnnotatedType, 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, visitPrimitiveType, visitReturn, visitSwitch, visitSynchronized, visitThrow, visitTry, visitTypeCast, visitTypeParameter, visitUnary, visitVariable, visitWhileLoop, visitWildcard
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Heuristics.Matcher

public Heuristics.Matcher()
Method Detail

defaultAction

protected Boolean defaultAction(Tree node,
                                Void p)
Overrides:
defaultAction in class SimpleTreeVisitor<Boolean,Void>

visitParenthesized

public Boolean visitParenthesized(ParenthesizedTree node,
                                  Void p)
Specified by:
visitParenthesized in interface TreeVisitor<Boolean,Void>
Overrides:
visitParenthesized in class SimpleTreeVisitor<Boolean,Void>