Interface CSimpleCompiler
public interface CSimpleCompiler
SPI plugin for custom compilers to use at runtime.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAliases(String key, String value) Adds an aliasvoidAdds an import linecompileExpression(org.apache.camel.CamelContext camelContext, String script) Create an expression from the given csimple scriptcompilePredicate(org.apache.camel.CamelContext camelContext, String script) Create an expression from the given csimple script
-
Field Details
-
FACTORY
Service factory key.- See Also:
-
-
Method Details
-
addImport
Adds an import line- Parameters:
imports- import such as com.foo.MyClass
-
addAliases
Adds an alias- Parameters:
key- the keyvalue- the value
-
compileExpression
Create an expression from the given csimple script- Parameters:
camelContext- the camel contextscript- the csimple script- Returns:
- the compiled expression
-
compilePredicate
Create an expression from the given csimple script- Parameters:
camelContext- the camel contextscript- the csimple script- Returns:
- the compiled preidcate
-