Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get the class of inner classes #3

Open
freewind opened this issue Mar 22, 2011 · 1 comment
Open

Can't get the class of inner classes #3

freewind opened this issue Mar 22, 2011 · 1 comment

Comments

@freewind
Copy link

Suppose there is a class with an inner class:

class Out {
    class In {
        def foo(name:String) = ""
    }
}

I have get the method of Out.In.foo, and I want to get the parameter names of it:

for {
    clazz <- Mirror.ofClass(method.getDeclaringClass).toSeq
    method <- clazz.allDefs.find(_.name == method.getName).toSeq
    param <- method.flatParams
} yield (param.name, param.symType.toString)

But seems can't find that inner class:

Mirror.ofClass(method.getDeclaringClass).toSeq

returns a List()

@kevinwright
Copy link
Member

I won't work at the moment, this is on the backlog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants