當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。