public static < T extends Tree > Matcher < T > isPrimitiveType ( ) { return new Matcher < T > ( ) { @ Override public boolean matches ( Tree t , VisitorState state ) { Type type = getType ( t ) ; return type != null && type . isPrimitive ( ) ; } } ; }
Matches an AST node if its type is a primitive type .