Selector

Selector is used to pick a node based on its type and specified tags.

Members

Functions

addTags
Selector addTags()

Create a new selector requiring the given set of tags.

test
bool test(Node node)

Test if the selector matches given node.

testTags
bool testTags(TagList tags)

True if all tags in this selector are present on the given node.

testType
bool testType(TypeInfo_Class type)

Test if the given type matches the selector.

Static functions

none
Selector none()

Returns a selector that doesn't match anything

Variables

rejectAll
bool rejectAll;

If true, this selector will reject any match.

tags
TagList tags;

Tags needed by the selector.

type
TypeInfo_Class type;

Type of the node to match.

Meta