Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
javaパッケージ以下をのぞいたクラスの数をカウントするastahのスクリプト
importPackage(com.change_vision.jude.api.inf.model);
classes = astah.findElements(IClass);
var count = 0;
for(var i in classes) {
var clazz = classes[i]
if (clazz.getFullNamespace("::").indexOf("java") != 0) {
println(clazz.getName());
count += 1;
}
}
println("classes count:" + count);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment