Project Wonder 5.0

er.chronic.repeaters
Class Repeater<T>

java.lang.Object
  extended by er.chronic.tags.Tag<T>
      extended by er.chronic.repeaters.Repeater<T>
All Implemented Interfaces:
java.lang.Comparable<Repeater<?>>
Direct Known Subclasses:
RepeaterDayName, RepeaterDayPortion, RepeaterMonthName, RepeaterSeasonName, RepeaterTime, RepeaterUnit

public abstract class Repeater<T>
extends Tag<T>
implements java.lang.Comparable<Repeater<?>>


Constructor Summary
Repeater(T type)
           
 
Method Summary
protected abstract  Span _nextSpan(Pointer.PointerType pointer)
           
protected abstract  Span _thisSpan(Pointer.PointerType pointer)
           
 int compareTo(Repeater<?> other)
           
abstract  Span getOffset(Span span, float amount, Pointer.PointerType pointer)
           
abstract  int getWidth()
          returns the width (in seconds or months) of this repeatable.
 Span nextSpan(Pointer.PointerType pointer)
          returns the next occurance of this repeatable.
static java.util.List<Token> scan(java.util.List<Token> tokens)
           
static java.util.List<Token> scan(java.util.List<Token> tokens, Options options)
           
 Span thisSpan(Pointer.PointerType pointer)
           
 java.lang.String toString()
           
 
Methods inherited from class er.chronic.tags.Tag
getNow, getType, setStart, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Repeater

public Repeater(T type)
Method Detail

scan

public static java.util.List<Token> scan(java.util.List<Token> tokens)

scan

public static java.util.List<Token> scan(java.util.List<Token> tokens,
                                         Options options)

compareTo

public int compareTo(Repeater<?> other)
Specified by:
compareTo in interface java.lang.Comparable<Repeater<?>>

getWidth

public abstract int getWidth()
returns the width (in seconds or months) of this repeatable.


nextSpan

public Span nextSpan(Pointer.PointerType pointer)
returns the next occurance of this repeatable.


_nextSpan

protected abstract Span _nextSpan(Pointer.PointerType pointer)

thisSpan

public Span thisSpan(Pointer.PointerType pointer)

_thisSpan

protected abstract Span _thisSpan(Pointer.PointerType pointer)

getOffset

public abstract Span getOffset(Span span,
                               float amount,
                               Pointer.PointerType pointer)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.