er.chronic.repeaters
Class Repeater<T>
java.lang.Object
er.chronic.tags.Tag<T>
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<?>>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Repeater
public Repeater(T type)
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
Copyright © 2002 – 2007 Project Wonder.