2017-12-03 18:49:18 +00:00
|
|
|
package node
|
|
|
|
|
2017-12-31 09:57:55 +00:00
|
|
|
type Attributer interface {
|
|
|
|
Attributes() map[string]interface{}
|
|
|
|
Attribute(key string) interface{}
|
|
|
|
SetAttribute(key string, value interface{})
|
|
|
|
}
|
|
|
|
|
2017-12-03 18:49:18 +00:00
|
|
|
type Node interface {
|
2017-12-31 09:57:55 +00:00
|
|
|
Attributer
|
2017-12-27 17:55:58 +00:00
|
|
|
Name() string
|
2017-12-27 23:23:32 +00:00
|
|
|
Walk(v Visitor)
|
2017-12-03 18:49:18 +00:00
|
|
|
}
|