public final class Util
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
static <T> T | 
createInstance(MetaClass metaClass,
              java.lang.Class<T> expectedSuperType)
Create an instance of a meta class, reporting errors if creation fails. 
 | 
static java.lang.Object | 
createInstance(MetaClass metaClass,
              java.lang.Class expectedSuperType,
              java.lang.String nameOfType)
Create an instance of a meta class, reporting errors if creation fails. 
 | 
public static <T> T createInstance(MetaClass metaClass, java.lang.Class<T> expectedSuperType)
metaClass - the meta class to create an instance of.expectedSuperType - the supertype you expect.public static java.lang.Object createInstance(MetaClass metaClass, java.lang.Class expectedSuperType, java.lang.String nameOfType)
metaClass - the meta class to create an instance ofexpectedSuperType - the supertype you expect.nameOfType - the name of the type to display in messages