Class ProtoInstancePlaceHolder

java.lang.Object
org.web3d.vrml.nodes.proto.AbstractProto
org.web3d.vrml.nodes.proto.ProtoInstancePlaceHolder
All Implemented Interfaces:
VRMLExecutionSpace, VRMLNode, VRMLNodeTemplate, FrameStateListener, VRMLNodeType, VRMLProtoInstance

public class ProtoInstancePlaceHolder extends AbstractProto implements VRMLProtoInstance
A placeholder instance of a Prototype used when declaring and then using a nested proto instance.

The idea of this class is to fake being a real prototype instance when the code stubs a nested proto instance. A nested proto instance is of the form

 PROTO Outer [] {
   PROTO Inner [] { Box {} }
   Inner {}
 }
 
In this case, when we are storing the definition of Inner then we really don't want to expand the internal prototype definition at this point. The expansion should only take place when we create an instance of Outer. This class is used as a placeholder in this definition for this scenario. The idea is that when the code is traversing the definition, it will be replaced by a real runtime version.
Version:
$Revision: 1.45 $
Author:
Justin Couch