Package org.qdl_lang.evaluate
Class StemEvaluator.SizeOf
- java.lang.Object
-
- org.qdl_lang.util.aggregate.AbstractIdentityStemProcess
-
- org.qdl_lang.util.aggregate.AxisRestrictionIdentity
-
- org.qdl_lang.evaluate.StemEvaluator.SizeOf
-
- All Implemented Interfaces:
ProcessStemAxisRestriction
,ProcessStemValues
- Enclosing class:
- StemEvaluator
public static class StemEvaluator.SizeOf extends AxisRestrictionIdentity
-
-
Field Summary
-
Fields inherited from class org.qdl_lang.util.aggregate.AxisRestrictionIdentity
axis
-
Fields inherited from interface org.qdl_lang.util.aggregate.ProcessStemAxisRestriction
ALL_AXES
-
-
Constructor Summary
Constructors Constructor Description SizeOf(int axis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getDefaultValue(List<Object> index, Object key, Object value)
This is what makes this the identity function.Object
process(List index, Object key, Long value)
Object
process(List index, Object key, QDLStem value)
-
Methods inherited from class org.qdl_lang.util.aggregate.AxisRestrictionIdentity
getAxis, process
-
Methods inherited from class org.qdl_lang.util.aggregate.AbstractIdentityStemProcess
process, process, process, process, process, process, process
-
-
-
-
Method Detail
-
getDefaultValue
public Object getDefaultValue(List<Object> index, Object key, Object value)
Description copied from class:AbstractIdentityStemProcess
This is what makes this the identity function. If you want/need a different default value for each call, override this.- Overrides:
getDefaultValue
in classAbstractIdentityStemProcess
- Returns:
-
process
public Object process(List index, Object key, QDLStem value)
- Specified by:
process
in interfaceProcessStemAxisRestriction
- Overrides:
process
in classAxisRestrictionIdentity
-
process
public Object process(List index, Object key, Long value)
- Specified by:
process
in interfaceProcessStemValues
- Overrides:
process
in classAbstractIdentityStemProcess
-
-