net.sourceforge.cilib.type.parser
Class DomainParser

java.lang.Object
  extended by net.sourceforge.cilib.type.parser.DomainParser
All Implemented Interfaces:
DomainParserConstants, DomainParserTreeConstants

public class DomainParser
extends Object
implements DomainParserTreeConstants, DomainParserConstants


Nested Class Summary
static class DomainParser.DomainNode
           
 
Field Summary
 Token jj_nt
          Next token.
protected  JJTDomainParserState jjtree
           
 Token token
          Current token.
 DomainParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface net.sourceforge.cilib.type.parser.DomainParserTreeConstants
JJTDIMENSION, JJTDOMAINELEMENT, JJTELEMENT, JJTEXPONENT, JJTLOWERDIM, jjtNodeName, JJTNUMBER, JJTREPEAT, JJTROOTELEMENT, JJTTYPE, JJTUPPERDIM, JJTVALUE
 
Fields inherited from interface net.sourceforge.cilib.type.parser.DomainParserConstants
DEFAULT, DIGIT, EOF, EXPONENT, MINUS, NUMBER, POSITIVE_INTEGER, tokenImage, TYPE
 
Constructor Summary
DomainParser(DomainParserTokenManager tm)
          Constructor with generated Token Manager.
DomainParser(InputStream stream)
          Constructor with InputStream.
DomainParser(InputStream stream, String encoding)
          Constructor with InputStream and supplied encoding
DomainParser(Reader stream)
          Constructor.
 
Method Summary
 void dimension()
           
 void disable_tracing()
          Disable tracing.
 void domainElement()
           
 void element()
           
 void enable_tracing()
          Enable tracing.
 void exponent()
           
 ParseException generateParseException()
          Generate ParseException.
 Token getNextToken()
          Get the next Token.
 Token getToken(int index)
          Get the specific Token.
 void lowerDim()
           
 void number()
           
static StructuredType parse(String domainString)
           
 void ReInit(DomainParserTokenManager tm)
          Reinitialise.
 void ReInit(InputStream stream)
          Reinitialise.
 void ReInit(InputStream stream, String encoding)
          Reinitialise.
 void ReInit(Reader stream)
          Reinitialise.
 void repeat()
           
 ASTrootElement rootElement()
           
 void type()
           
 void upperDim()
           
 void value()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jjtree

protected JJTDomainParserState jjtree

token_source

public DomainParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

DomainParser

public DomainParser(InputStream stream)
Constructor with InputStream.


DomainParser

public DomainParser(InputStream stream,
                    String encoding)
Constructor with InputStream and supplied encoding


DomainParser

public DomainParser(Reader stream)
Constructor.


DomainParser

public DomainParser(DomainParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

parse

public static StructuredType parse(String domainString)
                            throws ParseException
Throws:
ParseException

rootElement

public final ASTrootElement rootElement()
                                 throws ParseException
Throws:
ParseException

element

public final void element()
                   throws ParseException
Throws:
ParseException

domainElement

public final void domainElement()
                         throws ParseException
Throws:
ParseException

type

public final void type()
                throws ParseException
Throws:
ParseException

exponent

public final void exponent()
                    throws ParseException
Throws:
ParseException

dimension

public final void dimension()
                     throws ParseException
Throws:
ParseException

lowerDim

public final void lowerDim()
                    throws ParseException
Throws:
ParseException

upperDim

public final void upperDim()
                    throws ParseException
Throws:
ParseException

value

public final void value()
                 throws ParseException
Throws:
ParseException

repeat

public final void repeat()
                  throws ParseException
Throws:
ParseException

number

public final void number()
                  throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)
Reinitialise.


ReInit

public void ReInit(InputStream stream,
                   String encoding)
Reinitialise.


ReInit

public void ReInit(Reader stream)
Reinitialise.


ReInit

public void ReInit(DomainParserTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.



Copyright © 2009 CIRG. All Rights Reserved.