org.ogre4j
Class ScriptCompilerManager

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.ScriptCompilerManager
All Implemented Interfaces:
IAllocatedObject<IScriptingAllocPolicy>, IScriptCompilerManager, IScriptingAllocatedObject, IScriptLoader, ISingleton<IScriptCompilerManager>, INativeObject

public class ScriptCompilerManager
extends NativeObject
implements IScriptCompilerManager


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  ScriptCompilerManager()
           
  ScriptCompilerManager(InstancePointer p)
          This constructor is public for internal useage only!
protected ScriptCompilerManager(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  ScriptCompilerManager(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void addTranslatorManager(IScriptTranslatorManager man)
           
 void clearTranslatorManagers()
           
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 IScriptCompilerListener getListener()
           
 float getLoadingOrder()
          Gets the relative loading order of scripts of this type.
 IStringVector getScriptPatterns()
          Gets the file patterns which should be used to find scripts for this class.
static IScriptCompilerManager getSingleton()
          Override standard retrieval.
static IScriptCompilerManager getSingletonPtr()
          Override standard retrieval.
 IScriptTranslator getTranslator(IAbstractNodePtr node)
           
 void parseScript(IDataStreamPtr stream, java.lang.String groupName)
          Parse a script file.
 void removeTranslatorManager(IScriptTranslatorManager man)
           
 void setListener(IScriptCompilerListener listener)
           
 
Methods inherited from class org.xbig.base.NativeObject
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xbig.base.INativeObject
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Constructor Detail

ScriptCompilerManager

public ScriptCompilerManager(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


ScriptCompilerManager

protected ScriptCompilerManager(InstancePointer p,
                                boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


ScriptCompilerManager

public ScriptCompilerManager(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

ScriptCompilerManager

public ScriptCompilerManager()
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

setListener

public void setListener(IScriptCompilerListener listener)
Specified by:
setListener in interface IScriptCompilerManager

getListener

public IScriptCompilerListener getListener()
Specified by:
getListener in interface IScriptCompilerManager

addTranslatorManager

public void addTranslatorManager(IScriptTranslatorManager man)
Specified by:
addTranslatorManager in interface IScriptCompilerManager

removeTranslatorManager

public void removeTranslatorManager(IScriptTranslatorManager man)
Specified by:
removeTranslatorManager in interface IScriptCompilerManager

clearTranslatorManagers

public void clearTranslatorManagers()
Specified by:
clearTranslatorManagers in interface IScriptCompilerManager

getTranslator

public IScriptTranslator getTranslator(IAbstractNodePtr node)
Specified by:
getTranslator in interface IScriptCompilerManager

getScriptPatterns

public IStringVector getScriptPatterns()
Description copied from interface: IScriptLoader
Gets the file patterns which should be used to find scripts for this class.

Specified by:
getScriptPatterns in interface IScriptCompilerManager
Specified by:
getScriptPatterns in interface IScriptLoader

parseScript

public void parseScript(IDataStreamPtr stream,
                        java.lang.String groupName)
Description copied from interface: IScriptLoader
Parse a script file.

Specified by:
parseScript in interface IScriptCompilerManager
Specified by:
parseScript in interface IScriptLoader

getLoadingOrder

public float getLoadingOrder()
Description copied from interface: IScriptLoader
Gets the relative loading order of scripts of this type.

Specified by:
getLoadingOrder in interface IScriptCompilerManager
Specified by:
getLoadingOrder in interface IScriptLoader

getSingleton

public static IScriptCompilerManager getSingleton()
Override standard retrieval.


getSingletonPtr

public static IScriptCompilerManager getSingletonPtr()
Override standard retrieval.



Copyright © 2007 netAllied GmbH. All Rights Reserved.