|
|||||||||
| Home >> All >> openjava >> [ syntax overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
openjava.syntax
Class PrepPhraseRule

java.lang.Objectopenjava.syntax.AbstractSyntaxRule
openjava.syntax.PrepPhraseRule
- All Implemented Interfaces:
- SyntaxRule, TokenID
- public class PrepPhraseRule
- extends AbstractSyntaxRule
The class PrepPhraseRule represents the syntax rule
of a prepositional phrase.
Suppose there's a syntax rule A and a given identifier
i. This class can represent the syntax:
PrepPhraseRule := i A
- Since:
- $Id: PrepPhraseRule.java,v 1.2 2003/02/19 02:54:31 tatsubori Exp $
- Version:
- 1.0
| Field Summary | |
private java.lang.String |
prep
|
private SyntaxRule |
words
|
| Fields inherited from class openjava.syntax.AbstractSyntaxRule |
|
| Constructor Summary | |
PrepPhraseRule(java.lang.String prep,
SyntaxRule words)
Allocates a new rule representing the syntax of a prepositional phrase consisting of a preposition and a syntax. |
|
| Method Summary | |
openjava.ptree.ParseTree |
consume(TokenSource token_src)
Consumes tokens from the given token source following the rule. |
| Methods inherited from class openjava.syntax.AbstractSyntaxRule |
getSyntaxException, lookahead |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
prep
private java.lang.String prep
words
private SyntaxRule words
| Constructor Detail |
PrepPhraseRule
public PrepPhraseRule(java.lang.String prep, SyntaxRule words)
- Allocates a new rule representing the syntax of a prepositional
phrase consisting of a preposition and a syntax.
| Method Detail |
consume
public openjava.ptree.ParseTree consume(TokenSource token_src) throws SyntaxException
- Description copied from class:
AbstractSyntaxRule - Consumes tokens from the given token source following
the rule. To be overridden.
- Specified by:
consumein interfaceSyntaxRule- Specified by:
consumein classAbstractSyntaxRule
|
|||||||||
| Home >> All >> openjava >> [ syntax overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC