Top Description Inners Constructors Methods
org.eclipse.persistence.jpa.jpql.parser

public abstract Class MathExpressionFactory

extends ExpressionFactory
Class Inheritance
Known Direct Subclasses
org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.Ceiling, org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.Exp, org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.Floor, org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.Ln, org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.Power, org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.Round, org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.Sign
Imports
org.eclipse.persistence.jpa.jpql.WordParser

Math functions expressions factories.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
public static class
public static class
public static class
public static class

Constructor Summary

AccessConstructor and Description
pack-priv
MathExpressionFactory(String
The unique identifier of math function expression factory and also math function expression identifier
id
)

Creates a new instance of math function expression factory.

Method Summary

Modifier and TypeMethod and Description
protected AbstractExpression
buildExpression(AbstractExpression parent, WordParser
The text to parse based on the current position of the cursor
wordParser
,
String
The current word being parsed
word
,
JPQLQueryBNF
The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query
queryBNF
,
AbstractExpression
During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression
expression
,
boolean tolerant)

Implements abstract org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory.buildExpression.

Creates a new Expression.
Inherited from org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory:
addIdentifieraddIdentifierscompareToequalsgetExpressionRegistrygetIdhashCodeidentifierssetExpressionRegistrytoString

Constructor Detail

MathExpressionFactoryback to summary
pack-priv MathExpressionFactory(String id)

Creates a new instance of math function expression factory.

Parameters
id:String

The unique identifier of math function expression factory and also math function expression identifier

Method Detail

buildExpressionback to summary
protected AbstractExpression buildExpression(AbstractExpression parent, WordParser wordParser, String word, JPQLQueryBNF queryBNF, AbstractExpression expression, boolean tolerant)

Implements abstract org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory.buildExpression.

Doc from org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory.buildExpression.

Creates a new Expression.

Parameters
parent:AbstractExpression

The parent AbstractExpression

wordParser:WordParser

The text to parse based on the current position of the cursor

word:String

The current word being parsed

queryBNF:JPQLQueryBNF

The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query

expression:AbstractExpression

During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression

Returns:AbstractExpression

A new AbstractExpression representing the portion or the totality of the text held by WordParser starting at the cursor position

Annotations
@Override
org.eclipse.persistence.jpa.jpql.parser back to summary

public final Class MathExpressionFactory.Ceiling

extends MathExpressionFactory
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final String
ID

The unique identifier of this MathExpressionFactory.Ceiling.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected AbstractExpression
buildExpression(AbstractExpression parent, WordParser
The text to parse based on the current position of the cursor
wordParser
,
String
The current word being parsed
word
,
JPQLQueryBNF
The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query
queryBNF
,
AbstractExpression
During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression
expression
,
boolean tolerant)

Overrides org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.buildExpression.

Creates a new Expression.

Field Detail

IDback to summary
public static final String ID

The unique identifier of this MathExpressionFactory.Ceiling.

Constructor Detail

Ceilingback to summary
public Ceiling()

Method Detail

buildExpressionback to summary
protected AbstractExpression buildExpression(AbstractExpression parent, WordParser wordParser, String word, JPQLQueryBNF queryBNF, AbstractExpression expression, boolean tolerant)

Overrides org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.buildExpression.

Doc from org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory.buildExpression.

Creates a new Expression.

Parameters
parent:AbstractExpression

The parent AbstractExpression

wordParser:WordParser

The text to parse based on the current position of the cursor

word:String

The current word being parsed

queryBNF:JPQLQueryBNF

The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query

expression:AbstractExpression

During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression

Returns:AbstractExpression

A new AbstractExpression representing the portion or the totality of the text held by WordParser starting at the cursor position

Annotations
@Override
org.eclipse.persistence.jpa.jpql.parser back to summary

public final Class MathExpressionFactory.Exp

extends MathExpressionFactory
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final String
ID

The unique identifier of this MathExpressionFactory.Exp.

Constructor Summary

AccessConstructor and Description
public
Exp()

Method Summary

Modifier and TypeMethod and Description
protected AbstractExpression
buildExpression(AbstractExpression parent, WordParser
The text to parse based on the current position of the cursor
wordParser
,
String
The current word being parsed
word
,
JPQLQueryBNF
The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query
queryBNF
,
AbstractExpression
During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression
expression
,
boolean tolerant)

Overrides org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.buildExpression.

Creates a new Expression.

Field Detail

IDback to summary
public static final String ID

The unique identifier of this MathExpressionFactory.Exp.

Constructor Detail

Expback to summary
public Exp()

Method Detail

buildExpressionback to summary
protected AbstractExpression buildExpression(AbstractExpression parent, WordParser wordParser, String word, JPQLQueryBNF queryBNF, AbstractExpression expression, boolean tolerant)

Overrides org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.buildExpression.

Doc from org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory.buildExpression.

Creates a new Expression.

Parameters
parent:AbstractExpression

The parent AbstractExpression

wordParser:WordParser

The text to parse based on the current position of the cursor

word:String

The current word being parsed

queryBNF:JPQLQueryBNF

The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query

expression:AbstractExpression

During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression

Returns:AbstractExpression

A new AbstractExpression representing the portion or the totality of the text held by WordParser starting at the cursor position

Annotations
@Override
org.eclipse.persistence.jpa.jpql.parser back to summary

public final Class MathExpressionFactory.Floor

extends MathExpressionFactory
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final String
ID

The unique identifier of this MathExpressionFactory.Floor.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected AbstractExpression
buildExpression(AbstractExpression parent, WordParser
The text to parse based on the current position of the cursor
wordParser
,
String
The current word being parsed
word
,
JPQLQueryBNF
The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query
queryBNF
,
AbstractExpression
During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression
expression
,
boolean tolerant)

Overrides org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.buildExpression.

Creates a new Expression.

Field Detail

IDback to summary
public static final String ID

The unique identifier of this MathExpressionFactory.Floor.

Constructor Detail

Floorback to summary
public Floor()

Method Detail

buildExpressionback to summary
protected AbstractExpression buildExpression(AbstractExpression parent, WordParser wordParser, String word, JPQLQueryBNF queryBNF, AbstractExpression expression, boolean tolerant)

Overrides org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.buildExpression.

Doc from org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory.buildExpression.

Creates a new Expression.

Parameters
parent:AbstractExpression

The parent AbstractExpression

wordParser:WordParser

The text to parse based on the current position of the cursor

word:String

The current word being parsed

queryBNF:JPQLQueryBNF

The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query

expression:AbstractExpression

During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression

Returns:AbstractExpression

A new AbstractExpression representing the portion or the totality of the text held by WordParser starting at the cursor position

Annotations
@Override
org.eclipse.persistence.jpa.jpql.parser back to summary

public final Class MathExpressionFactory.Ln

extends MathExpressionFactory
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final String
ID

The unique identifier of this MathExpressionFactory.Ln.

Constructor Summary

AccessConstructor and Description
public
Ln()

Method Summary

Modifier and TypeMethod and Description
protected AbstractExpression
buildExpression(AbstractExpression parent, WordParser
The text to parse based on the current position of the cursor
wordParser
,
String
The current word being parsed
word
,
JPQLQueryBNF
The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query
queryBNF
,
AbstractExpression
During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression
expression
,
boolean tolerant)

Overrides org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.buildExpression.

Creates a new Expression.

Field Detail

IDback to summary
public static final String ID

The unique identifier of this MathExpressionFactory.Ln.

Constructor Detail

Lnback to summary
public Ln()

Method Detail

buildExpressionback to summary
protected AbstractExpression buildExpression(AbstractExpression parent, WordParser wordParser, String word, JPQLQueryBNF queryBNF, AbstractExpression expression, boolean tolerant)

Overrides org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.buildExpression.

Doc from org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory.buildExpression.

Creates a new Expression.

Parameters
parent:AbstractExpression

The parent AbstractExpression

wordParser:WordParser

The text to parse based on the current position of the cursor

word:String

The current word being parsed

queryBNF:JPQLQueryBNF

The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query

expression:AbstractExpression

During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression

Returns:AbstractExpression

A new AbstractExpression representing the portion or the totality of the text held by WordParser starting at the cursor position

Annotations
@Override
org.eclipse.persistence.jpa.jpql.parser back to summary

public final Class MathExpressionFactory.Power

extends MathExpressionFactory
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final String
ID

The unique identifier of this MathExpressionFactory.Power.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected AbstractExpression
buildExpression(AbstractExpression parent, WordParser
The text to parse based on the current position of the cursor
wordParser
,
String
The current word being parsed
word
,
JPQLQueryBNF
The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query
queryBNF
,
AbstractExpression
During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression
expression
,
boolean tolerant)

Overrides org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.buildExpression.

Creates a new Expression.

Field Detail

IDback to summary
public static final String ID

The unique identifier of this MathExpressionFactory.Power.

Constructor Detail

Powerback to summary
public Power()

Method Detail

buildExpressionback to summary
protected AbstractExpression buildExpression(AbstractExpression parent, WordParser wordParser, String word, JPQLQueryBNF queryBNF, AbstractExpression expression, boolean tolerant)

Overrides org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.buildExpression.

Doc from org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory.buildExpression.

Creates a new Expression.

Parameters
parent:AbstractExpression

The parent AbstractExpression

wordParser:WordParser

The text to parse based on the current position of the cursor

word:String

The current word being parsed

queryBNF:JPQLQueryBNF

The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query

expression:AbstractExpression

During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression

Returns:AbstractExpression

A new AbstractExpression representing the portion or the totality of the text held by WordParser starting at the cursor position

Annotations
@Override
org.eclipse.persistence.jpa.jpql.parser back to summary

public final Class MathExpressionFactory.Round

extends MathExpressionFactory
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final String
ID

The unique identifier of this MathExpressionFactory.Round.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected AbstractExpression
buildExpression(AbstractExpression parent, WordParser
The text to parse based on the current position of the cursor
wordParser
,
String
The current word being parsed
word
,
JPQLQueryBNF
The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query
queryBNF
,
AbstractExpression
During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression
expression
,
boolean tolerant)

Overrides org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.buildExpression.

Creates a new Expression.

Field Detail

IDback to summary
public static final String ID

The unique identifier of this MathExpressionFactory.Round.

Constructor Detail

Roundback to summary
public Round()

Method Detail

buildExpressionback to summary
protected AbstractExpression buildExpression(AbstractExpression parent, WordParser wordParser, String word, JPQLQueryBNF queryBNF, AbstractExpression expression, boolean tolerant)

Overrides org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.buildExpression.

Doc from org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory.buildExpression.

Creates a new Expression.

Parameters
parent:AbstractExpression

The parent AbstractExpression

wordParser:WordParser

The text to parse based on the current position of the cursor

word:String

The current word being parsed

queryBNF:JPQLQueryBNF

The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query

expression:AbstractExpression

During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression

Returns:AbstractExpression

A new AbstractExpression representing the portion or the totality of the text held by WordParser starting at the cursor position

Annotations
@Override
org.eclipse.persistence.jpa.jpql.parser back to summary

public final Class MathExpressionFactory.Sign

extends MathExpressionFactory
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final String
ID

The unique identifier of this MathExpressionFactory.Sign.

Constructor Summary

AccessConstructor and Description
public
Sign()

Method Summary

Modifier and TypeMethod and Description
protected AbstractExpression
buildExpression(AbstractExpression parent, WordParser
The text to parse based on the current position of the cursor
wordParser
,
String
The current word being parsed
word
,
JPQLQueryBNF
The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query
queryBNF
,
AbstractExpression
During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression
expression
,
boolean tolerant)

Overrides org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.buildExpression.

Creates a new Expression.

Field Detail

IDback to summary
public static final String ID

The unique identifier of this MathExpressionFactory.Sign.

Constructor Detail

Signback to summary
public Sign()

Method Detail

buildExpressionback to summary
protected AbstractExpression buildExpression(AbstractExpression parent, WordParser wordParser, String word, JPQLQueryBNF queryBNF, AbstractExpression expression, boolean tolerant)

Overrides org.eclipse.persistence.jpa.jpql.parser.MathExpressionFactory.buildExpression.

Doc from org.eclipse.persistence.jpa.jpql.parser.ExpressionFactory.buildExpression.

Creates a new Expression.

Parameters
parent:AbstractExpression

The parent AbstractExpression

wordParser:WordParser

The text to parse based on the current position of the cursor

word:String

The current word being parsed

queryBNF:JPQLQueryBNF

The BNF grammar that was used to identifier this factory to be capable to parse a portion of the query

expression:AbstractExpression

During the parsing, it is possible the first part of an expression was parsed which needs to be used as a sub-expression of the newly created expression

Returns:AbstractExpression

A new AbstractExpression representing the portion or the totality of the text held by WordParser starting at the cursor position

Annotations
@Override