org.suigeneris.jrcs.rcs.parse
Class ArchiveParser
java.lang.Object
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
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ArchiveParser
public ArchiveParser(CharStream stream)
ArchiveParser
public ArchiveParser(ArchiveParserTokenManager tm)
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