|
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
org.eclipse.persistence.jpa.internal.jpql.parser.DefaultStringExpression
final class DefaultStringExpression
The default implementation of a StringExpression that wraps a string.
| Field Summary | |
|---|---|
private AbstractExpression |
owningExpressionThe Expression from where the text value comes. |
private java.lang.String |
valueThe wrapped string value. |
| Constructor Summary | |
|---|---|
DefaultStringExpression(AbstractExpression owningExpression, java.lang.String value)Creates a new DefaultStringExpression. |
|
| Method Summary | |
|---|---|
java.util.ListIterator<StringExpression> |
orderedChildren()Creates a list representing this expression and its children. |
(package private) void |
populatePosition(QueryPosition queryPosition, int position)Retrieves the StringExpression located at the given position using the actual query, which may have extra whitespace. |
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. |
java.lang.String |
toParsedText()Returns a string representation of this StringExpression and its children. |
java.lang.String |
toString() |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final AbstractExpression owningExpression
Expression from where the text value comes.private final java.lang.String value
| Constructor Detail |
|---|
DefaultStringExpression(AbstractExpression owningExpression,
java.lang.String value)
DefaultStringExpression.
owningExpression - The Expression from where the text value comesvalue - The string value to wrap with this StringExpression| Method Detail |
|---|
public java.util.ListIterator<StringExpression> orderedChildren()
#addChildrenTo(Collection) is called.orderedChildren in class StringExpressionStringExpressions representing this Expression
void populatePosition(QueryPosition queryPosition,
int position)
StringExpression located at the given position using the actual query, which may have extra whitespace.populatePosition in class StringExpressionposition - The array has one element and is the position of the StringExpression to retrievepublic 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.toActualText in class StringExpressionStringExpressionpublic 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".toParsedText in class StringExpressionStringExpressionpublic java.lang.String toString()
toString in class java.lang.Object
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||