RepeaterDayPortion< T > Class Reference

Inherits er::chronic::repeaters::Repeater<T>.

Collaboration diagram for RepeaterDayPortion< T >:

Collaboration graph
[legend]

List of all members.

Public Types

enum  DayPortion {
  AM, PM, MORNING, AFTERNOON,
  EVENING, NIGHT
}

Public Member Functions

Span getOffset (Span span, float amount, PointerType pointer)
int getWidth ()
 RepeaterDayPortion (T type)
String toString ()

Static Public Member Functions

static EnumRepeaterDayPortion scan (Token token)

Protected Member Functions

abstract int _getWidth (Range range)
Span _nextSpan (PointerType pointer)
Span _thisSpan (PointerType pointer)
abstract Range createRange (T type)

Private Attributes

Span _currentSpan
Range _range

Static Private Attributes

static final Pattern AFTERNOON_PATTERN = Pattern.compile("^afternoons?$")
static final Pattern AM_PATTERN = Pattern.compile("^ams?$")
static final Pattern EVENING_PATTERN = Pattern.compile("^evenings?$")
static final int FULL_DAY_SECONDS = 60 * 60 * 24
static final Pattern MORNING_PATTERN = Pattern.compile("^mornings?$")
static final Pattern NIGHT_PATTERN = Pattern.compile("^(night|nite)s?$")
static final Pattern PM_PATTERN = Pattern.compile("^pms?$")


Member Enumeration Documentation

enum DayPortion

Enumerator:
AM 
PM 
MORNING 
AFTERNOON 
EVENING 
NIGHT 


Constructor & Destructor Documentation

RepeaterDayPortion ( type  ) 


Member Function Documentation

abstract int _getWidth ( Range  range  )  [protected, pure virtual]

Span _nextSpan ( PointerType  pointer  )  [protected]

Span _thisSpan ( PointerType  pointer  )  [protected]

abstract Range createRange ( type  )  [protected, pure virtual]

Span getOffset ( Span  span,
float  amount,
PointerType  pointer 
)

int getWidth (  ) 

static EnumRepeaterDayPortion scan ( Token  token  )  [static]

String toString (  ) 


Member Data Documentation

Span _currentSpan [private]

Range _range [private]

final Pattern AFTERNOON_PATTERN = Pattern.compile("^afternoons?$") [static, private]

final Pattern AM_PATTERN = Pattern.compile("^ams?$") [static, private]

final Pattern EVENING_PATTERN = Pattern.compile("^evenings?$") [static, private]

final int FULL_DAY_SECONDS = 60 * 60 * 24 [static, private]

final Pattern MORNING_PATTERN = Pattern.compile("^mornings?$") [static, private]

final Pattern NIGHT_PATTERN = Pattern.compile("^(night|nite)s?$") [static, private]

final Pattern PM_PATTERN = Pattern.compile("^pms?$") [static, private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:46 2012 for Project Wonder by  doxygen 1.5.8