public class LiteralExpression extends BaseSimpleNode implements LiteralNode
Modifier and Type | Field and Description |
---|---|
protected StringBuilder |
text |
token
Constructor and Description |
---|
LiteralExpression(SimpleToken token) |
Modifier and Type | Method and Description |
---|---|
void |
addText(String text)
Adds the given text to this model.
|
Expression |
createExpression(String expression)
Creates a Camel
Expression based on this model. |
String |
getText()
Gets the text
|
boolean |
quoteEmbeddedNodes()
Whether to quote embedded nodes.
|
String |
toString() |
getToken
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getToken
protected StringBuilder text
public LiteralExpression(SimpleToken token)
public String toString()
toString
in class BaseSimpleNode
public void addText(String text)
LiteralNode
addText
in interface LiteralNode
text
- the text to addpublic String getText()
LiteralNode
getText
in interface LiteralNode
public boolean quoteEmbeddedNodes()
LiteralNode
quoteEmbeddedNodes
in interface LiteralNode
public Expression createExpression(String expression)
SimpleNode
Expression
based on this model.createExpression
in interface SimpleNode
expression
- the input stringExpression
Apache Camel