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
  • Constructor Details

    • DoubleQuoteStart

      public DoubleQuoteStart(SimpleToken token)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class BaseSimpleNode
    • createExpression

      public org.apache.camel.Expression createExpression(org.apache.camel.CamelContext camelContext, String expression)
      Description copied from interface: SimpleNode
      Creates a Camel Expression based on this model.
      Specified by:
      createExpression in interface SimpleNode
      Parameters:
      camelContext - the camel context
      expression - 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 interface Block
      Parameters:
      node - the other node.
      Returns:
      true to accept and add to this block, false to end this block.
    • createCode

      public String createCode(org.apache.camel.CamelContext camelContext, String expression) throws SimpleParserException
      Description copied from interface: SimpleNode
      Creates Java code based on this model.
      Specified by:
      createCode in interface SimpleNode
      Parameters:
      camelContext - the camel context
      expression - the input string
      Returns:
      the created Java code
      Throws:
      SimpleParserException - should be thrown if error parsing the model