TypeUtil
| Kind of class: | class |
|---|---|
| Inherits from: | none |
| Version: | 04/02/07 |
| Author: | Aaron Clinger, David Nelson |
| Classpath: | org.casaframework.util.TypeUtil |
| File last modified: | Monday, 02 April 2007, 18:42:04 |
Class methods
getTypeOf
static function getTypeOf (
obj:Object) : String
Evaluates an object and returns a string describing its type. This method is more versed than the
typeof equivalent.Parameters:
obj:
Object to evaluate.
Returns:
Returns a string describing the objects type.
isTypeOf
static function isTypeOf (
obj:Object,
type:String) : Boolean
Evaluates if an object is of a certain type. Can detect any types that getTypeOf can describe.
Parameters:
obj :
Object to evaluate.
type:
String describe the objects type.
Returns:
Returns
true if object matches type; otherwise false.