本文整理汇总了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)
}
开发者ID:amarantha-k,项目名称:query,代码行数:7,代码来源:param_named.go
示例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)
}
开发者ID:amarantha-k,项目名称:query,代码行数:7,代码来源:agg_avg_distinct.go
示例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)
}
开发者ID:amarantha-k,项目名称:query,代码行数:7,代码来源:agg_array.go
示例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)
}
开发者ID:amarantha-k,项目名称:query,代码行数:7,代码来源:subquery.go
示例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)
}
开发者ID:amarantha-k,项目名称:query,代码行数:7,代码来源:param_positional.go
注:本文中的github.com/couchbaselabs/query/expression.Visitor类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论