本文整理汇总了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);
}