Packageorg.spicefactory.lib.reflect
Classpublic class Type

Abstract base class for the Property and Parameter class.



Public Properties
 PropertyDefined by
  type : Class
[read-only] Returns the class of this Property or Parameter instance.
Type
Public Methods
 MethodDefined by
  
addConverter(type:Class, converter:Converter):void
[static] Registers a Converter for the specified class.
Type
  
getConverter(type:Class):Converter
[static] Returns the Converter registered for the specified class.
Type
Property detail
typeproperty
type:Class  [read-only]

Returns the class of this Property or Parameter instance.

Implementation
    public function get type():Class
Method detail
addConverter()method
public static function addConverter(type:Class, converter:Converter):void

Registers a Converter for the specified class. Converters will be used for automatic type conversion when setting property values with Spicelib Property instances or invoking methods with Spicelib Method instances.

Parameters
type:Class — the class for which to register the Converter
 
converter:Converter — the Converter instance to be used for the specified type
getConverter()method 
public static function getConverter(type:Class):Converter

Returns the Converter registered for the specified class.

Parameters
type:Class — the class for which to return the registered Converter

Returns
Converter — the Converter registered for the specified class or null if no Converter has been registered for that class