changeset 3530 | 18fb7507984b |
parent 2678 | 57cf2a1c1a05 |
--- a/jaxws/src/share/classes/com/sun/codemodel/internal/JBlock.java Wed Jul 05 16:58:00 2017 +0200 +++ b/jaxws/src/share/classes/com/sun/codemodel/internal/JBlock.java Fri Aug 07 11:27:00 2009 -0700 @@ -111,6 +111,14 @@ return r; } + /** + * Returns true if this block is empty and does not contain + * any statement. + */ + public boolean isEmpty() { + return content.isEmpty(); + } + /** * Adds a local variable declaration to this block