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.
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