public static boolean isStatement ( JCTree tree ) { return ( tree instanceof JCStatement ) && ! tree . hasTag ( CLASSDEF ) && ! tree . hasTag ( Tag . BLOCK ) && ! tree . hasTag ( METHODDEF ) ; }
Return true if the tree corresponds to a statement