ScriptableObject.defineClass( scope, NativeBirtDateTime.class ); ScriptableObject.defineClass( scope, NativeBirtMath.class ); ScriptableObject.defineClass( scope, NativeBirtStr.class ); ScriptableObject.defineClass( scope, NativeBirtComp.class );
ScriptableObject birtMath = new BirtMath(); ScriptableObject birtComp = new BirtComp(); ScriptableObject birtDateTime = new BirtDateTime(); ScriptableObject birtStr = new BirtStr(); ScriptableObject.putProperty( scope, birtMath.getClassName( ), birtMath ); ScriptableObject.putProperty( scope, birtComp.getClassName(), birtComp ); ScriptableObject.putProperty( scope, birtDateTime.getClassName( ), birtDateTime ); ScriptableObject.putProperty( scope, birtStr.getClassName( ), new BirtStr() );
	public void initialize( Context cx, Scriptable scope )	{		try		{			ScriptableObject.defineClass( scope, NativeFinance.class );			ScriptableObject.defineClass( scope, NativeDateTimeSpan.class );			ScriptableObject.defineClass( scope, NativeBirtDateTime.class );			ScriptableObject.defineClass( scope, NativeBirtMath.class );			ScriptableObject.defineClass( scope, NativeBirtStr.class );			ScriptableObject.defineClass( scope, NativeBirtComp.class );		}		catch ( Exception ex )		{			assert false;		}	}