Class ParserHelper


  • public class ParserHelper
    extends java.lang.Object
    The parser helper class for parsing conditions.
    • Constructor Detail

      • ParserHelper

        public ParserHelper()
    • Method Detail

      • parseCondition

        public static ICondition parseCondition​(ICondition precon,
                                                java.lang.String text,
                                                java.lang.String language,
                                                OAVTypeModel model,
                                                java.lang.String[] imports,
                                                java.util.List errors,
                                                IParserHelper helper,
                                                Variable returnvar,
                                                boolean invert)
        Parse a condition.
        Parameters:
        text - The text.
        model - The model.
        invert - True if the user condition needs to be inverted.
        Returns:
        The condition.
      • parseClipsCondition

        public static ICondition parseClipsCondition​(java.lang.String text,
                                                     OAVTypeModel model)
        Parse a condition.
        Parameters:
        text - The text.
        model - The model.
        Returns:
        The condition.
      • parseClipsCondition

        public static ICondition parseClipsCondition​(java.lang.String text,
                                                     OAVTypeModel model,
                                                     java.lang.String[] imports)
        Parse a condition.
        Parameters:
        text - The text.
        model - The model.
        imports - The imports.
        Returns:
        The condition.
      • parseClipsCondition

        public static ICondition parseClipsCondition​(java.lang.String text,
                                                     OAVTypeModel model,
                                                     java.lang.String[] imports,
                                                     java.util.List errors)
        Parse a condition.
        Parameters:
        text - The text.
        model - The model.
        Returns:
        The condition.
      • parseJavaCondition

        public static ICondition parseJavaCondition​(java.lang.String text,
                                                    OAVTypeModel model)
        Parse a condition.
        Parameters:
        text - The text.
        model - The model.
        Returns:
        The condition.
      • parseJavaCondition

        public static ICondition parseJavaCondition​(java.lang.String text,
                                                    OAVTypeModel model,
                                                    java.lang.String[] imports)
        Parse a condition.
        Parameters:
        text - The text.
        model - The model.
        imports - The imports.
        Returns:
        The condition.
      • parseJavaCondition

        public static ICondition parseJavaCondition​(java.lang.String text,
                                                    java.lang.String[] imports,
                                                    java.util.List errors,
                                                    IParserHelper helper,
                                                    Variable returnvar,
                                                    boolean invert)
        Parse a condition.
        Parameters:
        text - The text.
        model - The model.
        Returns:
        The condition.