Skip to content

Modifier utils: set of modifiers, modifier filter #89

Description

@ljacqu

Classes, methods, fields etc. have modifiers, which are a bit cumbersome to check sometimes. It would be cool to introduce enums(?) with all the modifiers and to allow some filtering mechanism, similar as back in the day for https://github.com/ljacqu/DataSourceColumns/tree/master/src/main/java/ch/jalu/datasourcecolumns/predicate

Off the top of my head, something like:

ModifierFilter<Field> filter = FieldModifier.FINAL.and(FieldModifier.STATIC);

filter.matches(field)

(Plus .negate(), .or(...) ... )

Challenge is that modifiers are different for each Member. Class has modifiers but does not implement Member.

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