Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Element ¶
type Element interface {
Type() ElementType
}
type Expression ¶
type Expression struct {
// contains filtered or unexported fields
}
func NewExpression ¶
func NewExpression(s string) *Expression
func (*Expression) Compile ¶
func (e *Expression) Compile() Filter
Compile build an abstract syntax tree of the expression, implemented in a Filter.
func (*Expression) HasNext ¶
func (e *Expression) HasNext() bool
func (*Expression) Next ¶
func (e *Expression) Next() Element
Next get the next element. If none left, return nil. It might return a primitive, a composite or a joiner.
type ExpressionToken ¶
type ExpressionToken int
Click to show internal directories.
Click to hide internal directories.