equal
deleted
inserted
replaced
309 case ERRONEOUS: |
309 case ERRONEOUS: |
310 return true; |
310 return true; |
311 default: |
311 default: |
312 return false; |
312 return false; |
313 } |
313 } |
|
314 } |
|
315 |
|
316 /** Return true if the tree corresponds to a statement */ |
|
317 public static boolean isStatement(JCTree tree) { |
|
318 return (tree instanceof JCStatement) && |
|
319 !tree.hasTag(CLASSDEF) && |
|
320 !tree.hasTag(Tag.BLOCK) && |
|
321 !tree.hasTag(METHODDEF); |
314 } |
322 } |
315 |
323 |
316 /** |
324 /** |
317 * Return true if the AST corresponds to a static select of the kind A.B |
325 * Return true if the AST corresponds to a static select of the kind A.B |
318 */ |
326 */ |