org.apache.camel.language.simple.ast
Interface Block

All Superinterfaces:
SimpleNode
All Known Subinterfaces:
BlockStart
All Known Implementing Classes:
DoubleQuoteStart, SimpleFunctionStart, SingleQuoteStart

public interface Block
extends SimpleNode

A model which is a block, containing other nodes.

This node will keep adding other nodes until no longer accepted, by returning false in the acceptAndAddNode(SimpleNode) method.


Method Summary
 boolean acceptAndAddNode(SimpleNode node)
          Whether to accept and add the given node in this block.
 
Methods inherited from interface org.apache.camel.language.simple.ast.SimpleNode
createExpression, getToken
 

Method Detail

acceptAndAddNode

boolean acceptAndAddNode(SimpleNode node)
Whether to accept and add the given node in this block.

Parameters:
node - the other node.
Returns:
true to accept and add to this block, false to end this block.


Apache CAMEL