Functions.java 474 B

123456789101112131415
  1. package com.jfireel.expression.util;
  2. public class Functions {
  3. public static final int METHOD_INVOKE_BY_REFLECT = 1 << 0;
  4. public static final int METHOD_INVOKE_BY_COMPILE = 1 << 1;
  5. public static final int RECOGNIZE_EVERY_TIME = 1 << 2;
  6. public static boolean isMethodInvokeByCompile(int function) {
  7. return (function & METHOD_INVOKE_BY_COMPILE) != 0;
  8. }
  9. public static boolean isRecognizeEveryTime(int function) {
  10. return (function & RECOGNIZE_EVERY_TIME) != 0;
  11. }
  12. }