MatchedHandler

public abstract class MatchedHandler<P, V, E extends PatternExtractor<P, ? super V>>
Author:

Lars Kroll <lkroll@kth.se>

Parameters:
  • <P> – The type of the pattern to match against
  • <V> – The type of the content value
  • <E> – The type of context event

Fields

cxtType

Class<E> cxtType

Constructors

MatchedHandler

protected MatchedHandler()

MatchedHandler

protected MatchedHandler(Class<E> cxtType)

Methods

getCxtType

public Class<E> getCxtType()

Gets the event type.

Returns:the event type

handle

public abstract void handle(V content, E context)

pattern

public abstract P pattern()

setCxtType

public void setCxtType(Class<E> cxtType)

Sets the event type.

Parameters:
  • eventType – the new event type