Interface CSimpleCompiler
-
public interface CSimpleCompiler
SPI plugin for custom compilers to use at runtime.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAliases(String key, String value)
Adds an aliasvoid
addImport(String imports)
Adds an import lineCSimpleExpression
compileExpression(org.apache.camel.CamelContext camelContext, String script)
Create an expression from the given csimple scriptCSimpleExpression
compilePredicate(org.apache.camel.CamelContext camelContext, String script)
Create an expression from the given csimple script
-
-
-
Field Detail
-
FACTORY
static final String FACTORY
Service factory key.- See Also:
- Constant Field Values
-
-
Method Detail
-
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 keyvalue
- the value
-
compileExpression
CSimpleExpression compileExpression(org.apache.camel.CamelContext camelContext, String script)
Create an expression from the given csimple script- Parameters:
camelContext
- the camel contextscript
- 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 contextscript
- the csimple script- Returns:
- the compiled preidcate
-
-