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

Quick Search    Search Deep

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

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

class SpecNodeRule
extends java.lang.Object

Process the file we are using to generate built in node classes. This is similar, but not identical to ".wrl" file processing. The "Spec" object is built as follows: Spec s = new Spec(); SpecRule.Build( v, s ); The spec grammar is: spec: specNode specNode: Category categoryName { interfaceDeclarations* } nodeType { interfaceDeclarations* } When the "Spec" object has been created, we create a visitor to visit each node, and generate code based on the interfaceDeclarations and the embedded controls (tips, etc.)


Field Summary
(package private)  InterfaceDeclarationRule interfaceDeclarationRule
           
(package private)  java.lang.String mostRecentCategory
          keep track of category based on where we are in the processing
 
Constructor Summary
SpecNodeRule(NodeRule nodeRule)
           
 
Method Summary
 void Build(int tokenOffset, com.trapezium.parse.TokenEnumerator v, Spec spec)
          Apply the SpecRule to update the Spec object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mostRecentCategory

java.lang.String mostRecentCategory
keep track of category based on where we are in the processing


interfaceDeclarationRule

InterfaceDeclarationRule interfaceDeclarationRule
Constructor Detail

SpecNodeRule

public SpecNodeRule(NodeRule nodeRule)
Method Detail

Build

public void Build(int tokenOffset,
                  com.trapezium.parse.TokenEnumerator v,
                  Spec spec)
Apply the SpecRule to update the Spec object.