Class AnnotationMatcher
java.lang.Object
com.vaadin.hilla.parser.plugins.nonnull.AnnotationMatcher
Describes annotations that make class members and their signatures nullable
and non-nullable: their name, meaning, and score
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns true if the annotation makes a member/signature nullable, false if non-nullablebooleangetName()Returns the annotation name (e.g.intgetScore()Returns a score that allows to compare the priority between annotationsinthashCode()voidsetMakesNullable(boolean makesNullable) voidvoidsetScore(int score)
-
Constructor Details
-
AnnotationMatcher
public AnnotationMatcher() -
AnnotationMatcher
-
-
Method Details
-
doesMakeNullable
public boolean doesMakeNullable()Returns true if the annotation makes a member/signature nullable, false if non-nullable -
equals
-
getName
Returns the annotation name (e.g. jakarta.annotation.Nonnull) -
getScore
public int getScore()Returns a score that allows to compare the priority between annotations -
setMakesNullable
public void setMakesNullable(boolean makesNullable) -
setName
-
setScore
public void setScore(int score) -
hashCode
public int hashCode()
-