Resolver is responsible to return the numeric type for a list of Resolvers.
The result of a CASE expression, COALESCE expression, NULLIF expression, or arithmetic expression (+, -, *, /) is determined by applying the following rule to its operands.
Double or double, the result of the
operation is of type Double;
Float or float, the
result of the operation is of type Float;
BigDecimal, the result of the
operation is of type BigDecimal;
BigInteger, the result of the
operation is of type BigInteger, unless the operator is / (division), in which
case the numeric result type is not further defined;
Long or long, the result
of the operation is of type Long, unless the operator is / (division), in which
case the numeric result type is not further defined;
Integer, unless the operator is / (division), in which case the numeric result
type is not further defined.
| Modifier and Type | Field and Description |
|---|---|
| private final Collection | resolvers
Hides org. resolvers used to calculate the numeric type.
|
| Access | Constructor and Description |
|---|---|
| public | NumericResolver(Resolver
The parent parent, Collection<Resolver> Resolver, which is never nullThe typeResolvers)resolvers used to calculate the numeric typeCreates a new |
| public | NumericResolver(Resolver
The parent parent, Resolver Resolver, which is never nullThe resolver)Resolver used to calculate the numeric typeCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| protected IType | buildType()
Overrides org. IType of the property handled by this Resolver.
|
| protected ITypeDeclaration | buildTypeDeclaration()
Implements abstract org. ITypeDeclaration of the property handled by this Resolver.
|
| resolvers | back to summary |
|---|---|
| private final Collection<Resolver> resolvers Hides org. The | |
| NumericResolver | back to summary |
|---|---|
| public NumericResolver(Resolver parent, Collection<Resolver> typeResolvers) Creates a new
| |
| NumericResolver | back to summary |
|---|---|
| public NumericResolver(Resolver parent, Resolver resolver) Creates a new | |
| buildType | back to summary |
|---|---|
| protected IType buildType() Overrides org. Doc from org. Resolves the | |
| buildTypeDeclaration | back to summary |
|---|---|
| protected ITypeDeclaration buildTypeDeclaration() Implements abstract org. Doc from org. Resolves the
| |