@SuppressWarnings("unchecked")
public List<MethodSource<O>> getMethods()
{
List<MethodSource<O>> result = new ArrayList<MethodSource<O>>();
MethodFinderVisitor methodFinderVisitor = new MethodFinderVisitor();
body.accept(methodFinderVisitor);
List<MethodDeclaration> methods = methodFinderVisitor.getMethods();
for (MethodDeclaration methodDeclaration : methods)
{
result.add(new MethodImpl<O>((O) this, methodDeclaration));
}
return Collections.unmodifiableList(result);