|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
org.eclipse.persistence.jpa.internal.jpql.parser.StringExpression
public abstract class StringExpression
A 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 Summary | |
---|---|
StringExpression() |
Method Summary | |
---|---|
abstract java.util.ListIterator<StringExpression> |
orderedChildren() Creates a list representing this expression and its children. |
(package private) abstract void |
populatePosition(QueryPosition queryPosition, int position) Retrieves the StringExpression located at the given position using the actual query, which may have extra whitespace. |
abstract java.lang.String |
toActualText() Generates a string representation of this 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. |
abstract java.lang.String |
toParsedText() Returns a string representation of this StringExpression and its children. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringExpression()
Method Detail |
---|
public abstract java.util.ListIterator<StringExpression> orderedChildren()
#addChildrenTo(Collection)
is called.StringExpressions
representing this Expression
abstract void populatePosition(QueryPosition queryPosition, int position)
StringExpression
located at the given position using the actual query, which may have extra whitespace.position
- The array has one element and is the position of the StringExpression
to retrievepublic 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
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |