code: public static boolean isInteger(TypeMirror type)
      {
          switch (type.getKind())
          {
              case INT:
              case SHORT:
              case CHAR:
              case BYTE:
              case BOOLEAN:
                  return true;
              default:
                  return false;
          }
      }
docs: Returns true if type is one of int, short, char, byte or boolean
  @param type
  @return