Interface CSimpleCompiler


public interface CSimpleCompiler
SPI plugin for custom compilers to use at runtime.
  • Field Details

  • Method Details

    • addImport

      void addImport(String imports)
      Adds an import line
      Parameters:
      imports - import such as com.foo.MyClass
    • addAliases

      void addAliases(String key, String value)
      Adds an alias
      Parameters:
      key - the key
      value - the value
    • compileExpression

      CSimpleExpression compileExpression(org.apache.camel.CamelContext camelContext, String script)
      Create an expression from the given csimple script
      Parameters:
      camelContext - the camel context
      script - the csimple script
      Returns:
      the compiled expression
    • compilePredicate

      CSimpleExpression compilePredicate(org.apache.camel.CamelContext camelContext, String script)
      Create an expression from the given csimple script
      Parameters:
      camelContext - the camel context
      script - the csimple script
      Returns:
      the compiled preidcate