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;
30 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_MethodHandle;
31 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_MethodType;
32 import static com.android.dx.cf.cst.ConstantTags.CONSTANT_InvokeDynamic;
35 import com.android.dx.rop.cst.Constant;
36 import com.android.dx.rop.cst.CstDouble;
37 import com.android.dx.rop.cst.CstFieldRef;
38 import com.android.dx.rop.cst.CstFloat;
39 import com.android.dx.rop.cst.CstInteger;
40 import com.android.dx.rop.cst.CstInterfaceMethodRef;
41 import com.android.dx.rop.cst.CstLong;
42 import com.android.dx.rop.cst.CstMethodRef;
43 import com.android.dx.rop.cst.CstNat;
44 import com.android.dx.rop.cst.CstString;
45 import com.android.dx.rop.cst.CstType;
46 import com.android.dx.rop.cst.StdConstantPool;
62 /** {@code non-null;} byte offsets to each cst */
156 Constant cst = pool.getOrNull(i);
157 if (cst == null) {
170 ? Hex.u2(i) + ": utf8{\"" + cst.toHuman() + "\"}"
171 : Hex.u2(i) + ": " + cst.toString();
184 int at = 10; // offset from the start of the file to the first cst
233 ex.addContext("...while preparsing cst " + Hex.u2(i) + " at offset " + Hex.u4(at));
251 Constant cst = pool.getOrNull(idx);
252 if (cst != null) {
253 return cst;
262 cst = parseUtf8(at);
268 cst = CstInteger.make(value);
273 cst = CstFloat.make(bits);
278 cst = CstLong.make(value);
283 cst = CstDouble.make(bits);
289 cst = new CstType(Type.internClassName(name.getString()));
294 cst = parse0(stringIndex, wasUtf8);
302 cst = new CstFieldRef(type, nat);
310 cst = new CstMethodRef(type, nat);
318 cst = new CstInterfaceMethodRef(type, nat);
326 cst = new CstNat(name, descriptor);
343 ex.addContext("...while parsing cst " + Hex.u2(idx) +
348 pe.addContext("...while parsing cst " + Hex.u2(idx) +
353 pool.set(idx, cst);
354 return cst;