er.chronic.repeaters
Class Repeater<T>
java.lang.Object
er.chronic.tags.Tag<T>
er.chronic.repeaters.Repeater<T>
- All Implemented Interfaces:
- Comparable<Repeater<?>>
- Direct Known Subclasses:
- RepeaterDayName, RepeaterDayPortion, RepeaterMonthName, RepeaterSeasonName, RepeaterTime, RepeaterUnit
public abstract class Repeater<T>
- extends Tag<T>
- implements Comparable<Repeater<?>>
Repeater
public Repeater(T type)
scan
public static List<Token> scan(List<Token> tokens)
scan
public static List<Token> scan(List<Token> tokens,
Options options)
compareTo
public int compareTo(Repeater<?> other)
- Specified by:
compareTo in interface 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 String toString()
- Overrides:
toString in class Object
Copyright © 2002 – 2011 Project Wonder.