Versions in this module Expand all Collapse all v1 v1.0.0 Jun 10, 2022 Changes in this version + type ArrayNode struct + func (n *ArrayNode) ASTNode() (jschema.ASTNode, error) + func (n *ArrayNode) AddConstraint(c constraint.Constraint) + func (n *ArrayNode) Comment() string + func (n *ArrayNode) DeleteConstraint(t constraint.Type) + func (n *ArrayNode) Grow(lex lexeme.LexEvent) (Node, bool) + func (n *ArrayNode) RealType() string + func (n *ArrayNode) SetComment(s string) + func (n *ArrayNode) SetParent(parent Node) + func (n *ArrayNode) SetRealType(s string) + func (n ArrayNode) BasisLexEventOfSchemaForNode() lexeme.LexEvent + func (n ArrayNode) Child(i uint) Node + func (n ArrayNode) Children() []Node + func (n ArrayNode) Constraint(t constraint.Type) constraint.Constraint + func (n ArrayNode) ConstraintMap() *Constraints + func (n ArrayNode) IndentedNodeString(depth int) string + func (n ArrayNode) IndentedTreeString(depth int) string + func (n ArrayNode) Len() int + func (n ArrayNode) NumberOfConstraints() int + func (n ArrayNode) Parent() Node + func (n ArrayNode) Type() json.Type + func (n ArrayNode) Value() bytes.Bytes + type BranchNode interface + Children func() []Node + Len func() int + type Constraints struct + func (m *Constraints) Delete(k constraint.Type) + func (m *Constraints) Each(fn eachConstraintsFunc) error + func (m *Constraints) EachSafe(fn eachSafeConstraintsFunc) + func (m *Constraints) Filter(fn filterConstraintsFunc) + func (m *Constraints) Find(fn findConstraintsFunc) (ConstraintsItem, bool) + func (m *Constraints) Get(k constraint.Type) (constraint.Constraint, bool) + func (m *Constraints) GetValue(k constraint.Type) constraint.Constraint + func (m *Constraints) Has(k constraint.Type) bool + func (m *Constraints) Len() int + func (m *Constraints) Map(fn mapConstraintsFunc) error + func (m *Constraints) MarshalJSON() ([]byte, error) + func (m *Constraints) Set(k constraint.Type, v constraint.Constraint) + func (m *Constraints) Update(k constraint.Type, fn func(v constraint.Constraint) constraint.Constraint) + type ConstraintsItem struct + Key constraint.Type + Value constraint.Constraint + type InnerObjectNodeKey struct + Index int + IsShortcut bool + Lex lexeme.LexEvent + type LiteralNode struct + func (n *LiteralNode) ASTNode() (jschema.ASTNode, error) + func (n *LiteralNode) AddConstraint(c constraint.Constraint) + func (n *LiteralNode) Comment() string + func (n *LiteralNode) DeleteConstraint(t constraint.Type) + func (n *LiteralNode) Grow(lex lexeme.LexEvent) (Node, bool) + func (n *LiteralNode) RealType() string + func (n *LiteralNode) SetComment(s string) + func (n *LiteralNode) SetParent(parent Node) + func (n *LiteralNode) SetRealType(s string) + func (n LiteralNode) BasisLexEventOfSchemaForNode() lexeme.LexEvent + func (n LiteralNode) Constraint(t constraint.Type) constraint.Constraint + func (n LiteralNode) ConstraintMap() *Constraints + func (n LiteralNode) IndentedNodeString(depth int) string + func (n LiteralNode) IndentedTreeString(depth int) string + func (n LiteralNode) NumberOfConstraints() int + func (n LiteralNode) Parent() Node + func (n LiteralNode) Type() json.Type + func (n LiteralNode) Value() bytes.Bytes + type MixedNode struct + func NewMixedNode(lex lexeme.LexEvent) *MixedNode + func (*MixedNode) Grow(lexeme.LexEvent) (Node, bool) + func (n *MixedNode) AddConstraint(c constraint.Constraint) + func (n *MixedNode) Comment() string + func (n *MixedNode) DeleteConstraint(t constraint.Type) + func (n *MixedNode) RealType() string + func (n *MixedNode) SetComment(s string) + func (n *MixedNode) SetJsonType(t json.Type) + func (n *MixedNode) SetParent(parent Node) + func (n *MixedNode) SetRealType(s string) + func (n MixedNode) ASTNode() (jschema.ASTNode, error) + func (n MixedNode) BasisLexEventOfSchemaForNode() lexeme.LexEvent + func (n MixedNode) Constraint(t constraint.Type) constraint.Constraint + func (n MixedNode) ConstraintMap() *Constraints + func (n MixedNode) IndentedNodeString(depth int) string + func (n MixedNode) IndentedTreeString(depth int) string + func (n MixedNode) NumberOfConstraints() int + func (n MixedNode) Parent() Node + func (n MixedNode) Type() json.Type + func (n MixedNode) Value() bytes.Bytes + type MixedValueNode struct + func NewMixedValueNode(lex lexeme.LexEvent) *MixedValueNode + func (n *MixedValueNode) ASTNode() (jschema.ASTNode, error) + func (n *MixedValueNode) AddConstraint(c constraint.Constraint) + func (n *MixedValueNode) Comment() string + func (n *MixedValueNode) DeleteConstraint(t constraint.Type) + func (n *MixedValueNode) Grow(lex lexeme.LexEvent) (Node, bool) + func (n *MixedValueNode) IndentedNodeString(depth int) string + func (n *MixedValueNode) IndentedTreeString(depth int) string + func (n *MixedValueNode) RealType() string + func (n *MixedValueNode) SetComment(s string) + func (n *MixedValueNode) SetParent(parent Node) + func (n *MixedValueNode) SetRealType(s string) + func (n MixedValueNode) BasisLexEventOfSchemaForNode() lexeme.LexEvent + func (n MixedValueNode) Constraint(t constraint.Type) constraint.Constraint + func (n MixedValueNode) ConstraintMap() *Constraints + func (n MixedValueNode) NumberOfConstraints() int + func (n MixedValueNode) Parent() Node + func (n MixedValueNode) Type() json.Type + func (n MixedValueNode) Value() bytes.Bytes + type Node interface + ASTNode func() (jschema.ASTNode, error) + AddConstraint func(constraint.Constraint) + BasisLexEventOfSchemaForNode func() lexeme.LexEvent + Comment func() string + Constraint func(constraint.Type) constraint.Constraint + ConstraintMap func() *Constraints + DeleteConstraint func(constraint.Type) + Grow func(lexeme.LexEvent) (Node, bool) + IndentedNodeString func(int) string + IndentedTreeString func(int) string + NumberOfConstraints func() int + Parent func() Node + RealType func() string + SetComment func(string) + SetParent func(Node) + SetRealType func(string) + Type func() json.Type + Value func() bytes.Bytes + func NewNode(lex lexeme.LexEvent) Node + type ObjectNode struct + func (ObjectNode) Type() json.Type + func (n *ObjectNode) ASTNode() (jschema.ASTNode, error) + func (n *ObjectNode) AddChild(key ObjectNodeKey, child Node) + func (n *ObjectNode) AddConstraint(c constraint.Constraint) + func (n *ObjectNode) Comment() string + func (n *ObjectNode) DeleteConstraint(t constraint.Type) + func (n *ObjectNode) Grow(lex lexeme.LexEvent) (Node, bool) + func (n *ObjectNode) RealType() string + func (n *ObjectNode) SetComment(s string) + func (n *ObjectNode) SetParent(parent Node) + func (n *ObjectNode) SetRealType(s string) + func (n ObjectNode) BasisLexEventOfSchemaForNode() lexeme.LexEvent + func (n ObjectNode) Child(key string) (Node, bool) + func (n ObjectNode) Children() []Node + func (n ObjectNode) Constraint(t constraint.Type) constraint.Constraint + func (n ObjectNode) ConstraintMap() *Constraints + func (n ObjectNode) IndentedNodeString(depth int) string + func (n ObjectNode) IndentedTreeString(depth int) string + func (n ObjectNode) Key(index int) ObjectNodeKey + func (n ObjectNode) Keys() *ObjectNodeKeys + func (n ObjectNode) Len() int + func (n ObjectNode) NumberOfConstraints() int + func (n ObjectNode) Parent() Node + func (n ObjectNode) Value() bytes.Bytes + type ObjectNodeKey struct + IsShortcut bool + Lex lexeme.LexEvent + Name string + type ObjectNodeKeys struct + func (m *ObjectNodeKeys) Delete(k string) + func (m *ObjectNodeKeys) Each(fn eachObjectNodeKeysFunc) error + func (m *ObjectNodeKeys) EachSafe(fn eachSafeObjectNodeKeysFunc) + func (m *ObjectNodeKeys) Filter(fn filterObjectNodeKeysFunc) + func (m *ObjectNodeKeys) Find(fn findObjectNodeKeysFunc) (ObjectNodeKeysItem, bool) + func (m *ObjectNodeKeys) Get(k string) (InnerObjectNodeKey, bool) + func (m *ObjectNodeKeys) GetValue(k string) InnerObjectNodeKey + func (m *ObjectNodeKeys) Has(k string) bool + func (m *ObjectNodeKeys) Len() int + func (m *ObjectNodeKeys) Map(fn mapObjectNodeKeysFunc) error + func (m *ObjectNodeKeys) MarshalJSON() ([]byte, error) + func (m *ObjectNodeKeys) Set(k string, v InnerObjectNodeKey) + func (m *ObjectNodeKeys) Update(k string, fn func(v InnerObjectNodeKey) InnerObjectNodeKey) + type ObjectNodeKeysItem struct + Key string + Value InnerObjectNodeKey + type Schema struct + func New() Schema + func (s *Schema) AddNamedType(name string, typ *Schema, rootFile *fs.File, begin bytes.Index) + func (s *Schema) AddType(n string, t Type) + func (s *Schema) AddUnnamedType(typ *Schema, rootFile *fs.File, begin bytes.Index) string + func (s *Schema) SetRootNode(node Node) + func (s Schema) RootNode() Node + func (s Schema) String() string + func (s Schema) Type(name string) *Schema + func (s Schema) TypesList() map[string]Type + type Type struct + func (s *Type) Begin() bytes.Index + func (s *Type) RootFile() *fs.File + func (s *Type) Schema() *Schema