Class ExpressionWarning

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class ExpressionWarning
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    ExpressionWarning is a warning information that targets a specific expression.
    • Constructor Detail

      • ExpressionWarning

        public ExpressionWarning​(@NonNull
                                 @NonNull java.lang.String fieldRef,
                                 @NonNull
                                 @NonNull java.lang.String warning)
      • ExpressionWarning

        public ExpressionWarning()
    • Method Detail

      • getFieldRef

        @NonNull
        public @NonNull java.lang.String getFieldRef()
        The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression"
      • getWarning

        @NonNull
        public @NonNull java.lang.String getWarning()
        The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.
      • setFieldRef

        public void setFieldRef​(@NonNull
                                @NonNull java.lang.String fieldRef)
        The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression"
      • setWarning

        public void setWarning​(@NonNull
                               @NonNull java.lang.String warning)
        The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object