org.apache.commons.jrcs.rcs
Class ArchiveParser

java.lang.Object
  extended by org.apache.commons.jrcs.rcs.ArchiveParser
All Implemented Interfaces:
ArchiveParserConstants

 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.4 $ $Date: 2003/05/06 14:50:52 $
Author:
Juanco Anez
See Also:
Archive

Field Summary
(package private) static java.lang.String ident
           
 Token jj_nt
           
 Token token
           
 ArchiveParserTokenManager token_source
           
 
Fields inherited from interface org.apache.commons.jrcs.rcs.ArchiveParserConstants
ACCESS, AUTHOR, BRANCH, BRANCHES, COLON, COMMENT, DATE, DATESTATE, DEFAULT, DESC, DIGIT, DIGITS, DOT, EOF, EOS, EXPAND, HEAD, ID, IDCHAR, IDSTATE, LOCKS, LOG, NEXT, NUM, STATE, STRICT, STRING, SYM, SYMBOLS, SYMBOLSTATE, TEXT, tokenImage
 
Constructor Summary
ArchiveParser(ArchiveParserTokenManager tm)
           
ArchiveParser(CharStream stream)
           
ArchiveParser(java.io.InputStream in)
           
 
Method Summary
 void admin(Archive arc)
           
 void archive(Archive arc)
          PARSER STARTS HERE
 int[] date()
           
 void delta(Archive arc)
           
 void desc(Archive arc)
           
 int digits()
           
 void disable_tracing()
           
 void enable_tracing()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 java.lang.String id()
           
private  Token jj_consume_token(int kind)
           
static void load(Archive arc, java.io.InputStream input)
           
static void load(Archive arc, java.lang.String fname)
           
static void main(java.lang.String[] args)
           
 void newPhrase(java.util.Map map)
           
 java.lang.String num()
           
 void parse()
           
 void ReInit(ArchiveParserTokenManager tm)
           
 void ReInit(CharStream stream)
           
 java.lang.String string()
           
 java.lang.String sym()
           
 void text(Archive 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
Constructor Detail

ArchiveParser

public ArchiveParser(java.io.InputStream in)

ArchiveParser

public ArchiveParser(CharStream stream)

ArchiveParser

public ArchiveParser(ArchiveParserTokenManager tm)
Method Detail

main

public static void main(java.lang.String[] args)

load

public static void load(Archive arc,
                        java.io.InputStream 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(Archive arc)
                 throws ParseException
Throws:
ParseException

delta

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

desc

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

text

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

newPhrase

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

num

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

id

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

sym

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

string

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

word

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

version

public final Version version()
                      throws ParseException
Throws:
ParseException

date

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

digits

public final int digits()
                 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)

generateParseException

public ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()


Copyright 2002 the Apache Software Foundation
Copyright ? 1999-2001 Juancarlo A?ez, Caracas, Venezuela.
All rights reserved
. http://www.suigeneris.org/jrcs