Interface LiteralNode
- All Superinterfaces:
SimpleNode
- All Known Implementing Classes:
LiteralExpression,SimpleFunctionExpression
Represents a node in the AST which contains literals
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the given text to this model.getText()Gets the textbooleanWhether to quote embedded nodes.Methods inherited from interface org.apache.camel.language.simple.ast.SimpleNode
createCode, createExpression, getToken
-
Method Details
-
addText
Adds the given text to this model. This operation can be invoked multiple times to add more text.- Parameters:
text- the text to add
-
getText
String getText()Gets the text- Returns:
- the text, will never be null, but may contain an empty string.
-
quoteEmbeddedNodes
boolean quoteEmbeddedNodes()Whether to quote embedded nodes. Some functions such as the bean: function would need to quote its embedded nodes as they are parameter values for method names.
-