Created
April 19, 2014 20:57
-
-
Save samueltcsantos/11097295 to your computer and use it in GitHub Desktop.
Como acessar todos os métodos dentro de uma classe.
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
/** | |
* Get all types in the Compilation Unit. | |
* | |
* @see {https://github.com/samueltcsantos/eclipse-jdt} | |
* | |
* @param unit | |
* @return | |
* @throws JavaModelException | |
*/ | |
private IType[] getITypes(ICompilationUnit unit) throws JavaModelException{ | |
return unit.getAllTypes(); | |
} | |
/** | |
* Get all methods | |
* @param type | |
* @return | |
* @throws JavaModelException | |
*/ | |
private IMethod [] getIMethods(IType type) throws JavaModelException{ | |
return type.getMethods(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment