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