| Modifier and Type | Field and Description |
|---|---|
| private String | parameterName
The cached parameter name without the identifier. |
| private Boolean | positional
Flag caching the type of the input parameter, which is either positional or named. |
| Access | Constructor and Description |
|---|---|
| public | InputParameter(AbstractExpression
The parent of this expression parent, String The input parameter, which starts with either '?' or ':' parameter)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(ExpressionVisitor
The visitor)ExpressionVisitor to visit this objectImplements org. Expression by the given visitor.
|
| public void | acceptChildren(ExpressionVisitor
The visitor)visitor to visit the children of this object.Implements org. Expression.
|
| protected void | addOrderedChildrenTo(List<Expression>
The list used to store the string representation of this children)AbstractExpressionOverrides org. AbstractExpression to the given list.
|
| public String | Returns: The parameter following the constant used to determine if it's a positional or named parameterReturns the positional parameter or the named parameter, which includes the identifier. |
| public String | Returns: The parameter following the constant used to determine if it's a positional or named parameterReturns the positional parameter or the named parameter without the identifier. |
| public JPQLQueryBNF | getQueryBNF()
Implements org. Expression.
|
| public boolean | Returns: true if the parameter type is '?'; false if it's ':'Determines whether this parameter is a positional parameter, i.e. the parameter type is '?'. |
| public boolean | Returns: true if the parameter type is ':'; false if it's '?'Determines whether this parameter is a positional parameter, i.e. the parameter type is ':'. |
| protected void | parse(WordParser
The text to parse based on the current position of the cursor wordParser, boolean Determines whether the parsing system should be tolerant, meaning if it should
try to parse invalid or incomplete queries tolerant)Implements abstract org. WordParser.
|
| public String | toActualText()
Overrides org. Implements org. Expression, 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.
|
| public String | toParsedText()
Overrides org. Implements org. Expression and its children.
|
| protected void | toParsedText(StringBuilder
The buffer used to append this writer, boolean Expression's string representationDetermines whether the string representation should represent what was parsed,
i.e. include any "virtual" whitespace (such as ending whitespace) and the actual case of the
JPQL identifiers actual)Implements abstract org. Expression, including its children,
if it has any.
|
| parameterName | back to summary |
|---|---|
| private String parameterName The cached parameter name without the identifier. | |
| positional | back to summary |
|---|---|
| private Boolean positional Flag caching the type of the input parameter, which is either positional or named. | |
| InputParameter | back to summary |
|---|---|
| public InputParameter(AbstractExpression parent, String parameter) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(ExpressionVisitor visitor) Implements org. Doc from org. Visits this
| |
| acceptChildren | back to summary |
|---|---|
| public void acceptChildren(ExpressionVisitor visitor) Implements org. Doc from org. Visits the children of this
This does not traverse the
| |
| addOrderedChildrenTo | back to summary |
|---|---|
| protected void addOrderedChildrenTo(List<Expression> children) Overrides org. Doc from org. Adds the children of this
| |
| getParameter | back to summary |
|---|---|
| public String getParameter() Returns the positional parameter or the named parameter, which includes the identifier.
| |
| getParameterName | back to summary |
|---|---|
| public String getParameterName() Returns the positional parameter or the named parameter without the identifier.
| |
| getQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF getQueryBNF() Implements org. Doc from org. Returns the BNF of this
| |
| isNamed | back to summary |
|---|---|
| public boolean isNamed() Determines whether this parameter is a positional parameter, i.e. the parameter type is '?'.
| |
| isPositional | back to summary |
|---|---|
| public boolean isPositional() Determines whether this parameter is a positional parameter, i.e. the parameter type is ':'.
| |
| parse | back to summary |
|---|---|
| protected void parse(WordParser wordParser, boolean tolerant) Implements abstract org. Doc from org. Parses the query by starting at the current position, which is part of the given
| |
| toActualText | back to summary |
|---|---|
| public String toActualText() Overrides org. Implements org. Doc from org. Generates a string representation of this
| |
| toParsedText | back to summary |
|---|---|
| public String toParsedText() Overrides org. Implements org. Doc from org. Returns a string representation of this
| |
| toParsedText | back to summary |
|---|---|
| protected void toParsedText(StringBuilder writer, boolean actual) Implements abstract org. Doc from org. Generates a string representation of this
| |