Class DoubleQuoteStart
- java.lang.Object
-
- org.apache.camel.language.simple.ast.BaseSimpleNode
-
- org.apache.camel.language.simple.ast.DoubleQuoteStart
-
- All Implemented Interfaces:
Block
,BlockStart
,SimpleNode
public class DoubleQuoteStart extends BaseSimpleNode implements BlockStart
Starts a block enclosed by double quotes
-
-
Field Summary
-
Fields inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
token
-
-
Constructor Summary
Constructors Constructor Description DoubleQuoteStart(SimpleToken token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptAndAddNode(SimpleNode node)
Whether to accept and add the given node in this block.String
createCode(String expression)
Creates Java code based on this model.org.apache.camel.Expression
createExpression(org.apache.camel.CamelContext camelContext, String expression)
Creates a CamelExpression
based on this model.String
toString()
-
Methods inherited from class org.apache.camel.language.simple.ast.BaseSimpleNode
getToken
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.camel.language.simple.ast.SimpleNode
getToken
-
-
-
-
Constructor Detail
-
DoubleQuoteStart
public DoubleQuoteStart(SimpleToken token)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classBaseSimpleNode
-
createExpression
public org.apache.camel.Expression createExpression(org.apache.camel.CamelContext camelContext, String expression)
Description copied from interface:SimpleNode
Creates a CamelExpression
based on this model.- Specified by:
createExpression
in interfaceSimpleNode
- Parameters:
camelContext
- the camel contextexpression
- the input string- Returns:
- the created
Expression
-
acceptAndAddNode
public boolean acceptAndAddNode(SimpleNode node)
Description copied from interface:Block
Whether to accept and add the given node in this block.- Specified by:
acceptAndAddNode
in interfaceBlock
- Parameters:
node
- the other node.- Returns:
- true to accept and add to this block, false to end this block.
-
createCode
public String createCode(String expression) throws SimpleParserException
Description copied from interface:SimpleNode
Creates Java code based on this model.- Specified by:
createCode
in interfaceSimpleNode
- Parameters:
expression
- the input string- Returns:
- the created Java code
- Throws:
SimpleParserException
- should be thrown if error parsing the model
-
-