|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.rettype.EPTypeHelper
public class EPTypeHelper
Carries return type information related to the return values returned by expressions.
Use factory methods to initialize return type information according to the return values that your expression is going to provide.
collectionOfEvents(com.espertech.esper.client.EventType)
to indicate that the expression returns a collection of events.
singleEvent(com.espertech.esper.client.EventType)
to indicate that the expression returns a single event.
collectionOfSingleValue(Class)
to indicate that the expression returns a collection of single values.
A single value can be any object including null.
array(Class)
to indicate that the expression returns an array of single values.
A single value can be any object including null.
singleValue(Class)
to indicate that the expression returns a single value.
A single value can be any object including null.
Such expression results cannot be used as input to enumeration methods, for example.
Constructor Summary | |
---|---|
EPTypeHelper()
|
Method Summary | |
---|---|
static EPType |
array(java.lang.Class arrayComponentType)
Indicate that the expression return type is an array of a given component type. |
static EPType |
collectionOfEvents(EventType eventTypeOfCollectionEvents)
Indicate that the expression return type is a collection of a given type of events. |
static EPType |
collectionOfSingleValue(java.lang.Class collectionComponentType)
Indicate that the expression return type is a collection of a given component type. |
static EPType |
fromMethod(java.lang.reflect.Method method)
Interrogate the provided method and determine whether it returns single-value, array of single-value or collection of single-value and their component type. |
static java.lang.Class |
getClassMultiValued(EPType type)
|
static java.lang.Class |
getClassSingleValued(EPType type)
|
static EventType |
getEventType(EPType epType)
|
static EventType |
getEventTypeMultiValued(EPType type)
|
static EventType |
getEventTypeSingleValued(EPType type)
|
static java.lang.Class |
getNormalizedClass(EPType theType)
|
static boolean |
isCarryEvent(EPType epType)
|
static EPType |
nullValue()
|
static EPType |
optionalFromEnumerationExpr(java.lang.String statementId,
EventAdapterService eventAdapterService,
ExprNode exprNode)
|
static java.lang.Class |
optionalIsComponentTypeColl(EPType type)
|
static EventType |
optionalIsEventTypeColl(EPType type)
|
static EventType |
optionalIsEventTypeSingle(EPType type)
|
static EPType |
singleEvent(EventType eventTypeOfSingleEvent)
Indicate that the expression return type is single event of a given event type. |
static EPType |
singleValue(java.lang.Class singleValueType)
Indicate that the expression return type is a single (non-enumerable) value of the given type. |
static java.lang.String |
toTypeDescriptive(EPType epType)
Returns a nice text detailing the expression result type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EPTypeHelper()
Method Detail |
---|
public static EventType getEventTypeSingleValued(EPType type)
public static EventType getEventTypeMultiValued(EPType type)
public static java.lang.Class getClassMultiValued(EPType type)
public static java.lang.Class getClassSingleValued(EPType type)
public static boolean isCarryEvent(EPType epType)
public static EventType getEventType(EPType epType)
public static EPType array(java.lang.Class arrayComponentType)
arrayComponentType
- array component type
public static EPType singleValue(java.lang.Class singleValueType)
singleValueType
- type of single value returned, or null to indicate that the expression always returns null
public static EPType nullValue()
public static EPType collectionOfSingleValue(java.lang.Class collectionComponentType)
collectionComponentType
- collection component type
public static EPType collectionOfEvents(EventType eventTypeOfCollectionEvents)
eventTypeOfCollectionEvents
- the event type of the events that are part of the collection
public static EPType singleEvent(EventType eventTypeOfSingleEvent)
eventTypeOfSingleEvent
- the event type of the event returned
public static EPType fromMethod(java.lang.reflect.Method method)
method
- the class methods
public static java.lang.String toTypeDescriptive(EPType epType)
public static java.lang.Class getNormalizedClass(EPType theType)
public static EPType optionalFromEnumerationExpr(java.lang.String statementId, EventAdapterService eventAdapterService, ExprNode exprNode) throws ExprValidationException
ExprValidationException
public static EventType optionalIsEventTypeColl(EPType type)
public static java.lang.Class optionalIsComponentTypeColl(EPType type)
public static EventType optionalIsEventTypeSingle(EPType type)
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |