Class NumericLiteral
java.lang.Object
com.blazebit.persistence.parser.expression.AbstractExpression
com.blazebit.persistence.parser.expression.AbstractNumericExpression
com.blazebit.persistence.parser.expression.NumericLiteral
- All Implemented Interfaces:
Expression,LiteralExpression<String>,NumericExpression
public class NumericLiteral extends AbstractNumericExpression implements LiteralExpression<String>
- Since:
- 1.2.0
- Author:
- Moritz Becker
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.blazebit.persistence.parser.expression.Expression
Expression.ResultVisitor<T>, Expression.Visitor -
Constructor Summary
Constructors Constructor Description NumericLiteral(String value, NumericType numericType) -
Method Summary
Modifier and Type Method Description <T> Taccept(Expression.ResultVisitor<T> visitor)voidaccept(Expression.Visitor visitor)The expression tree is traversed in pre-order.Expressioncopy(ExpressionCopyContext copyContext)booleanequals(Object o)StringgetValue()inthashCode()StringtoString()Returns the trimmed original string representation of the expression.Methods inherited from class com.blazebit.persistence.parser.expression.AbstractNumericExpression
getNumericType
-
Constructor Details
-
Method Details
-
getValue
- Specified by:
getValuein interfaceLiteralExpression<String>
-
copy
- Specified by:
copyin interfaceExpression- Specified by:
copyin classAbstractNumericExpression- Returns:
-
accept
Description copied from interface:ExpressionThe expression tree is traversed in pre-order.- Specified by:
acceptin interfaceExpression
-
accept
- Specified by:
acceptin interfaceExpression
-
equals
- Overrides:
equalsin classAbstractNumericExpression
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractNumericExpression
-
toString
Description copied from interface:ExpressionReturns the trimmed original string representation of the expression.- Specified by:
toStringin interfaceExpression- Overrides:
toStringin classAbstractExpression- Returns:
- The string representation of the expression
-