MCPcopy Create free account
hub / github.com/araddon/qlbridge / Node

Interface Node

expr/node.go:69–96  ·  view source on GitHub ↗

Node is a node in an expression tree, implemented by different types (binary, urnary, func, identity, etc) qlbridge does not currently implement statements (if, for, switch, etc) just expressions, and operators

Source from the content-addressed store, hash-verified

67 // qlbridge does not currently implement statements (if, for, switch, etc)
68 // just expressions, and operators
69 Node interface {
70 // String representation of Node parseable back to itself
71 String() string
72
73 // WriteDialect Given a dialect writer write out, equivalent of String()
74 // but allows different escape characters
75 WriteDialect(w DialectWriter)
76
77 // Validate Syntax validation of this expression node
78 Validate() error
79
80 // NodePb Convert this node to a Protobuf copy of it
81 NodePb() *NodePb
82 // FromPB Convert a protobuf presentation of node to Node.
83 FromPB(*NodePb) Node
84
85 // Expr Convert node into a simple expression syntax
86 // which can be used for json respresentation
87 Expr() *Expr
88 // FromExpr
89 FromExpr(*Expr) error
90
91 // Equal compares deep equality of
92 Equal(Node) bool
93
94 // NodeType the String, Identity, etc
95 NodeType() string
96 }
97
98 // NodeArgs is an interface for nodes which have child arguments
99 NodeArgs interface {

Callers 47

TestParseExpressionsFunction · 0.65
IdentityMaybeQuoteFunction · 0.65
IdentityMaybeQuoteStrictFunction · 0.65
LiteralQuoteEscapeFunction · 0.65
StringEscapeFunction · 0.65
StringUnEscapeFunction · 0.65
StringMethod · 0.65
ExprMethod · 0.65
WriteDialectMethod · 0.65
writeToStringMethod · 0.65
writeToStringMethod · 0.65
writeToStringMethod · 0.65

Implementers 12

FuncNodeexpr/node.go
NumberNodeexpr/node.go
StringNodeexpr/node.go
ValueNodeexpr/node.go
IdentityNodeexpr/node.go
NullNodeexpr/node.go
BinaryNodeexpr/node.go
BooleanNodeexpr/node.go
TriNodeexpr/node.go
UnaryNodeexpr/node.go
IncludeNodeexpr/node.go
ArrayNodeexpr/node.go

Calls

no outgoing calls

Tested by

no test coverage detected