openjava.syntax
Class NameRule

java.lang.Object
  |
  +--openjava.syntax.AbstractSyntaxRule
        |
        +--openjava.syntax.NameRule

public class NameRule
extends AbstractSyntaxRule

The interface NameRule

For example

 

Since:
%SOFTWARE% 1.0
See Also:
Object

Constructor Summary
NameRule()
           
 
Method Summary
 ParseTree consume(TokenSource token_src)
          Consumes a dot-separated name like java.lang.String.
 Variable consumeQualifiedName(TokenSource token_src)
          To override for modifying rule.
protected static boolean lookaheadRest(TokenSource token_src)
          A hard-coded lookahead for performance reason.
 
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
 

Constructor Detail

NameRule

public NameRule()
Method Detail

consume

public final ParseTree consume(TokenSource token_src)
                        throws SyntaxException
Consumes a dot-separated name like java.lang.String.
Overrides:
consume in class AbstractSyntaxRule
Parameters:
token_src - token source
Returns:
a dummy Variable object.
See Also:
Variable

consumeQualifiedName

public Variable consumeQualifiedName(TokenSource token_src)
                              throws SyntaxException
To override for modifying rule.

lookaheadRest

protected static final boolean lookaheadRest(TokenSource token_src)
A hard-coded lookahead for performance reason. (. )