public static Matcher < VariableTree > variableType ( final Matcher < Tree > treeMatcher ) { return new Matcher < VariableTree > ( ) { @ Override public boolean matches ( VariableTree variableTree , VisitorState state ) { return treeMatcher . matches ( variableTree . getType ( ) , state ) ; } } ; }
Matches on the type of a VariableTree AST node .