org.suigeneris.jrcs.rcs.parse
Class ArchiveParser

java.lang.Object
  extended by org.suigeneris.jrcs.rcs.parse.ArchiveParser
All Implemented Interfaces:
ArchiveParserConstants

public class ArchiveParser
extends java.lang.Object
implements ArchiveParserConstants

Parses an RCS/CVS style version control archive into an Archive. This class is NOT thread safe.

Version:
$Revision: 1.5 $ $Date: 2007-03-15 17:31:32 $
Author:
Juanco Anez
See Also:
Archive

Field Summary
(package private) static java.lang.String ident
           
 Token jj_nt
           
private  int jj_ntk
           
 Token token
           
 ArchiveParserTokenManager token_source
           
 
Fields inherited from interface org.suigeneris.jrcs.rcs.parse.ArchiveParserConstants
ACCESS, AUTHOR, BRANCH, BRANCHES, COMMENT, DATE, DEFAULT, DESC, DIGIT, EOF, EXPAND, HEAD, ID, IDCHAR, LOCKS, LOG, NEXT, NUM, PRE_DELTA, STATE, STRICT, STRING, SYM, SYMBOLS, TEXT, tokenImage
 
Constructor Summary
ArchiveParser(ArchiveParserTokenManager tm)
           
ArchiveParser(CharStream stream)
           
 
Method Summary
 void access(Archive arc)
           
 void admin(ArchiveParseAdapter arc)
           
 void archive(Archive arc)
          PARSER STARTS HERE
 java.lang.String authorId()
           
 java.lang.String authorName()
           
 void branch(Archive arc)
           
 void comment(Archive arc)
           
 int[] date()
           
 void delta(ArchiveParseAdapter arc)
           
 void desc(Archive arc)
           
 void disable_tracing()
           
 void enable_tracing()
           
 void expand(Archive arc)
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 void head(ArchiveParseAdapter arc)
           
 java.lang.String id()
           
private  Token jj_consume_token(int kind)
           
private  int jj_ntk()
           
static void load(Archive arc, CharStream input)
           
static void load(Archive arc, java.lang.String fname)
           
 void locks(Archive arc)
           
 void newPhrase(java.util.Map map)
           
 void newPhrases(java.util.Map map)
           
 int num()
           
 void optionals(ArchiveParseAdapter arc)
           
 void parse()
           
 java.lang.String range()
           
 void ReInit(ArchiveParserTokenManager tm)
           
 void ReInit(CharStream stream)
           
 java.lang.String simpleWord()
           
 java.lang.String string()
           
 java.lang.String sym()
           
 void symbols(Archive arc)
           
 void text(ArchiveParseAdapter arc)
           
 Version version()
           
 java.lang.String word()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ident

static final java.lang.String ident
See Also:
Constant Field Values

token_source

public ArchiveParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

jj_ntk

private int jj_ntk
Constructor Detail

ArchiveParser

public ArchiveParser(CharStream stream)

ArchiveParser

public ArchiveParser(ArchiveParserTokenManager tm)
Method Detail

load

public static void load(Archive arc,
                        CharStream input)
                 throws ParseException
Throws:
ParseException

load

public static void load(Archive arc,
                        java.lang.String fname)
                 throws java.io.FileNotFoundException,
                        ParseException
Throws:
java.io.FileNotFoundException
ParseException

parse

public void parse()

archive

public final void archive(Archive arc)
                   throws ParseException
PARSER STARTS HERE

Throws:
ParseException

admin

public final void admin(ArchiveParseAdapter arc)
                 throws ParseException
Throws:
ParseException

optionals

public final void optionals(ArchiveParseAdapter arc)
                     throws ParseException
Throws:
ParseException

newPhrases

public final void newPhrases(java.util.Map map)
                      throws ParseException
Throws:
ParseException

head

public final void head(ArchiveParseAdapter arc)
                throws ParseException
Throws:
ParseException

branch

public final void branch(Archive arc)
                  throws ParseException
Throws:
ParseException

access

public final void access(Archive arc)
                  throws ParseException
Throws:
ParseException

symbols

public final void symbols(Archive arc)
                   throws ParseException
Throws:
ParseException

locks

public final void locks(Archive arc)
                 throws ParseException
Throws:
ParseException

comment

public final void comment(Archive arc)
                   throws ParseException
Throws:
ParseException

expand

public final void expand(Archive arc)
                  throws ParseException
Throws:
ParseException

newPhrase

public final void newPhrase(java.util.Map map)
                     throws ParseException
Throws:
ParseException

word

public final java.lang.String word()
                            throws ParseException
Throws:
ParseException

simpleWord

public final java.lang.String simpleWord()
                                  throws ParseException
Throws:
ParseException

range

public final java.lang.String range()
                             throws ParseException
Throws:
ParseException

desc

public final void desc(Archive arc)
                throws ParseException
Throws:
ParseException

delta

public final void delta(ArchiveParseAdapter arc)
                 throws ParseException
Throws:
ParseException

text

public final void text(ArchiveParseAdapter arc)
                throws ParseException
Throws:
ParseException

id

public final java.lang.String id()
                          throws ParseException
Throws:
ParseException

authorId

public final java.lang.String authorId()
                                throws ParseException
Throws:
ParseException

authorName

public final java.lang.String authorName()
                                  throws ParseException
Throws:
ParseException

sym

public final java.lang.String sym()
                           throws ParseException
Throws:
ParseException

version

public final Version version()
                      throws ParseException
Throws:
ParseException

date

public final int[] date()
                 throws ParseException
Throws:
ParseException

num

public final int num()
              throws ParseException
Throws:
ParseException

string

public final java.lang.String string()
                              throws ParseException
Throws:
ParseException

ReInit

public void ReInit(CharStream stream)

ReInit

public void ReInit(ArchiveParserTokenManager tm)

jj_consume_token

private final Token jj_consume_token(int kind)
                              throws ParseException
Throws:
ParseException

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

jj_ntk

private final int jj_ntk()

generateParseException

public ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()


Copyright © 1999-2006 Juancarlo Añez, Caracas, Venezuela.
Some rights reserved
. http://www.suigeneris.org/jrcs