Class SimpleLanguage

  • All Implemented Interfaces:
    AutoCloseable, org.apache.camel.CamelContextAware, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.spi.Language, org.apache.camel.StaticService
    Direct Known Subclasses:
    FileLanguage

    @Language("simple")
    public class SimpleLanguage
    extends org.apache.camel.support.LanguageSupport
    implements org.apache.camel.StaticService
    The Camel simple language.
    • Constructor Detail

      • SimpleLanguage

        public SimpleLanguage()
        Default constructor.
    • Method Detail

      • init

        public void init()
        Specified by:
        init in interface org.apache.camel.Service
      • start

        public void start()
        Specified by:
        start in interface org.apache.camel.Service
      • stop

        public void stop()
        Specified by:
        stop in interface org.apache.camel.Service
      • createPredicate

        public org.apache.camel.Predicate createPredicate​(String expression)
        Specified by:
        createPredicate in interface org.apache.camel.spi.Language
      • createPredicate

        public org.apache.camel.Predicate createPredicate​(String expression,
                                                          Object[] properties)
        Specified by:
        createPredicate in interface org.apache.camel.spi.Language
      • createExpression

        public org.apache.camel.Expression createExpression​(String expression,
                                                            Object[] properties)
        Specified by:
        createExpression in interface org.apache.camel.spi.Language
      • createExpression

        public org.apache.camel.Expression createExpression​(String expression)
        Specified by:
        createExpression in interface org.apache.camel.spi.Language
      • simple

        @Deprecated
        public static org.apache.camel.Expression simple​(String expression)
        Deprecated.
        Creates a new Expression.

        Important: If you need to use a predicate (function to return true|false) then use predicate(String) instead.

      • simple

        @Deprecated
        public static org.apache.camel.Expression simple​(String expression,
                                                         Class<?> resultType)
        Deprecated.
        Creates a new Expression (or Predicate if the resultType is a Boolean, or boolean type).
      • createExpression

        public org.apache.camel.Expression createExpression​(String expression,
                                                            Class<?> resultType)
      • expression

        @Deprecated
        public static org.apache.camel.Expression expression​(String expression)
        Deprecated.
        Creates a new Expression.

        Important: If you need to use a predicate (function to return true|false) then use predicate(String) instead.

      • predicate

        @Deprecated
        public static org.apache.camel.Predicate predicate​(String predicate)
        Deprecated.
        Creates a new Predicate.
      • hasSimpleFunction

        public static boolean hasSimpleFunction​(String expression)
        Does the expression include a simple function.
        Parameters:
        expression - the expression
        Returns:
        true if one or more simple function is included in the expression