/** * Returns range corresponding to the specified script index. * * @param index specified script index * * @return one of the range constants according to the specified script index. */ private int getRangeFromIndex(int index){ if (index < 0 || index >= MAX_INDEX){ throw rangeException(index); } return 1 << index; }
/** * Returns script index of the specified context range. * * @param range specified range * * @return one of the script indices according to the specified range. */ private int getIndexFromRange(int range){ if (range == 0) { throw rangeException(range); } int index = 0; while (index < MAX_INDEX){ if (range == (1 << index)){ return index; } index++; } throw rangeException(range); }
/** * Returns range corresponding to the specified script index. * * @param index specified script index * * @return one of the range constants according to the specified script index. */ private int getRangeFromIndex(int index){ if (index < 0 || index >= MAX_INDEX){ throw rangeException(index); } return 1 << index; }
/** * Returns range corresponding to the specified script index. * * @param index specified script index * * @return one of the range constants according to the specified script index. */ private int getRangeFromIndex(int index){ if (index < 0 || index >= MAX_INDEX){ throw rangeException(index); } return 1 << index; }
/** * Returns range corresponding to the specified script index. * * @param index specified script index * * @return one of the range constants according to the specified script index. */ private int getRangeFromIndex(int index){ if (index < 0 || index >= MAX_INDEX){ throw rangeException(index); } return 1 << index; }
/** * Returns range corresponding to the specified script index. * * @param index specified script index * * @return one of the range constants according to the specified script index. */ private int getRangeFromIndex(int index){ if (index < 0 || index >= MAX_INDEX){ throw rangeException(index); } return 1 << index; }
/** * Returns range corresponding to the specified script index. * * @param index specified script index * * @return one of the range constants according to the specified script index. */ private int getRangeFromIndex(int index){ if (index < 0 || index >= MAX_INDEX){ throw rangeException(index); } return 1 << index; }
/** * Returns range corresponding to the specified script index. * * @param index specified script index * * @return one of the range constants according to the specified script index. */ private int getRangeFromIndex(int index){ if (index < 0 || index >= MAX_INDEX){ throw rangeException(index); } return 1 << index; }
/** * Returns script index of the specified context range. * * @param range specified range * * @return one of the script indices according to the specified range. */ private int getIndexFromRange(int range){ if (range == 0) { throw rangeException(range); } int index = 0; while (index < MAX_INDEX){ if (range == (1 << index)){ return index; } index++; } throw rangeException(range); }
/** * Returns script index of the specified context range. * * @param range specified range * * @return one of the script indices according to the specified range. */ private int getIndexFromRange(int range){ if (range == 0) { throw rangeException(range); } int index = 0; while (index < MAX_INDEX){ if (range == (1 << index)){ return index; } index++; } throw rangeException(range); }
/** * Returns script index of the specified context range. * * @param range specified range * * @return one of the script indices according to the specified range. */ private int getIndexFromRange(int range){ if (range == 0) { throw rangeException(range); } int index = 0; while (index < MAX_INDEX){ if (range == (1 << index)){ return index; } index++; } throw rangeException(range); }
/** * Returns script index of the specified context range. * * @param range specified range * * @return one of the script indices according to the specified range. */ private int getIndexFromRange(int range){ if (range == 0) { throw rangeException(range); } int index = 0; while (index < MAX_INDEX){ if (range == (1 << index)){ return index; } index++; } throw rangeException(range); }
/** * Returns script index of the specified context range. * * @param range specified range * * @return one of the script indices according to the specified range. */ private int getIndexFromRange(int range){ if (range == 0) { throw rangeException(range); } int index = 0; while (index < MAX_INDEX){ if (range == (1 << index)){ return index; } index++; } throw rangeException(range); }
/** * Returns script index of the specified context range. * * @param range specified range * * @return one of the script indices according to the specified range. */ private int getIndexFromRange(int range){ if (range == 0) { throw rangeException(range); } int index = 0; while (index < MAX_INDEX){ if (range == (1 << index)){ return index; } index++; } throw rangeException(range); }