Lines Matching refs:cst

17 package com.android.dx.cf.cst;
19 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_Class;
20 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_Double;
21 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_Fieldref;
22 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_Float;
23 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_Integer;
24 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_InterfaceMethodref;
25 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_Long;
26 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_Methodref;
27 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_NameAndType;
28 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_String;
29 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_Utf8;
32 import com.android.dx.rop.cst.Constant;
33 import com.android.dx.rop.cst.CstDouble;
34 import com.android.dx.rop.cst.CstFieldRef;
35 import com.android.dx.rop.cst.CstFloat;
36 import com.android.dx.rop.cst.CstInteger;
37 import com.android.dx.rop.cst.CstInterfaceMethodRef;
38 import com.android.dx.rop.cst.CstLong;
39 import com.android.dx.rop.cst.CstMethodRef;
40 import com.android.dx.rop.cst.CstNat;
41 import com.android.dx.rop.cst.CstString;
42 import com.android.dx.rop.cst.CstType;
43 import com.android.dx.rop.cst.StdConstantPool;
59 /** {@code non-null;} byte offsets to each cst */
153 Constant cst = pool.getOrNull(i);
154 if (cst == null) {
167 ? Hex.u2(i) + ": utf8{\"" + cst.toHuman() + "\"}"
168 : Hex.u2(i) + ": " + cst.toString();
181 int at = 10; // offset from the start of the file to the first cst
218 ex.addContext("...while preparsing cst " + Hex.u2(i) +
238 Constant cst = pool.getOrNull(idx);
239 if (cst != null) {
240 return cst;
249 cst = parseUtf8(at);
255 cst = CstInteger.make(value);
260 cst = CstFloat.make(bits);
265 cst = CstLong.make(value);
270 cst = CstDouble.make(bits);
276 cst = new CstType(Type.internClassName(name.getString()));
281 cst = parse0(stringIndex, wasUtf8);
289 cst = new CstFieldRef(type, nat);
297 cst = new CstMethodRef(type, nat);
305 cst = new CstInterfaceMethodRef(type, nat);
313 cst = new CstNat(name, descriptor);
318 ex.addContext("...while parsing cst " + Hex.u2(idx) +
323 pe.addContext("...while parsing cst " + Hex.u2(idx) +
328 pool.set(idx, cst);
329 return cst;