Class IntervalExpression
java.lang.Object
dev.frostlake.executor.expressions.IntervalExpression
- All Implemented Interfaces:
Expression
Represents an INTERVAL expression (e.g., INTERVAL '10' DAY)
-
Constructor Summary
ConstructorsConstructorDescriptionIntervalExpression(Expression valueExpression, IntervalUnit unit) IntervalExpression(Expression valueExpression, IntervalUnit unit, IntervalExpression rest) -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(ExpressionVisitor<T> visitor) Accept a visitor for the visitor patterngetRest()getUnit()booleanvoidMarks this part, and every part chained behind it, as having its unit inside the string.toString()
-
Constructor Details
-
IntervalExpression
-
IntervalExpression
-
-
Method Details
-
getValueExpression
-
isUnitInString
public boolean isUnitInString() -
markUnitInString
public void markUnitInString()Marks this part, and every part chained behind it, as having its unit inside the string. -
getUnit
-
getRest
-
accept
Description copied from interface:ExpressionAccept a visitor for the visitor pattern- Specified by:
acceptin interfaceExpression
-
toString
-