Class NumberPredicate

All Implemented Interfaces:
Named

public class NumberPredicate extends Procedure1
  • Field Details

  • Constructor Details

    • NumberPredicate

      public NumberPredicate(Language language, String name, int op)
  • Method Details

    • getLanguage

      protected final Language getLanguage()
    • isOdd

      public static boolean isOdd(Object obj)
    • isEven

      public static boolean isEven(Object obj)
    • isOddEven

      public static boolean isOddEven(boolean isOdd, Object obj)
    • apply1

      public Object apply1(Object arg1)
      Specified by:
      apply1 in class Procedure1
    • numArgs

      public int numArgs()
      Description copied from class: Procedure
      Return minArgs()|(maxArgs<<12). We use a single virtual function to reduce the number of methods in the system, as well as the number of virtual method table entries. We shift by 12 so the number can normally be represented using a sipush instruction, without requiring a constant pool entry.
      Overrides:
      numArgs in class Procedure1