Files
Chris Smowton 3514dd1e4d Java: merge the @class and @interface database types and tables
This will allow the extractor to emit class(id, ...) when all it knows about a class is its name, due to not having it available on the classpath. Previously it would have had to guess whether it belonged to @class or @interface, possibly introducing an inconsistency.
2023-02-14 17:21:23 +00:00

12 lines
396 B
Plaintext

class ClassOrInterface extends @classorinterface {
string toString() { result = "class-or-interface" }
}
class Package extends @package {
string toString() { result = "package" }
}
from ClassOrInterface id, string nodeName, Package parentId, ClassOrInterface sourceId
where classes_or_interfaces(id, nodeName, parentId, sourceId) and isInterface(id)
select id, nodeName, parentId, sourceId