dip.judge.parser
Class TurnParser

java.lang.Object
  extended bydip.judge.parser.TurnParser

public class TurnParser
extends java.lang.Object

Parses the Turns of a History file.


Nested Class Summary
static class TurnParser.Turn
          A Turn object is created for each Turn detected in the History file.
 
Field Summary
static java.lang.String RESULT_SUBJ_REGEX
          This text (or pattern) must be present in the Subject: line.
static java.lang.String SUBJ_PHASE_REGEX
          Pattern for matching the phase in the Subject: line
xDDDDx pattern.
static java.lang.String SUBJ_PHASE_REGEX_OLD
          Pattern for matching the phase in the Subject: line
xDDDDx pattern.
 
Constructor Summary
TurnParser(java.lang.String input)
          Create the TurnParser and perform parsing.
 
Method Summary
 TurnParser.Turn[] getTurns()
          Returns the turns.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUBJ_PHASE_REGEX

public static final java.lang.String SUBJ_PHASE_REGEX
Pattern for matching the phase in the Subject: line
xDDDDx pattern. Entire group is used.

See Also:
Constant Field Values

SUBJ_PHASE_REGEX_OLD

public static final java.lang.String SUBJ_PHASE_REGEX_OLD
Pattern for matching the phase in the Subject: line
xDDDDx pattern. Entire group is used. For older versions of nJudge

See Also:
Constant Field Values

RESULT_SUBJ_REGEX

public static final java.lang.String RESULT_SUBJ_REGEX
This text (or pattern) must be present in the Subject: line. If it is not present, the turn is ignored.

See Also:
Constant Field Values
Constructor Detail

TurnParser

public TurnParser(java.lang.String input)
           throws java.io.IOException,
                  java.util.regex.PatternSyntaxException
Create the TurnParser and perform parsing.

Method Detail

getTurns

public TurnParser.Turn[] getTurns()
Returns the turns. If not parsed, or an error occured, it may return null.



Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.