Documentation ¶
Index ¶
- Variables
- func AppendNode(src []object.Node, target object.Node) []object.Node
- func CastType(tg object.Item, ty object.Type) object.Item
- func CopyFocus(ctx *object.Context) *object.Focus
- func IsAnyAtomic(item object.Item) bool
- func IsAnyFunc(item object.Item) bool
- func IsAnyFuncSeq(item object.Item) bool
- func IsArray(item object.Item) bool
- func IsArrayEmpty(item object.Item) bool
- func IsArraySeq(item object.Item) bool
- func IsAtomicSeq(item object.Item) bool
- func IsAttrNodeSeq(item object.Item) bool
- func IsBoolean(item object.Item) bool
- func IsCastable(tg object.Item, ty object.Type) object.Item
- func IsCommNodeSeq(item object.Item) bool
- func IsContainN(src []object.Node, target object.Node) bool
- func IsDocNodeSeq(item object.Item) bool
- func IsEQ(left, right object.Item) object.Item
- func IsElemNodeSeq(item object.Item) bool
- func IsError(item object.Item) bool
- func IsFunc(item object.Item) bool
- func IsGE(left, right object.Item) object.Item
- func IsGT(left, right object.Item) object.Item
- func IsItem(item object.Item) bool
- func IsItemSeq(item object.Item) bool
- func IsKindMatch(n object.Node, typeID byte) bool
- func IsLE(left, right object.Item) object.Item
- func IsLT(left, right object.Item) object.Item
- func IsMap(item object.Item) bool
- func IsMapSeq(item object.Item) bool
- func IsNE(left, right object.Item) object.Item
- func IsNode(item object.Item) bool
- func IsNodeSeq(item object.Item) bool
- func IsNumeric(item object.Item) bool
- func IsOccurMatch(item object.Item, t token.Token) bool
- func IsPlaceholder(item object.Item) bool
- func IsPrecede(n1, n2 object.Node, src *object.BaseNode) object.Item
- func IsSameAtomic(item object.Item, val interface{}) bool
- func IsSeq(item object.Item) bool
- func IsSeqEmpty(item object.Item) bool
- func IsString(item object.Item) bool
- func IsTextNodeSeq(item object.Item) bool
- func IsTypeMatch(item object.Item, st *ast.SequenceType) object.Item
- func NewBoolean(b bool) *object.Boolean
- func NewDecimal(d float64) *object.Decimal
- func NewDouble(d float64) *object.Double
- func NewError(format string, a ...interface{}) *object.Error
- func NewInteger(i int) *object.Integer
- func NewSequence(items ...object.Item) *object.Sequence
- func NewString(s string) *object.String
- func ReplaceFocus(ctx *object.Context, focus *object.Focus)
- func UnwrapArr(item object.Item) []object.Item
- func UnwrapSeq(item object.Item) []object.Item
Constants ¶
This section is empty.
Variables ¶
var F = map[string]object.Func{}/* 106 elements not displayed */
F is a map that have built-in functions
Functions ¶
func AppendNode ¶
AppendNode append target node to the src
func IsAnyFuncSeq ¶
IsAnyFuncSeq checks if item is a object.Sequence that have only AnyFunction type
func IsArrayEmpty ¶
IsArrayEmpty checks if item is an empty object.Array
func IsArraySeq ¶
IsArraySeq checks if item is a object.Sequence that have only object.Array type
func IsAtomicSeq ¶
IsAtomicSeq checks if item is a object.Sequence that have only atomic type
func IsAttrNodeSeq ¶
IsAttrNodeSeq checks if item is a object.Sequence that have only AttributeNode type
func IsCastable ¶
IsCastable checks if item can be casted to a specific type
func IsCommNodeSeq ¶
IsCommNodeSeq checks if item is a object.Sequence that have only CommentNode type
func IsContainN ¶
IsContainN checks if src contains the target node
func IsDocNodeSeq ¶
IsDocNodeSeq checks if item is a object.Sequence that have only DocumentNode type
func IsElemNodeSeq ¶
IsElemNodeSeq checks if item is a object.Sequence that have only ElementNode type
func IsKindMatch ¶
IsKindMatch checks node kind by typeID
func IsOccurMatch ¶
IsOccurMatch checks if item occurrence match with the type t
func IsPlaceholder ¶
IsPlaceholder checks if item is an object.Placeholder
func IsPrecede ¶
IsPrecede checks if n1 is precede n2 in document order https://www.w3.org/TR/xpath-31/#id-document-order
func IsSameAtomic ¶
IsSameAtomic compares object.Item with golang primitive type and return true if value is the same
func IsSeqEmpty ¶
IsSeqEmpty checks if item is an empty object.Sequence
func IsTextNodeSeq ¶
IsTextNodeSeq checks if item is a object.Sequence that have only TextNode type
func IsTypeMatch ¶
IsTypeMatch checks if item type is match with the SequenceType
func NewSequence ¶
NewSequence creates object.Sequence
func ReplaceFocus ¶
ReplaceFocus replace context focus to the passed focus
Types ¶
This section is empty.