Class AnnotationMatcher

java.lang.Object
com.vaadin.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 Details

    • AnnotationMatcher

      public AnnotationMatcher()
    • AnnotationMatcher

      public AnnotationMatcher(@NonNull String name, boolean makesNullable, int score)
  • Method Details

    • doesMakeNullable

      public boolean doesMakeNullable()
      Returns true if the annotation makes a member/signature nullable, false if non-nullable
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getName

      public String 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

      public void setName(String name)
    • setScore

      public void setScore(int score)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object