openjava.syntax
Class IdentifierRule

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

public class IdentifierRule
extends AbstractSyntaxRule

The class IdentifierRule represents syntax rule of Identifier. returns as Variable.

return

 

Since:
%SOFTWARE% 1.0
See Also:
Object

Constructor Summary
IdentifierRule()
          For any identifier.
IdentifierRule(java.lang.String specifying)
          For specified identifier.
 
Method Summary
 ParseTree consume(TokenSource token_src)
          Consumes tokens from the given token source following the rule.
 Variable consumeIdentifier(TokenSource token_src)
           
 
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

IdentifierRule

public IdentifierRule(java.lang.String specifying)
For specified identifier.
Parameters:
specifying - a string value specifying the identifier to consume.

IdentifierRule

public IdentifierRule()
For any identifier.
Method Detail

consume

public final 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.
Overrides:
consume in class AbstractSyntaxRule
Tags copied from class: AbstractSyntaxRule
Parameters:
token_src - token source to consume.
Returns:
a parse tree object consumed by following this rule.

consumeIdentifier

public Variable consumeIdentifier(TokenSource token_src)
                           throws SyntaxException