expr

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool struct {
	State    *exec.State
	NewState exec.New
	// contains filtered or unexported fields
}

Bool represents bool result expression

func NewBool

func NewBool(newState exec.New, compute internal.Compute) *Bool

NewBool crates a bool expr

func (*Bool) Compute

func (e *Bool) Compute() bool

Compute computes bool expr

func (*Bool) ComputeWithState

func (e *Bool) ComputeWithState(state *exec.State) bool

ComputeWithState computes bool expr

type Float64

type Float64 struct {
	State    *exec.State
	NewState exec.New
	// contains filtered or unexported fields
}

Float64 represents float64 result expression

func NewFloat64

func NewFloat64(newState exec.New, compute internal.Compute) *Float64

NewFloat64 creates a float64 expression

func (*Float64) Compute

func (e *Float64) Compute() float64

Compute computes float64 expression

func (*Float64) ComputeWithState

func (e *Float64) ComputeWithState(state *exec.State) bool

ComputeWithState computes bool expr

type Int

type Int struct {
	State    *exec.State
	NewState exec.New
	// contains filtered or unexported fields
}

Int represents int result expression

func NewInt

func NewInt(newState exec.New, compute internal.Compute) *Int

NewInt creates int expr

func (*Int) Compute

func (e *Int) Compute() int

Compute computes int expr

func (*Int) ComputeWithState

func (e *Int) ComputeWithState(state *exec.State) bool

ComputeWithState computes bool expr

type String

type String struct {
	State    *exec.State
	NewState exec.New
	// contains filtered or unexported fields
}

String represents string result expression

func NewString

func NewString(newState exec.New, compute internal.Compute) *String

NewString crates string expression

func (*String) Compute

func (e *String) Compute() string

Compute computes string expr

func (*String) ComputeWithState

func (e *String) ComputeWithState(state *exec.State) bool

ComputeWithState computes bool expr

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL