Class ExternProtoDeclaration
java.lang.Object
org.web3d.vrml.scripting.ecmascript.builtin.AbstractScriptableObject
org.web3d.vrml.scripting.ecmascript.x3d.ExternProtoDeclaration
- All Implemented Interfaces:
org.mozilla.javascript.Scriptable
ExternProtoDeclaration prototype object.
- Version:
- $Revision: 1.4 $
- Author:
- Justin Couch
-
Field Summary
Fields inherited from class org.web3d.vrml.scripting.ecmascript.builtin.AbstractScriptableObject
BAD_FORMAT_MSG, dataChanged, INVALID_TYPE_MSG, JS_FUNCTION_PREFIX, readOnly, READONLY_MSGFields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND -
Constructor Summary
ConstructorsConstructorDescriptionExternProtoDeclaration(VRMLExternProtoDeclare decl, BasicScene scene) Construct an ExternProto representation from the given internal representation. -
Method Summary
Modifier and TypeMethodDescriptionGet the value of the named function.booleanCheck for the named property presence.voidloadNow() function defined by From table 6.71.newInstance() function defined by From table 6.71.voidSets the named property with a new value.Methods inherited from class org.web3d.vrml.scripting.ecmascript.builtin.AbstractScriptableObject
delete, delete, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, hasInstance, put, setParentScope, setPrototype, setReadOnly
-
Constructor Details
-
ExternProtoDeclaration
Construct an ExternProto representation from the given internal representation.- Parameters:
decl- The declaration to build the Rhino representative fromscene- The scene that owns this decl
-
-
Method Details
-
has
Check for the named property presence.- Specified by:
hasin interfaceorg.mozilla.javascript.Scriptable- Overrides:
hasin classAbstractScriptableObject- Parameters:
name- name of the scriptstart- the script corresponding to the given name- Returns:
- true if it is a defined eventOut or field
-
get
Get the value of the named function. If no function object is registered for this name, the method will return null.- Specified by:
getin interfaceorg.mozilla.javascript.Scriptable- Overrides:
getin classAbstractScriptableObject- Parameters:
name- The variable namestart- The object where the lookup began- Returns:
- the corresponding function object or null
-
put
Sets the named property with a new value. A put usually means changing the entire property. So, if the property has changed using an operation likee = new SFColor(0, 1, 0);then a whole new object is passed to us.- Specified by:
putin interfaceorg.mozilla.javascript.Scriptable- Overrides:
putin classAbstractScriptableObject- Parameters:
name- The name of the property to definestart- The object who's property is being setvalue- The value being requested
-
jsFunction_newInstance
newInstance() function defined by From table 6.71.- Returns:
- an SFNode constructed from this new instance
-
jsFunction_loadNow
public void jsFunction_loadNow()loadNow() function defined by From table 6.71.
-