Package com.exasol.adapter.sql
Class SqlLiteralExactnumeric
- java.lang.Object
-
- com.exasol.adapter.sql.SqlNode
-
- com.exasol.adapter.sql.SqlLiteralExactnumeric
-
public class SqlLiteralExactnumeric extends SqlNode
Literal for decimal types.
-
-
Constructor Summary
Constructors Constructor Description SqlLiteralExactnumeric(BigDecimal value)
Instantiates a new Sql literal exactnumeric.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> R
accept(SqlNodeVisitor<R> visitor)
SeeSqlNodeVisitor
SqlNodeType
getType()
Gets type.BigDecimal
getValue()
Get the value.
-
-
-
Constructor Detail
-
SqlLiteralExactnumeric
public SqlLiteralExactnumeric(BigDecimal value)
Instantiates a new Sql literal exactnumeric.- Parameters:
value
- exact numeric value
-
-
Method Detail
-
getValue
public BigDecimal getValue()
Get the value.- Returns:
- underlying exactnumeric value as a BigDecimal
-
getType
public SqlNodeType getType()
Description copied from class:SqlNode
Gets type.
-
accept
public <R> R accept(SqlNodeVisitor<R> visitor) throws AdapterException
Description copied from class:SqlNode
SeeSqlNodeVisitor
- Specified by:
accept
in classSqlNode
- Type Parameters:
R
- generic SqlNodeVisitor type- Parameters:
visitor
- The visitor object on which the appropriate visit(sqlNode) method is called- Returns:
- visited object
- Throws:
AdapterException
- can be thrown
-
-