MCPcopy
hub / github.com/apache/groovy / checkInitalised

Method checkInitalised

src/main/java/groovy/lang/MetaClassImpl.java:1844–1853  ·  view source on GitHub ↗

checks if the initialisation of the class id complete. This method should be called as a form of assert, it is no way to test if there is still initialisation work to be done. Such logic must be implemented in a different way. @throws IllegalStateException if the initialisation is incomplete yet

()

Source from the content-addressed store, hash-verified

1842 * @throws IllegalStateException if the initialisation is incomplete yet
1843 */
1844 protected void checkInitalised() {
1845 if (!isInitialized())
1846 throw new IllegalStateException(
1847 "initialize must be called for meta " +
1848 "class of " + theClass +
1849 "(" + this.getClass() + ") " +
1850 "to complete initialisation process " +
1851 "before any invocation or field/property " +
1852 "access can be done");
1853 }
1854
1855 /**
1856 * This is a helper class which is used only by indy. It is for internal use.

Callers 12

invokeMethodMethod · 0.95
invokeStaticMethodMethod · 0.95
retrieveConstructorMethod · 0.95
invokeConstructorMethod · 0.95
setPropertiesMethod · 0.95
getPropertyMethod · 0.95
getPropertiesMethod · 0.95
setPropertyMethod · 0.95
getAttributeMethod · 0.95
setAttributeMethod · 0.95
invokeMethodMethod · 0.45

Calls 2

isInitializedMethod · 0.95
getClassMethod · 0.80

Tested by

no test coverage detected