本文整理匯總了Golang中github.com/couchbaselabs/query/expression.Visitor類的典型用法代碼示例。如果您正苦於以下問題:Golang Visitor類的具體用法?Golang Visitor怎麽用?Golang Visitor使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了Visitor類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: Accept
/*
It calls the VisitNamedParameter method by passing in
the receiver and returns the interface. It is a visitor pattern.
*/
func (this *NamedParameter) Accept(visitor expression.Visitor) (interface{}, error) {
return visitor.VisitNamedParameter(this)
}
示例2: Accept
/*
It calls the VisitFunction method by passing in the receiver to
and returns the interface. It is a visitor pattern.
*/
func (this *AvgDistinct) Accept(visitor expression.Visitor) (interface{}, error) {
return visitor.VisitFunction(this)
}
示例3: Accept
/*
It calls the VisitFunction method by passing in the receiver to
and returns the interface. It is a visitor pattern.
*/
func (this *ArrayAgg) Accept(visitor expression.Visitor) (interface{}, error) {
return visitor.VisitFunction(this)
}
示例4: Accept
/*
It calls the VisitSubquery method by passing in the receiver to
and returns the interface. It is a visitor pattern.
*/
func (this *Subquery) Accept(visitor expression.Visitor) (interface{}, error) {
return visitor.VisitSubquery(this)
}
示例5: Accept
/*
It calls the VisitPositionalParameter method by passing in
the receiver and returns the interface. It is a visitor pattern.
*/
func (this *PositionalParameter) Accept(visitor expression.Visitor) (interface{}, error) {
return visitor.VisitPositionalParameter(this)
}