aggregates

package
v0.0.0-...-9f34108 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Len

type Len struct {
	// contains filtered or unexported fields
}

Len implements a aggregation token that returns the length of a LenToken token

func NewLen

func NewLen(token token.LenToken) *Len

NewLen returns a new instance of a Len token referencing the given LenToken token

func (*Len) Clone

func (a *Len) Clone() token.Token

Clone returns a copy of the token and all its children

func (*Len) Parse

func (a *Len) Parse(pars *token.InternalParser, cur int) (int, []error)

Parse tries to parse the token beginning from the current position in the parser data. If the parsing is successful the error argument is nil and the next current position after the token is returned.

func (*Len) Permutation

func (a *Len) Permutation(i uint) error

Permutation sets a specific permutation for this token

func (*Len) Permutations

func (a *Len) Permutations() uint

Permutations returns the number of permutations for this token

func (*Len) PermutationsAll

func (a *Len) PermutationsAll() uint

PermutationsAll returns the number of all possible permutations for this token including its children

func (*Len) String

func (a *Len) String() string

Jump to

Keyboard shortcuts

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