Skip to content

Instantly share code, notes, and snippets.

@samueltcsantos
Created April 19, 2014 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueltcsantos/11097295 to your computer and use it in GitHub Desktop.
Save samueltcsantos/11097295 to your computer and use it in GitHub Desktop.
Como acessar todos os métodos dentro de uma classe.
/**
* 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