Package dev.hilla.parser.plugins.nonnull
Class AnnotationMatcher
- java.lang.Object
-
- dev.hilla.parser.plugins.nonnull.AnnotationMatcher
-
public final class AnnotationMatcher extends Object
Describes annotations that make class members and their signatures nullable and non-nullable: their name, meaning, and score
-
-
Constructor Summary
Constructors Constructor Description AnnotationMatcher(String name, boolean nullable, int score)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoesMakeNullable()Returns true if the annotation makes a member/signature nullable, false if non-nullablebooleanequals(Object obj)StringgetName()Returns the annotation name (e.g.intgetScore()Returns a score that allows to compare the priority between annotationsinthashCode()
-
-
-
Constructor Detail
-
AnnotationMatcher
public AnnotationMatcher(@Nonnull String name, boolean nullable, int score)
-
-
Method Detail
-
doesMakeNullable
public boolean doesMakeNullable()
Returns true if the annotation makes a member/signature nullable, false if non-nullable
-
getName
public String getName()
Returns the annotation name (e.g. javax.annotation.Nonnull)
-
getScore
public int getScore()
Returns a score that allows to compare the priority between annotations
-
-