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).
There should be an easy way to get an annotation we now exists, even if we don't know its namespace. Perhaps:
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).