Documentation
¶
Overview ¶
Package plan provides logic for building execution plan
Index ¶
- type Scope
- func (s *Scope) BoolExpression(exprStmt string) (*expr.Bool, error)
- func (s *Scope) Compile(expr string) (*exec.Executor, error)
- func (s *Scope) DefineEmbedVariable(name string, t reflect.Type) error
- func (s *Scope) DefineVariable(name string, fType reflect.Type) (*exec.Selector, error)
- func (s *Scope) EmbedType(name string, t reflect.Type)
- func (s *Scope) Float64Expression(exprStmt string) (*expr.Float64, error)
- func (s *Scope) Function(expr string) (interface{}, error)
- func (s *Scope) IntExpression(exprStmt string) (*expr.Int, error)
- func (s *Scope) Parse(expr string) (ast.Stmt, error)
- func (s *Scope) RegisterFunc(name string, fn interface{})
- func (s *Scope) RegisterNamedType(name string, t reflect.Type)
- func (s *Scope) RegisterType(t reflect.Type) error
- func (s *Scope) ResolveSelector(selector string) (*exec.Selector, error)
- func (s *Scope) Selector(expr string) (*exec.Selector, error)
- func (s *Scope) StringExpression(exprStmt string) (*expr.String, error)
- func (s *Scope) StringifyExpr(expr ast.Expr) (string, error)
- func (s *Scope) SubScope(options ...option.Option) *Scope
- func (s *Scope) UpdateVariable(name string, fType reflect.Type) (*exec.Selector, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scope ¶
Scope represents compilation scope
func (*Scope) BoolExpression ¶
BoolExpression returns bool expression
func (*Scope) DefineEmbedVariable ¶
DefineEmbedVariable defines embeded variable
func (*Scope) DefineVariable ¶
DefineVariable defines variables
func (*Scope) Float64Expression ¶
Float64Expression returns float64 expression
func (*Scope) IntExpression ¶
IntExpression returns an int expression
func (*Scope) RegisterFunc ¶
RegisterFunc register func
func (*Scope) RegisterNamedType ¶
RegisterNamedType register named type
func (*Scope) RegisterType ¶
RegisterType register type
func (*Scope) ResolveSelector ¶
ResolveSelector returns existing or registerSelector selector to the scope
func (*Scope) StringExpression ¶
StringExpression returns string expression
func (*Scope) StringifyExpr ¶
StringifyExpr returns sting representation of expression
Source Files
¶
- append_caller.go
- assign.go
- ast.go
- block.go
- branch.go
- call.go
- caller.go
- compiler.go
- composite.go
- declstmt.go
- deferstmt.go
- doc.go
- expr.go
- forstmt.go
- forstmt_call_guard.go
- forstmt_merge.go
- func.go
- ifstmt.go
- incdec.go
- inline_caller.go
- label.go
- literal.go
- mapper.go
- mem.go
- params.go
- range.go
- reducer.go
- scope.go
- selector.go
- star.go
- stdlib.go
- stmt.go
- stringify.go
- switchstmt.go
- type.go
- typeassert.go
- typespec.go
- typeswitch.go
- unary.go
- variadic_caller.go
Click to show internal directories.
Click to hide internal directories.