Class ProtoDeclaration
java.lang.Object
org.web3d.vrml.scripting.ecmascript.builtin.AbstractScriptableObject
org.web3d.vrml.scripting.ecmascript.x3d.ProtoDeclaration
- All Implemented Interfaces:
org.mozilla.javascript.Scriptable
ProtoDeclaration prototype object.
- Version:
- $Revision: 1.5 $
- 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
ConstructorsConstructorDescriptionProtoDeclaration(VRMLProtoDeclare 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.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
-
ProtoDeclaration
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 created from this new instance
-