test_class.file: BackEnd/Core/sailfish-core/src/test/java/com/exactpro/sf/aml/scriptutil/StaticUtilTest.java
test_class.identifier: StaticUtilTest
test_case.body: @Test
      public void testSimpleFilterWithInsertMvel_2() throws Exception {
      	List<IMessage> lst = new ArrayList<>();
      	for (int i=0; i<5; i++) {
      		IMessage msg = new MapMessage("namespace", "name");
      		msg.addField("val", i);
      		lst.add(msg);
      	}
          IMessage iMessage = new MapMessage("namespace", "name");
  		iMessage.addField("ref", lst);
  
  		IFilter filter = StaticUtil.filter(0, null, "mes.ref[0].val + mes.ref[3].val > x", "mes", iMessage);
          String condition = filter.getCondition();
  
          Assert.assertEquals("0 + 3 > x", condition);
      }
test_case.class_method_signature: StaticUtilTest.testSimpleFilterWithInsertMvel_2()
test_case.full_signature: @Test public void testSimpleFilterWithInsertMvel_2()
test_case.identifier: testSimpleFilterWithInsertMvel_2
test_case.invocations: addField add addField filter getCondition assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSimpleFilterWithInsertMvel_2()
focal_class.declarator: logger = LoggerFactory.getLogger(StaticUtil.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = LoggerFactory.getLogger(StaticUtil.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: UTILITY_FUNCTION = Pattern.compile("um\\.call\\(SailfishURI\\.parse\\(\"(?<SURI>.+?\\:.+?\\..+?)\"\\)(, )?+")
focal_class.modifier: private static final
focal_class.original_string: private static final Pattern UTILITY_FUNCTION = Pattern.compile("um\\.call\\(SailfishURI\\.parse\\(\"(?<SURI>.+?\\:.+?\\..+?)\"\\)(, )?+");
focal_class.type: Pattern
focal_class.var_name: UTILITY_FUNCTION
focal_class.declarator: EXPRESSIONS_CACHE_SIZE = 10_000
focal_class.modifier: private static final
focal_class.original_string: private static final int EXPRESSIONS_CACHE_SIZE = 10_000;
focal_class.type: int
focal_class.var_name: EXPRESSIONS_CACHE_SIZE
focal_class.declarator: EXPRESSION_CACHE = new LRUMap<>(EXPRESSIONS_CACHE_SIZE)
focal_class.modifier: private static final
focal_class.original_string: private static final Map<String, Serializable> EXPRESSION_CACHE = new LRUMap<>(EXPRESSIONS_CACHE_SIZE);
focal_class.type: Map<String, Serializable>
focal_class.var_name: EXPRESSION_CACHE
focal_class.file: BackEnd/Core/sailfish-core/src/main/java/com/exactpro/sf/aml/scriptutil/StaticUtil.java
focal_class.identifier: StaticUtil
focal_class.class_method_signature: StaticUtil.toMap(Object... args)
focal_class.full_signature: private static Map<String, Object> toMap(Object... args)
focal_class.identifier: toMap
focal_class.modifiers: private static
focal_class.parameters: (Object... args)
focal_class.return: Map<String, Object>
focal_class.signature: Map<String, Object> toMap(Object... args)
focal_class.class_method_signature: StaticUtil.eval(long line, String column, String expression, Object... args)
focal_class.full_signature: public static Object eval(long line, String column, String expression, Object... args)
focal_class.identifier: eval
focal_class.modifiers: public static
focal_class.parameters: (long line, String column, String expression, Object... args)
focal_class.return: Object
focal_class.signature: Object eval(long line, String column, String expression, Object... args)
focal_class.class_method_signature: StaticUtil.evalCondition(long line, String column, String expression, Object... args)
focal_class.full_signature: public static boolean evalCondition(long line, String column, String expression, Object... args)
focal_class.identifier: evalCondition
focal_class.modifiers: public static
focal_class.parameters: (long line, String column, String expression, Object... args)
focal_class.return: boolean
focal_class.signature: boolean evalCondition(long line, String column, String expression, Object... args)
focal_class.class_method_signature: StaticUtil.eval(long line, String column, String expression, Map<String, Object> args)
focal_class.full_signature: private static Object eval(long line, String column, String expression, Map<String, Object> args)
focal_class.identifier: eval
focal_class.modifiers: private static
focal_class.parameters: (long line, String column, String expression, Map<String, Object> args)
focal_class.return: Object
focal_class.signature: Object eval(long line, String column, String expression, Map<String, Object> args)
focal_class.class_method_signature: StaticUtil.nullFilter(long line, String column)
focal_class.full_signature: public static IFilter nullFilter(long line, String column)
focal_class.identifier: nullFilter
focal_class.modifiers: public static
focal_class.parameters: (long line, String column)
focal_class.return: IFilter
focal_class.signature: IFilter nullFilter(long line, String column)
focal_class.class_method_signature: StaticUtil.notNullFilter(long line, String column)
focal_class.full_signature: public static IFilter notNullFilter(long line, String column)
focal_class.identifier: notNullFilter
focal_class.modifiers: public static
focal_class.parameters: (long line, String column)
focal_class.return: IFilter
focal_class.signature: IFilter notNullFilter(long line, String column)
focal_class.class_method_signature: StaticUtil.simpleFilter(long line, String column, String condition, Object... args)
focal_class.full_signature: public static IFilter simpleFilter(long line, String column, String condition, Object... args)
focal_class.identifier: simpleFilter
focal_class.modifiers: public static
focal_class.parameters: (long line, String column, String condition, Object... args)
focal_class.return: IFilter
focal_class.signature: IFilter simpleFilter(long line, String column, String condition, Object... args)
focal_class.class_method_signature: StaticUtil.regexFilter(long line, String column, String condition, Object... args)
focal_class.full_signature: public static IFilter regexFilter(long line, String column, String condition, Object... args)
focal_class.identifier: regexFilter
focal_class.modifiers: public static
focal_class.parameters: (long line, String column, String condition, Object... args)
focal_class.return: IFilter
focal_class.signature: IFilter regexFilter(long line, String column, String condition, Object... args)
focal_class.class_method_signature: StaticUtil.filter(long line, String column, String condition, Object... args)
focal_class.full_signature: public static IFilter filter(long line, String column, String condition, Object... args)
focal_class.identifier: filter
focal_class.modifiers: public static
focal_class.parameters: (long line, String column, String condition, Object... args)
focal_class.return: IFilter
focal_class.signature: IFilter filter(long line, String column, String condition, Object... args)
focal_class.class_method_signature: StaticUtil.countFilter(long line, String column, String condition, Object... args)
focal_class.full_signature: public static IFilter countFilter(long line, String column, String condition, Object... args)
focal_class.identifier: countFilter
focal_class.modifiers: public static
focal_class.parameters: (long line, String column, String condition, Object... args)
focal_class.return: IFilter
focal_class.signature: IFilter countFilter(long line, String column, String condition, Object... args)
focal_class.class_method_signature: StaticUtil.stripFilter(Object o)
focal_class.full_signature: public static Object stripFilter(Object o)
focal_class.identifier: stripFilter
focal_class.modifiers: public static
focal_class.parameters: (Object o)
focal_class.return: Object
focal_class.signature: Object stripFilter(Object o)
focal_class.class_method_signature: StaticUtil.stripFilter(Object o, boolean dontFailOnFilter)
focal_class.full_signature: public static Object stripFilter(Object o, boolean dontFailOnFilter)
focal_class.identifier: stripFilter
focal_class.modifiers: public static
focal_class.parameters: (Object o, boolean dontFailOnFilter)
focal_class.return: Object
focal_class.signature: Object stripFilter(Object o, boolean dontFailOnFilter)
focal_class.class_method_signature: StaticUtil.removeUtilityCall(CharSequence condition)
focal_class.full_signature: public static String removeUtilityCall(CharSequence condition)
focal_class.identifier: removeUtilityCall
focal_class.modifiers: public static
focal_class.parameters: (CharSequence condition)
focal_class.return: String
focal_class.signature: String removeUtilityCall(CharSequence condition)
focal_class.class_method_signature: StaticUtil.compileExpression(String expression)
focal_class.full_signature: private static Serializable compileExpression(String expression)
focal_class.identifier: compileExpression
focal_class.modifiers: private static
focal_class.parameters: (String expression)
focal_class.return: Serializable
focal_class.signature: Serializable compileExpression(String expression)
focal_class.class_method_signature: StaticUtil.processPropertyAccessException(long line, String column, PropertyAccessException e)
focal_class.full_signature: private static MvelException processPropertyAccessException(long line, String column, PropertyAccessException e)
focal_class.identifier: processPropertyAccessException
focal_class.modifiers: private static
focal_class.parameters: (long line, String column, PropertyAccessException e)
focal_class.return: MvelException
focal_class.signature: MvelException processPropertyAccessException(long line, String column, PropertyAccessException e)
focal_method.body: public static IFilter filter(long line, String column, String condition, Object... args) {
  		return new MvelFilter(line, column, condition, toMap(args));
  	}
focal_method.class_method_signature: StaticUtil.filter(long line, String column, String condition, Object... args)
focal_method.full_signature: public static IFilter filter(long line, String column, String condition, Object... args)
focal_method.identifier: filter
focal_method.invocations: toMap
focal_method.modifiers: public static
focal_method.parameters: (long line, String column, String condition, Object... args)
focal_method.return: IFilter
focal_method.signature: IFilter filter(long line, String column, String condition, Object... args)