public static < T extends Tree > Matcher < T > isInstance ( final java . lang . Class < ? > klass ) { return new Matcher < T > ( ) { @ Override public boolean matches ( T t , VisitorState state ) { return klass . isInstance ( t ) ; } } ; }
Matches if an AST node is an instance of the given class .