本文整理匯總了Java中com.espertech.esper.event.BaseNestableEventUtil類的典型用法代碼示例。如果您正苦於以下問題:Java BaseNestableEventUtil類的具體用法?Java BaseNestableEventUtil怎麽用?Java BaseNestableEventUtil使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
BaseNestableEventUtil類屬於com.espertech.esper.event包,在下文中一共展示了BaseNestableEventUtil類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getFragment
import com.espertech.esper.event.BaseNestableEventUtil; //導入依賴的package包/類
public Object getFragment(EventBean eventBean) throws PropertyAccessException {
Object value = get(eventBean);
if (value instanceof EventBean[]) {
return value;
}
return BaseNestableEventUtil.getBNFragmentArray(value, fragmentEventType, eventAdapterService);
}
示例2: getFragmentCodegen
import com.espertech.esper.event.BaseNestableEventUtil; //導入依賴的package包/類
private CodegenMethodNode getFragmentCodegen(CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {
CodegenMember mSvc = codegenClassScope.makeAddMember(EventAdapterService.class, eventAdapterService);
CodegenMember mType = codegenClassScope.makeAddMember(EventType.class, fragmentEventType);
return codegenMethodScope.makeChild(Object.class, this.getClass(), codegenClassScope).addParam(Map.class, "map").getBlock()
.declareVar(Object.class, "value", underlyingGetCodegen(ref("map"), codegenMethodScope, codegenClassScope))
.ifInstanceOf("value", EventBean[].class)
.blockReturn(ref("value"))
.methodReturn(staticMethod(BaseNestableEventUtil.class, "getBNFragmentArray", ref("value"), member(mType.getMemberId()), member(mSvc.getMemberId())));
}
示例3: handleCreateFragmentCodegen
import com.espertech.esper.event.BaseNestableEventUtil; //導入依賴的package包/類
protected CodegenExpression handleCreateFragmentCodegen(CodegenExpression value, CodegenClassScope codegenClassScope) {
if (fragmentEventType == null) {
return constantNull();
}
CodegenMember mSvc = codegenClassScope.makeAddMember(EventAdapterService.class, eventAdapterService);
CodegenMember mType = codegenClassScope.makeAddMember(EventType.class, fragmentEventType);
return staticMethod(BaseNestableEventUtil.class, "handleBNCreateFragmentObjectArray", value, CodegenExpressionBuilder.member(mType.getMemberId()), CodegenExpressionBuilder.member(mSvc.getMemberId()));
}
示例4: getFragment
import com.espertech.esper.event.BaseNestableEventUtil; //導入依賴的package包/類
public Object getFragment(EventBean obj) {
Map<String, Object> map = BaseNestableEventUtil.checkedCastUnderlyingMap(obj);
Object value = map.get(propertyMap);
if (value == null) {
return null;
}
return handleNestedValueFragment(value);
}
示例5: getFragment
import com.espertech.esper.event.BaseNestableEventUtil; //導入依賴的package包/類
public Object getFragment(EventBean obj) {
Map<String, Object> map = BaseNestableEventUtil.checkedCastUnderlyingMap(obj);
// If the map does not contain the key, this is allowed and represented as null
Object value = map.get(propertyMap);
if (value == null) {
return null;
}
// Object within the map
EventBean theEvent = (EventBean) value;
return eventBeanEntryGetter.getFragment(theEvent);
}
示例6: getFragment
import com.espertech.esper.event.BaseNestableEventUtil; //導入依賴的package包/類
public Object getFragment(EventBean obj) {
// If the map does not contain the key, this is allowed and represented as null
Object value = BaseNestableEventUtil.checkedCastUnderlyingObjectArray(obj)[propertyIndex];
if (value == null) {
return null;
}
// Object within the map
EventBean theEvent = (EventBean) value;
return eventBeanEntryGetter.getFragment(theEvent);
}
示例7: getFragment
import com.espertech.esper.event.BaseNestableEventUtil; //導入依賴的package包/類
public Object getFragment(EventBean obj) {
Object[] array = BaseNestableEventUtil.checkedCastUnderlyingObjectArray(obj);
Object value = array[propertyIndex];
if (value == null) {
return null;
}
return handleNestedValueFragment(value);
}
示例8: underlyingFragmentCodegen
import com.espertech.esper.event.BaseNestableEventUtil; //導入依賴的package包/類
public CodegenExpression underlyingFragmentCodegen(CodegenExpression underlyingExpression, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {
if (eventType == null) {
return constantNull();
}
CodegenMember mSvc = codegenClassScope.makeAddMember(EventAdapterService.class, eventAdapterService);
CodegenMember mType = codegenClassScope.makeAddMember(BeanEventType.class, eventType);
return staticMethod(BaseNestableEventUtil.class, "getBNFragmentPojo", underlyingGetCodegen(underlyingExpression, codegenMethodScope, codegenClassScope), member(mType.getMemberId()), member(mSvc.getMemberId()));
}
示例9: get
import com.espertech.esper.event.BaseNestableEventUtil; //導入依賴的package包/類
public Object get(EventBean obj) throws PropertyAccessException {
return getMap(BaseNestableEventUtil.checkedCastUnderlyingMap(obj));
}
示例10: get
import com.espertech.esper.event.BaseNestableEventUtil; //導入依賴的package包/類
public Object get(EventBean obj) {
return getMap(BaseNestableEventUtil.checkedCastUnderlyingMap(obj));
}
示例11: get
import com.espertech.esper.event.BaseNestableEventUtil; //導入依賴的package包/類
public Object get(EventBean obj) throws PropertyAccessException {
Object[] array = BaseNestableEventUtil.checkedCastUnderlyingObjectArray(obj);
return getObjectArray(array);
}
示例12: getFragment
import com.espertech.esper.event.BaseNestableEventUtil; //導入依賴的package包/類
public Object getFragment(EventBean obj) {
Object[] array = BaseNestableEventUtil.checkedCastUnderlyingObjectArray(obj);
return array[propertyIndex];
}
示例13: get
import com.espertech.esper.event.BaseNestableEventUtil; //導入依賴的package包/類
public Object get(EventBean eventBean) throws PropertyAccessException {
Map<String, Object> data = BaseNestableEventUtil.checkedCastUnderlyingMap(eventBean);
return getMap(data);
}
示例14: get
import com.espertech.esper.event.BaseNestableEventUtil; //導入依賴的package包/類
public Object get(EventBean obj) {
Object[] array = BaseNestableEventUtil.checkedCastUnderlyingObjectArray(obj);
return getObjectArray(array);
}
示例15: handleCreateFragment
import com.espertech.esper.event.BaseNestableEventUtil; //導入依賴的package包/類
protected Object handleCreateFragment(Object value) {
return BaseNestableEventUtil.handleBNCreateFragmentObjectArray(value, fragmentEventType, eventAdapterService);
}