Skip to content

How to Utilize generics while keeping typecasting minimum #247

@RESDXChgfore9hing

Description

@RESDXChgfore9hing

currently if you have a java class and if you want to parse it(or obtain it) recursively.we need to do.

for(org.jboss.forge.roaster.model.JavaType jtypes:javaClass.getNestedTypes()){
			org.jboss.forge.roaster.model.source.JavaClassSource assumetypeiscls=(org.jboss.forge.roaster.model.source.JavaClassSource)jtypes;
.........

is there any way to just not cast it into a classsource?or maybe cast to a more genric type? that may include interface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions