|
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.AnonymousExpressionVisitor
org.eclipse.persistence.jpa.internal.jpql.LiteralVisitor
public final class LiteralVisitor
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.
Field Summary | |
---|---|
java.lang.String |
literal The literal value retrieved from the visited Expression . |
private LiteralType |
type The LiteralType helps to determine when traversing an Expression what to retrieve. |
Constructor Summary | |
---|---|
LiteralVisitor() Creates a new VariableNameVisitor . |
|
LiteralVisitor(LiteralType type) Creates a new VariableNameVisitor . |
Method Summary | |
---|---|
void |
setType(LiteralType type) Changes the way this visitor should retrieve the literal value. |
void |
visit(AbstractSchemaName expression) Visits the AbstractSchemaName expression. |
void |
visit(CollectionValuedPathExpression expression) Visits the CollectionValuedPathExpression expression. |
void |
visit(EntityTypeLiteral expression) Visits the EntityTypeLiteral expression. |
void |
visit(IdentificationVariable expression) Visits the IdentificationVariable expression. |
void |
visit(InputParameter expression) Visits the InputParameter expression. |
void |
visit(Join expression) Visits the Join expression. |
void |
visit(JoinFetch expression) Visits the FetchJoin expression. |
void |
visit(StateFieldPathExpression expression) Visits the StateFieldPathExpression expression. |
void |
visit(StringLiteral expression) Visits the StringLiteral expression. |
private void |
visitAbstractPathExpression(AbstractPathExpression expression) |
Methods inherited from class org.eclipse.persistence.jpa.internal.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String literal
Expression
.private LiteralType type
LiteralType
helps to determine when traversing an Expression
what to retrieve.Constructor Detail |
---|
public LiteralVisitor()
VariableNameVisitor
.LiteralVisitor(LiteralType type)
VariableNameVisitor
.
type
- One of the possible way to retrieve a variable nameMethod Detail |
---|
public void setType(LiteralType type)
type
- One of the possible LiteralTypes
public void visit(AbstractSchemaName expression)
AbstractSchemaName
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(CollectionValuedPathExpression expression)
CollectionValuedPathExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(EntityTypeLiteral expression)
EntityTypeLiteral
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(IdentificationVariable expression)
IdentificationVariable
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(InputParameter expression)
InputParameter
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(Join expression)
Join
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(JoinFetch expression)
FetchJoin
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(StateFieldPathExpression expression)
StateFieldPathExpression
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitpublic void visit(StringLiteral expression)
StringLiteral
expression.visit
in interface ExpressionVisitor
visit
in class AnonymousExpressionVisitor
expression
- The Expression
to visitprivate void visitAbstractPathExpression(AbstractPathExpression expression)
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |