Last active
December 18, 2015 10:19
-
-
Save joao-parana/5767757 to your computer and use it in GitHub Desktop.
Imprime nomes de classes e interfaces e respectivos atributos e métodos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
importPackage(com.change_vision.jude.api.inf.model); | |
var classes = astah.findElements(IClass); | |
var rowData = []; | |
for(var i in classes) { | |
var clazz = classes[i]; | |
rowData.push(clazz.getName()); | |
// rowData.push(clazz.getOwner().getName()); | |
rowData.push(clazz.getDefinition()); | |
println(clazz); | |
var iAttributes = clazz.getAttributes(); | |
for (var i in iAttributes) { | |
println(iAttributes[i]); | |
} | |
var iOperations = clazz.getOperations(); | |
for (var i in iOperations) { | |
println(iOperations[i]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment