public class PofReflectionHelper extends Object
| Constructor and Description | 
|---|
PofReflectionHelper()  | 
| Modifier and Type | Method and Description | 
|---|---|
static Object | 
ensureType(Object o,
          int nType,
          PofContext ctx)
Validate that the supplied object is compatible with the specified type. 
 | 
static Class | 
getClass(int nType,
        PofContext ctx)
Determine the class associated with the given type identifier. 
 | 
public static Class getClass(int nType, PofContext ctx)
nType - the Pof type identifier; includes Pof intrinsics,
               Pof compact values, and user typesctx - the PofContextIllegalArgumentException - if the specified type is a user type
         that is unknown to this PofContextpublic static Object ensureType(Object o, int nType, PofContext ctx)
o - the objectnType - the Pof type identifier; includes Pof intrinsics,
               Pof compact values, and user typesctx - the PofContextIllegalArgumentException - if the specified type is a user type
         that is unknown to this PofContext or there is no type mappingClassCastException - if the specified object is not assignable to
         the specified type