java.lang.Object
com.trapezium.vrml.grammar.NodeStatementRule
- public class NodeStatementRule
- extends java.lang.Object
Creates the scene graph component for a node
This is the only part of the grammar other than the VRML97parser
that is publicly accessible. This is necessary because SFNodeValue
and MFNodeValue in the com.trapezium.vrml.fields package
use an instance of this to create node scene graph components.
Grammar handled by "Build" method:
nodeStatement ::=
node |
DEF nodeNameId node |
USE nodeNameId ;
The portion "DEF nodeNameId node" is handled by DEFRule.java
The portion "USE nodeNameId" is handled by USERule.java
- Since:
- 1.0
- Version:
- 1.12, 24 April 1998, NodeRule parameter for autodef, 1.1, 12 Dec 1997
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defRule
DEFRule defRule
useRule
USERule useRule
nodeRule
NodeRule nodeRule
NodeStatementRule
public NodeStatementRule(NodeRule nodeRule)
- Constructor
Build
public void Build(int tokenOffset,
com.trapezium.parse.TokenEnumerator v,
com.trapezium.vrml.Scene scene,
com.trapezium.vrml.VrmlElement parent)
- Factory/Builder method for adding a node child to a parent element. DEFed nodes
have file scope, so register their names at the Scene level.