Skip to content

getAnnotation() with null namespace should retrieve any annotation(s) with specified name #114

@amir-zeldes

Description

@amir-zeldes

There should be an easy way to get an annotation we now exists, even if we don't know its namespace. Perhaps:

SNode someNode;
someNode.getAnnotation(null, "cat"); // get any annotation called 'cat', no matter what namespace

If there is no such annotation this returns null, which can also be used as a convenience function to check whether a node has some annotation. (Or we could alias that as: someNode.hasAnnotation(null, "cat"), which would return boolean).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions