org.quattor.pan.parser.annotation
Class AnnotationParser

java.lang.Object
  extended by org.quattor.pan.parser.annotation.AnnotationParser
All Implemented Interfaces:
AnnotationParserConstants, AnnotationParserTreeConstants

public class AnnotationParser
extends java.lang.Object
implements AnnotationParserTreeConstants, AnnotationParserConstants


Field Summary
 Token jj_nt
          Next token.
protected  JJTAnnotationParserState jjtree
           
 Token token
          Current token.
 AnnotationParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface org.quattor.pan.parser.annotation.AnnotationParserTreeConstants
JJTANNOTATION, jjtNodeName, JJTPAIR, JJTVOID
 
Fields inherited from interface org.quattor.pan.parser.annotation.AnnotationParserConstants
DEFAULT, DOUBLE_QUOTED_STRING, EOF, EQUALS, ERROR, KEY, SINGLE_QUOTED_STRING, tokenImage, VALUE, VSEARCH
 
Constructor Summary
AnnotationParser(AnnotationParserTokenManager tm)
          Constructor with generated Token Manager.
AnnotationParser(java.io.InputStream stream)
          Constructor with InputStream.
AnnotationParser(java.io.InputStream stream, java.lang.String encoding)
          Constructor with InputStream and supplied encoding
AnnotationParser(java.io.Reader stream)
          Constructor.
 
Method Summary
 java.util.List<Annotation.Entry> annotation()
          An annotation is just a sequence of key/value pairs.
 void disable_tracing()
          Disable tracing.
 void enable_tracing()
          Enable tracing.
 ParseException generateParseException()
          Generate ParseException.
 Token getNextToken()
          Get the next Token.
 Token getToken(int index)
          Get the specific Token.
 void pair(java.util.List<Annotation.Entry> entries)
          Definition of a single key/value pair.
 void ReInit(AnnotationParserTokenManager tm)
          Reinitialise.
 void ReInit(java.io.InputStream stream)
          Reinitialise.
 void ReInit(java.io.InputStream stream, java.lang.String encoding)
          Reinitialise.
 void ReInit(java.io.Reader stream)
          Reinitialise.
 java.lang.String value()
          Values are either quoted strings or characters terminated by a newline.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jjtree

protected JJTAnnotationParserState jjtree

token_source

public AnnotationParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

AnnotationParser

public AnnotationParser(java.io.InputStream stream)
Constructor with InputStream.


AnnotationParser

public AnnotationParser(java.io.InputStream stream,
                        java.lang.String encoding)
Constructor with InputStream and supplied encoding


AnnotationParser

public AnnotationParser(java.io.Reader stream)
Constructor.


AnnotationParser

public AnnotationParser(AnnotationParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

annotation

public final java.util.List<Annotation.Entry> annotation()
                                                  throws ParseException
An annotation is just a sequence of key/value pairs.

Throws:
ParseException

pair

public final void pair(java.util.List<Annotation.Entry> entries)
                throws ParseException
Definition of a single key/value pair.

Throws:
ParseException

value

public final java.lang.String value()
                             throws ParseException
Values are either quoted strings or characters terminated by a newline.

Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)
Reinitialise.


ReInit

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


ReInit

public void ReInit(java.io.Reader stream)
Reinitialise.


ReInit

public void ReInit(AnnotationParserTokenManager 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 © 2011 Quattor. All Rights Reserved.