Lines Matching defs:type
75 int type();
112 final int type = constant.type();
113 if (type >= keys.length) {
114 throw new RuntimeException("Unknown Constant type " + type
118 keys[type].addValue(field.getInt(null));
120 throw new RuntimeException("Can't read constant value type=" + type
140 * Return how many keys there are for the given field type.
148 public int getSize(int type) {
149 return mKeys[type].length;
153 * Return the index for the given type and key combination in the array of field
162 public int getIndex(int type, int key) {
163 final int index = Arrays.binarySearch(mKeys[type], key);
167 throw new RuntimeException("Unknown Constant " + key + " (of type "
168 + type + " )");
173 * Get the array of keys for the given field type.
175 public int[] getKeys(int type) {
176 return mKeys[type];