public static EPType singleValue(Class singleValueType){
  if (singleValueType != null && singleValueType.isArray()) {
    return new ClassMultiValuedEPType(singleValueType,singleValueType.getComponentType());
  }
  return new ClassEPType(singleValueType);
}

public static EPType singleValue ( Class singleValueType ) { if ( singleValueType != null && singleValueType . isArray ( ) ) { return new ClassMultiValuedEPType ( singleValueType , singleValueType . getComponentType ( ) ) ; } return new ClassEPType ( singleValueType ) ; }
indicate that the expression return type is a single ( non - enumerable ) value of the given type . the expression can still return an array or collection or events however since the engine would not know the type of such objects and may not use runtime reflection it may not allow certain operations on expression results .
