You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
361 B
Kotlin
11 lines
361 B
Kotlin
package me.eater.threedom.dom
|
|
|
|
import me.eater.threedom.dom.query.NodeQuery
|
|
|
|
interface INodeQueryCapable {
|
|
fun getNodeById(id: String): INode<*>?
|
|
fun getNodesByClassName(className: String): Sequence<INode<*>>
|
|
fun find(query: NodeQuery): Sequence<INode<*>> = emptySequence()
|
|
fun findOne(query: NodeQuery): INode<*>? = find(query).firstOrNull()
|
|
}
|