public abstract class StringExpression
extends java.lang.Object
StringExpression
is used when retrieving the deepest Expression
in the
JPQL parsed tree. An Expression
should wrap its entire content with StringExpressions
, i.e. whitespace, commas, dots, etc. Expression
parts
are already an instance of StringExpressions
so they don't need to be
encapsulated.
Note: This is not an interface because some methods should not become public on AbstractExpression
, they are used internally.
Constructor and Description |
---|
StringExpression() |
Modifier and Type | Method and Description |
---|---|
abstract java.util.ListIterator<StringExpression> |
orderedChildren()
Creates a list representing this expression and its children.
|
abstract java.lang.String |
toActualText()
Generates a string representation of this
StringExpression , which needs to include any
characters that are considered virtual, i.e. |
abstract java.lang.String |
toParsedText()
Returns a string representation of this
StringExpression and its children. |
public abstract java.util.ListIterator<StringExpression> orderedChildren()
#addChildrenTo(Collection)
is called.StringExpressions
representing this Expression
public abstract java.lang.String toActualText()
StringExpression
, which needs to include any
characters that are considered virtual, i.e. that was parsed when the query is incomplete and
is needed for functionality like content assist.StringExpression
public abstract java.lang.String toParsedText()
StringExpression
and its children. The
expression should contain whitespace even if the beautified version would not have any. For
instance, "SELECT e " should be returned where Expression#toText()
would return
"SELECT e".StringExpression
EclipseLink 2.3.2, "build v20111125-r10461" API Reference