org.apache.camel.language.simple
Class SimpleLanguageSupport
java.lang.Object
org.apache.camel.language.simple.SimpleLanguageSupport
- All Implemented Interfaces:
- IsSingleton, Language
- Direct Known Subclasses:
- FileLanguage, SimpleLanguage
public abstract class SimpleLanguageSupport
- extends Object
- implements Language, IsSingleton
Abstract base class for Simple languages.
Field Summary |
protected org.apache.commons.logging.Log |
log
|
protected static Pattern |
PATTERN
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PATTERN
protected static final Pattern PATTERN
log
protected final org.apache.commons.logging.Log log
SimpleLanguageSupport
public SimpleLanguageSupport()
createPredicate
public Predicate createPredicate(String expression)
- Description copied from interface:
Language
- Creates a predicate based on the given string input
- Specified by:
createPredicate
in interface Language
- Parameters:
expression
- the expression
- Returns:
- the created predicate
createExpression
public Expression createExpression(String expression)
- Description copied from interface:
Language
- Creates an expression based on the given string input
- Specified by:
createExpression
in interface Language
- Parameters:
expression
- the expression as a string input
- Returns:
- the created expression
createComplexConcatExpression
protected Expression createComplexConcatExpression(String expression)
createConstantExpression
protected Expression createConstantExpression(String expression,
int start,
int end)
createConstantExpression
protected Expression createConstantExpression(String expression)
createSimpleExpression
protected abstract Expression createSimpleExpression(String expression)
- Creates the simple expression based on the extracted content from the ${ } place holders
- Parameters:
expression
- the content between ${ and }
- Returns:
- the expression
ifStartsWithReturnRemainder
protected String ifStartsWithReturnRemainder(String prefix,
String text)
Copyright © 2009 Apache Software Foundation. All Rights Reserved.