Package net.hydromatic.filtex.ast
Class AstNode
java.lang.Object
net.hydromatic.filtex.ast.AstNode
- Direct Known Subclasses:
Ast.Absolute,Ast.Box,Ast.Call0,Ast.Call1,Ast.Call2,Ast.Circle,Ast.Comparison,Ast.DateLiteral,Ast.DayLiteral,Ast.Interval,Ast.LastInterval,Ast.MatchesAdvanced,Ast.MonthInterval,Ast.NumericRange,Ast.Past,Ast.Point,Ast.Range,Ast.RangeInterval,Ast.Relative,Ast.RelativeRange,Ast.RelativeUnit,Ast.ThisRange,Ast.ThisUnit
Base class for Abstract Syntax Tree node.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionabstract voidbounds()dateString(boolean showTime) Converts a DATE or DATE_TIME node to a descriptive string.@Nullable Stringhigh()booleanis()False if negated, true if not negated.low()@Nullable Stringsummary()toString()type()Returns the FilterModel type.abstract AstWritervalue()@Nullable String
-
Field Details
-
pos
-
op
-
id
Unique identifier of a node, or null. It's mutable, so that we don't have to copy the tree just to number it, but just be careful.
-
-
Method Details
-
toString
-
unparse
-
accept
-
is
public boolean is()False if negated, true if not negated. -
expression
-
summary
-
type
Returns the FilterModel type. For example, "," for "OR". -
value
-
low
-
high
-
bounds
-
valueString
-
dateString
Converts a DATE or DATE_TIME node to a descriptive string. -
digest
-