Package org.eclipse.persistence.jpa.jpql
Class EclipseLinkLiteralVisitor
java.lang.Object
org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
org.eclipse.persistence.jpa.jpql.LiteralVisitor
org.eclipse.persistence.jpa.jpql.EclipseLinkLiteralVisitor
- All Implemented Interfaces:
EclipseLinkExpressionVisitor
,ExpressionVisitor
public class EclipseLinkLiteralVisitor
extends LiteralVisitor
implements EclipseLinkExpressionVisitor
This visitor traverses an
Expression
and retrieves the "literal" value. The literal to retrieve depends on the type
.
The literal is basically a string value like an identification variable name, an input parameter,
a path expression, an abstract schema name, etc.
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
- Since:
- 2.4
- Version:
- 2.5
-
Field Summary
Fields inherited from class org.eclipse.persistence.jpa.jpql.LiteralVisitor
literal, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
visit
(AsOfClause expression) Visits theAsOfClause
expression.void
visit
(CastExpression expression) Visits theCastExpression
expression.void
visit
(ConnectByClause expression) Visits theConnectByClause
expression.void
visit
(DatabaseType expression) Visits theDatabaseType
expression.void
visit
(ExtractExpression expression) Visits theExtractExpression
expression.void
visit
(HierarchicalQueryClause expression) Visits theHierarchicalQueryClause
expression.void
visit
(OrderSiblingsByClause expression) Visits theOrderSiblingsByClause
expression.void
visit
(RegexpExpression expression) Visits theRegexpExpression
expression.void
visit
(StartWithClause expression) Visits theStartWithClause
expression.void
visit
(TableExpression expression) Visits theTableExpression
expression.void
visit
(TableVariableDeclaration expression) Visits theTableVariableDeclaration
expression.void
visit
(UnionClause expression) Visits theUnionClause
expression.Methods inherited from class org.eclipse.persistence.jpa.jpql.LiteralVisitor
getType, setType, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitAbstractPathExpression
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.persistence.jpa.jpql.parser.ExpressionVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
Constructor Details
-
EclipseLinkLiteralVisitor
public EclipseLinkLiteralVisitor()Creates a newEclipseLinkLiteralVisitor
.
-
-
Method Details
-
visit
Description copied from interface:EclipseLinkExpressionVisitor
Visits theAsOfClause
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:EclipseLinkExpressionVisitor
Visits theCastExpression
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:EclipseLinkExpressionVisitor
Visits theConnectByClause
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheConnectByClause
to visit
-
visit
Description copied from interface:EclipseLinkExpressionVisitor
Visits theDatabaseType
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheDatabaseType
to visit
-
visit
Description copied from interface:EclipseLinkExpressionVisitor
Visits theExtractExpression
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:EclipseLinkExpressionVisitor
Visits theHierarchicalQueryClause
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheHierarchicalQueryClause
to visit
-
visit
Description copied from interface:EclipseLinkExpressionVisitor
Visits theOrderSiblingsByClause
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:EclipseLinkExpressionVisitor
Visits theRegexpExpression
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:EclipseLinkExpressionVisitor
Visits theStartWithClause
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheStartWithClause
to visit
-
visit
Description copied from interface:EclipseLinkExpressionVisitor
Visits theTableExpression
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:EclipseLinkExpressionVisitor
Visits theTableVariableDeclaration
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:EclipseLinkExpressionVisitor
Visits theUnionClause
expression.- Specified by:
visit
in interfaceEclipseLinkExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-