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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.trapezium.vrml.grammar.PROTORule

public class PROTORule
extends java.lang.Object

Creates the scene graph component for a PROTO declaration. Grammar handled by "Build" method:

   proto ::=
        PROTO nodeTypeId [ interfaceDeclarations ] { protoBody } ;
           
   interfaceDeclarations ::=
        interfaceDeclaration |
        interfaceDeclaration interfaceDeclarations |
             empty ;

   protoBody ::=
        protoStatements node statements ;

   protoStatements ::=
        protoStatement |
        protoStatement protoStatements |
        empty ;
  
Note: the implementation of the "protoBody" portion of above grammar is done through the SceneRule, followed by a check that the body consists of at least one node. This check (and possible error mark) is done by the "setBuiltInNodeType" method.

Since:
1.0
Version:
1.1, 6 Jan 1998

Field Summary
(package private)  InterfaceDeclarationRule interfaceDeclarationRule
           
(package private)  int level
           
 
Constructor Summary
(package private) PROTORule(NodeRule nodeRule)
          Class constructor
 
Method Summary
(package private)  void Build(int tokenOffset, com.trapezium.parse.TokenEnumerator v, com.trapezium.vrml.Scene scene, com.trapezium.vrml.VrmlElement parent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

level

int level

interfaceDeclarationRule

InterfaceDeclarationRule interfaceDeclarationRule
Constructor Detail

PROTORule

PROTORule(NodeRule nodeRule)
Class constructor

Method Detail

Build

void Build(int tokenOffset,
           com.trapezium.parse.TokenEnumerator v,
           com.trapezium.vrml.Scene scene,
           com.trapezium.vrml.VrmlElement parent)