Class NumericAsserts.AssertLessOrEqual

java.lang.Object
javax0.jamal.assertions.NumericAsserts
javax0.jamal.assertions.NumericAsserts.AssertLessOrEqual
All Implemented Interfaces:
javax0.jamal.api.Identified, javax0.jamal.api.Macro, javax0.jamal.api.ServiceLoaded
Enclosing class:
NumericAsserts

public static class NumericAsserts.AssertLessOrEqual extends NumericAsserts
  • Constructor Details

    • AssertLessOrEqual

      public AssertLessOrEqual()
  • Method Details

    • test

      protected boolean test(int a, int b)
      Specified by:
      test in class NumericAsserts
    • getIds

      public String[] getIds()
    • evaluate

      public String evaluate(javax0.jamal.api.Input input, javax0.jamal.api.Processor processor) throws javax0.jamal.api.BadSyntax
      Specified by:
      evaluate in interface javax0.jamal.api.Macro
      Throws:
      javax0.jamal.api.BadSyntax
    • getId

      public String getId()
      The implementation of the naming assumes that the name of the class looks like AsserXXX where Assert is a six character prefix, usually it is literally 'Assert' and it is followed by the name of the assertion. The name of the macro will be assert: followed by the rest of the name of the class lowercasing the first characters. For example:
      
       AssertEquals -> assert:equals
       AssertSomeFunnyName -> assert:somFunnyName
       AssireAny -> assert:any
       

      If the naming of the class does not conform to this schema or the macro implemented needs some special name then the method has to be overridden.

      Specified by:
      getId in interface javax0.jamal.api.Identified
      Specified by:
      getId in interface javax0.jamal.api.Macro
      Returns:
      the name of the macro