|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScriptEngine
A representation of a class that is capable of being an interface to a scripting engine (eg javascript, java etc).
| Method Summary | |
|---|---|
ScriptWrapper |
buildWrapper(VRMLExecutionSpace space,
java.lang.String contentType,
java.lang.Object content)
Create a wrapper for the given script content. |
java.lang.String[] |
getSupportedContentTypes()
Get a listing of the content types that this engine implementation can handle. |
int |
getSupportedSpecificationVersion()
Get the version of the specification that this engine implementation supports. |
void |
setErrorReporter(ErrorReporter reporter)
Register an error reporter with the engine so that any errors generated by the script code can be reported in a nice, pretty fashion. |
| Method Detail |
|---|
int getSupportedSpecificationVersion()
java.lang.String[] getSupportedContentTypes()
ScriptWrapper buildWrapper(VRMLExecutionSpace space,
java.lang.String contentType,
java.lang.Object content)
throws InvalidScriptContentException
space - The execution space this script belongs tocontentType - The MIME type of the enginecontent - The actual content loaded from a stream
InvalidScriptContentException - The form of the content does
not match the requirements of the engine.void setErrorReporter(ErrorReporter reporter)
reporter - The instance to use or null
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||