java.lang.Object
com.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
level
int level
interfaceDeclarationRule
InterfaceDeclarationRule interfaceDeclarationRule
PROTORule
PROTORule(NodeRule nodeRule)
- Class constructor
Build
void Build(int tokenOffset,
com.trapezium.parse.TokenEnumerator v,
com.trapezium.vrml.Scene scene,
com.trapezium.vrml.VrmlElement parent)