Skip to content

How to map methods to their respective classes? #136

@irfanmekic

Description

@irfanmekic

I'm not quite sure how to parse the methods belonging to a specific class?

For example, if I have 2 classes in my java file (ClassA and ClassB) and each class has their own separate methods (method1, method2 for ClassA & method3 and method4 for ClassB), I want to be able to make each method to their respective class.

Using ClassDeclaration and MethodDeclaration returns all classes and methods, and doesnt seem to have the link between classes and their methods.

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions