-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathboolean_function_condition.go
More file actions
56 lines (45 loc) · 1.22 KB
/
boolean_function_condition.go
File metadata and controls
56 lines (45 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package cypher
type BooleanFunctionCondition struct {
ConditionContainer
delegate FunctionInvocation
key string
notNil bool
err error
}
func BooleanFunctionConditionCreate(delegate FunctionInvocation) BooleanFunctionCondition {
function := BooleanFunctionCondition{
delegate: delegate,
notNil: true,
}
function.key = getAddress(&function)
function.ConditionContainer = ConditionWrap(function)
return function
}
func BooleanFunctionConditionError(err error) BooleanFunctionCondition {
function := BooleanFunctionCondition{
err: err,
}
return function
}
func (b BooleanFunctionCondition) GetError() error {
return b.err
}
func (b BooleanFunctionCondition) accept(visitor *CypherRenderer) {
b.delegate.accept(visitor)
}
func (b BooleanFunctionCondition) enter(renderer *CypherRenderer) {
}
func (b BooleanFunctionCondition) leave(renderer *CypherRenderer) {
}
func (b BooleanFunctionCondition) getKey() string {
return b.key
}
func (b BooleanFunctionCondition) isNotNil() bool {
return b.notNil
}
func (b BooleanFunctionCondition) GetExpressionType() ExpressionType {
return "BooleanFunctionCondition"
}
func (b BooleanFunctionCondition) getConditionType() string {
return "BooleanFunctionCondition"
}