当前位置: 首页>>代码示例>>Java>>正文


Java BaseNestableEventUtil类代码示例

本文整理汇总了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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:8,代码来源:MapFragmentArrayPropertyGetter.java

示例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())));
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:10,代码来源:MapFragmentArrayPropertyGetter.java

示例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()));
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:9,代码来源:ObjectArrayPropertyGetterDefaultObjectArray.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:9,代码来源:MapNestedEntryPropertyGetterBase.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:15,代码来源:MapEventBeanEntryPropertyGetter.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:13,代码来源:ObjectArrayEventBeanEntryPropertyGetter.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:9,代码来源:ObjectArrayNestedEntryPropertyGetterBase.java

示例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()));
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:9,代码来源:ObjectArrayEntryPropertyGetter.java

示例9: get

import com.espertech.esper.event.BaseNestableEventUtil; //导入依赖的package包/类
public Object get(EventBean obj) throws PropertyAccessException {
    return getMap(BaseNestableEventUtil.checkedCastUnderlyingMap(obj));
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:MapFragmentArrayPropertyGetter.java

示例10: get

import com.espertech.esper.event.BaseNestableEventUtil; //导入依赖的package包/类
public Object get(EventBean obj) {
    return getMap(BaseNestableEventUtil.checkedCastUnderlyingMap(obj));
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:MapEntryPropertyGetter.java

示例11: get

import com.espertech.esper.event.BaseNestableEventUtil; //导入依赖的package包/类
public Object get(EventBean obj) throws PropertyAccessException {
    Object[] array = BaseNestableEventUtil.checkedCastUnderlyingObjectArray(obj);
    return getObjectArray(array);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:5,代码来源:ObjectArrayFragmentArrayPropertyGetter.java

示例12: getFragment

import com.espertech.esper.event.BaseNestableEventUtil; //导入依赖的package包/类
public Object getFragment(EventBean obj) {
    Object[] array = BaseNestableEventUtil.checkedCastUnderlyingObjectArray(obj);
    return array[propertyIndex];
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:5,代码来源:ObjectArrayEventBeanArrayPropertyGetter.java

示例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);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:5,代码来源:MapMappedPropertyGetter.java

示例14: get

import com.espertech.esper.event.BaseNestableEventUtil; //导入依赖的package包/类
public Object get(EventBean obj) {
    Object[] array = BaseNestableEventUtil.checkedCastUnderlyingObjectArray(obj);
    return getObjectArray(array);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:5,代码来源:ObjectArrayArrayPOJOEntryIndexedPropertyGetter.java

示例15: handleCreateFragment

import com.espertech.esper.event.BaseNestableEventUtil; //导入依赖的package包/类
protected Object handleCreateFragment(Object value) {
    return BaseNestableEventUtil.handleBNCreateFragmentObjectArray(value, fragmentEventType, eventAdapterService);
}
 
开发者ID:espertechinc,项目名称:esper,代码行数:4,代码来源:MapPropertyGetterDefaultObjectArray.java


注:本文中的com.espertech.esper.event.BaseNestableEventUtil类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。