com.netflix.eventbus.filter
Class EventFilterCompiler

java.lang.Object
  extended by com.netflix.eventbus.filter.EventFilterCompiler

public class EventFilterCompiler
extends java.lang.Object

A compiler to compile the event filter from a language specified in com.netflix.eventbus.filter.lang to an EventFilter for consumption by EventBus


Constructor Summary
EventFilterCompiler()
           
 
Method Summary
static EventFilter compileInfixNotation(java.lang.String filter)
          Compiles a filter expressed in infix notation to an EventFilter instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventFilterCompiler

public EventFilterCompiler()
Method Detail

compileInfixNotation

public static EventFilter compileInfixNotation(java.lang.String filter)
                                        throws InvalidFilterException
Compiles a filter expressed in infix notation to an EventFilter instance.

Parameters:
filter - Filter to compile.
Returns:
EventFilter instance compiled from the passed filter.
Throws:
InvalidFilterException - If the input filter is invalid.