Interface LiteralNode
-
- All Superinterfaces:
SimpleNode
- All Known Implementing Classes:
LiteralExpression
,SimpleFunctionExpression
public interface LiteralNode extends SimpleNode
Represents a node in the AST which contains literals
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addText(String text)
Adds the given text to this model.String
getText()
Gets the textboolean
quoteEmbeddedNodes()
Whether to quote embedded nodes.-
Methods inherited from interface org.apache.camel.language.simple.ast.SimpleNode
createCode, createExpression, getToken
-
-
-
-
Method Detail
-
addText
void addText(String text)
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.
-
-