org.goda.chronic.handlers
public class Handler extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Handler.HandlerType |
| Constructor and Description |
|---|
Handler(IHandler handler,
boolean compatible,
HandlerPattern... patterns) |
Handler(IHandler handler,
HandlerPattern... patterns) |
| Modifier and Type | Method and Description |
|---|---|
static MutableInterval |
dayOrTime(DateTime dayStart,
List<Token> timeTokens,
Options options) |
static List<Token> |
dealiasAndDisambiguateTimes(List<Token> tokens,
Options options) |
static Map<Handler.HandlerType,List<Handler>> |
definitions() |
static MutableInterval |
findWithin(List<Repeater<?>> tags,
MutableInterval mutableInterval,
Pointer.PointerType pointer,
Options options)
Recursively finds repeaters within other repeaters.
|
static MutableInterval |
getAnchor(List<Token> tokens,
Options options) |
IHandler |
getHandler() |
static List<Repeater<?>> |
getRepeaters(List<Token> tokens) |
boolean |
isCompatible(Options options) |
boolean |
match(List<Token> tokens,
Map<Handler.HandlerType,List<Handler>> definitions) |
static MutableInterval |
tokensToMutableInterval(List<Token> tokens,
Options options) |
String |
toString() |
public Handler(IHandler handler, HandlerPattern... patterns)
public Handler(IHandler handler, boolean compatible, HandlerPattern... patterns)
public boolean isCompatible(Options options)
public IHandler getHandler()
public static Map<Handler.HandlerType,List<Handler>> definitions()
public static MutableInterval tokensToMutableInterval(List<Token> tokens, Options options)
public static MutableInterval getAnchor(List<Token> tokens, Options options)
public static MutableInterval dayOrTime(DateTime dayStart, List<Token> timeTokens, Options options)
public static MutableInterval findWithin(List<Repeater<?>> tags, MutableInterval mutableInterval, Pointer.PointerType pointer, Options options)
Copyright © 2013 os-cillation GmbH. All rights reserved.