Skip to content

TargetClassName annotation Support for Explicit transition for Activity between different Moudles #5

@Icyoung

Description

@Icyoung

About skipping for Activity between different Modules. Now Meepo can use annotation @path to achieve.
Hope it can increase annotation ‘’TargetClassName‘’ for Explicit transition between Activity instead of Implicit transition.

incease annotation:

@Documented
@Target(METHOD)
@Retention(RUNTIME)
public @interface TargetClassName {
    String value();
}

add to DefaultParser:

if(annotation instanceof TargetClassName){
    String clazzName = ((TargetClassName) annotation).value();
    Class<?> clazz;
    try {
        clazz = Class.forName(clazzName);
    } catch (ClassNotFoundException e) {
        throw new RuntimeException(String.format(Locale.getDefault(),
                "@TargetClassName(\"%s\") not found.", clazzName));
    }
    goTo.setTargetClass(clazz);

 }

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions