MCPcopy Index your code
hub / github.com/apache/groovy / isEmpty

Method isEmpty

src/main/java/org/codehaus/groovy/ast/ModuleNode.java:842–844  ·  view source on GitHub ↗

Checks whether this module is empty (no classes or statements). An empty module compiles to no bytecode output. @return true if both class list and statement block are empty

()

Source from the content-addressed store, hash-verified

840 * @return true if both class list and statement block are empty
841 */
842 public boolean isEmpty() {
843 return classes.isEmpty() && statementBlock.getStatements().isEmpty();
844 }
845
846 /**
847 * Sorts classes in dependency order based on class hierarchy.

Callers 15

sortClassesMethod · 0.95
setGetterNameMethod · 0.45
setSetterNameMethod · 0.45
getClassesMethod · 0.45
addClassMethod · 0.45
hasClassNodeToCompileMethod · 0.45
copyMethod · 0.45
getFirstStatementMethod · 0.45
getTextMethod · 0.45

Calls 1

getStatementsMethod · 0.80

Tested by

no test coverage detected