Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.trapezium.vrml.grammar
Class NodeStatementRule  view NodeStatementRule download NodeStatementRule.java

java.lang.Object
  extended bycom.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

Field Summary
(package private)  DEFRule defRule
           
(package private)  NodeRule nodeRule
           
(package private)  USERule useRule
           
 
Constructor Summary
NodeStatementRule(NodeRule nodeRule)
          Constructor
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defRule

DEFRule defRule

useRule

USERule useRule

nodeRule

NodeRule nodeRule
Constructor Detail

NodeStatementRule

public NodeStatementRule(NodeRule nodeRule)
Constructor

Method Detail

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.