java.lang.Object
com.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.)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mostRecentCategory
java.lang.String mostRecentCategory
- keep track of category based on where we are in the processing
interfaceDeclarationRule
InterfaceDeclarationRule interfaceDeclarationRule
SpecNodeRule
public SpecNodeRule(NodeRule nodeRule)
Build
public void Build(int tokenOffset,
com.trapezium.parse.TokenEnumerator v,
Spec spec)
- Apply the SpecRule to update the Spec object.