TypeId(String name, com.android.dx.rop.type.Type ropType) { if (name == null || ropType == null) { throw new NullPointerException(); } this.name = name; this.ropType = ropType; this.constant = CstType.intern(ropType); }
} else { CstType cstType = CstType.intern(type.ropType);
TypeId(String name, com.android.dx.rop.type.Type ropType) { if (name == null || ropType == null) { throw new NullPointerException(); } this.name = name; this.ropType = ropType; this.constant = CstType.intern(ropType); }
Type(String name, com.android.dx.rop.type.Type ropType) { if (name == null || ropType == null) { throw new NullPointerException(); } this.name = name; this.ropType = ropType; this.constant = CstType.intern(ropType); }
TypeId(String name, com.android.dx.rop.type.Type ropType) { if (name == null || ropType == null) { throw new NullPointerException(); } this.name = name; this.ropType = ropType; this.constant = CstType.intern(ropType); }
/** * Constructs an instance. * * @param address {@code >= 0;} address * @param disposition {@code non-null;} disposition of the local * @param spec {@code non-null;} register spec representing * the variable */ public Entry(int address, Disposition disposition, RegisterSpec spec) { if (address < 0) { throw new IllegalArgumentException("address < 0"); } if (disposition == null) { throw new NullPointerException("disposition == null"); } try { if (spec.getLocalItem() == null) { throw new NullPointerException( "spec.getLocalItem() == null"); } } catch (NullPointerException ex) { // Elucidate the exception. throw new NullPointerException("spec == null"); } this.address = address; this.disposition = disposition; this.spec = spec; this.type = CstType.intern(spec.getType()); }
/** * Constructs an instance. * * @param address {@code >= 0;} address * @param disposition {@code non-null;} disposition of the local * @param spec {@code non-null;} register spec representing * the variable */ public Entry(int address, Disposition disposition, RegisterSpec spec) { if (address < 0) { throw new IllegalArgumentException("address < 0"); } if (disposition == null) { throw new NullPointerException("disposition == null"); } try { if (spec.getLocalItem() == null) { throw new NullPointerException( "spec.getLocalItem() == null"); } } catch (NullPointerException ex) { // Elucidate the exception. throw new NullPointerException("spec == null"); } this.address = address; this.disposition = disposition; this.spec = spec; this.type = CstType.intern(spec.getType()); }
/** * Helper for {@link #getAllConstants} which adds all the info for * a single {@code RegisterSpec}. * * @param result {@code non-null;} result set to add to * @param spec {@code null-ok;} register spec to add */ private static void addConstants(HashSet<Constant> result, RegisterSpec spec) { if (spec == null) { return; } LocalItem local = spec.getLocalItem(); CstString name = local.getName(); CstString signature = local.getSignature(); Type type = spec.getType(); if (type != Type.KNOWN_NULL) { result.add(CstType.intern(type)); } if (name != null) { result.add(name); } if (signature != null) { result.add(signature); } }
/** * Helper for {@link #getAllConstants} which adds all the info for * a single {@code RegisterSpec}. * * @param result {@code non-null;} result set to add to * @param spec {@code null-ok;} register spec to add */ private static void addConstants(HashSet<Constant> result, RegisterSpec spec) { if (spec == null) { return; } LocalItem local = spec.getLocalItem(); CstString name = local.getName(); CstString signature = local.getSignature(); Type type = spec.getType(); if (type != Type.KNOWN_NULL) { result.add(CstType.intern(type)); } if (name != null) { result.add(name); } if (signature != null) { result.add(signature); } }
/** * Helper for {@link #getAllConstants} which adds all the info for * a single {@code RegisterSpec}. * * @param result {@code non-null;} result set to add to * @param spec {@code null-ok;} register spec to add */ private static void addConstants(HashSet<Constant> result, RegisterSpec spec) { if (spec == null) { return; } LocalItem local = spec.getLocalItem(); CstString name = local.getName(); CstString signature = local.getSignature(); Type type = spec.getType(); if (type != Type.KNOWN_NULL) { result.add(CstType.intern(type)); } if (name != null) { result.add(name); } if (signature != null) { result.add(signature); } }
/** * Helper for {@link #getAllConstants} which adds all the info for * a single {@code RegisterSpec}. * * @param result {@code non-null;} result set to add to * @param spec {@code null-ok;} register spec to add */ private static void addConstants(HashSet<Constant> result, RegisterSpec spec) { if (spec == null) { return; } LocalItem local = spec.getLocalItem(); CstString name = local.getName(); CstString signature = local.getSignature(); Type type = spec.getType(); if (type != Type.KNOWN_NULL) { result.add(CstType.intern(type)); } if (name != null) { result.add(name); } if (signature != null) { result.add(signature); } }
/** * Helper for {@link #getAllConstants} which adds all the info for * a single {@code RegisterSpec}. * * @param result {@code non-null;} result set to add to * @param spec {@code null-ok;} register spec to add */ private static void addConstants(HashSet<Constant> result, RegisterSpec spec) { if (spec == null) { return; } LocalItem local = spec.getLocalItem(); CstString name = local.getName(); CstString signature = local.getSignature(); Type type = spec.getType(); if (type != Type.KNOWN_NULL) { result.add(CstType.intern(type)); } if (name != null) { result.add(name); } if (signature != null) { result.add(signature); } }
/** * Converts a {@link TypeList} to a {@link CstArray}. * * @param types {@code non-null;} the type list * @return {@code non-null;} the corresponding array constant */ private static CstArray makeCstArray(TypeList types) { int size = types.size(); CstArray.List list = new CstArray.List(size); for (int i = 0; i < size; i++) { list.set(i, CstType.intern(types.getType(i))); } list.setImmutable(); return new CstArray(list); } }
/** * Converts a {@link TypeList} to a {@link CstArray}. * * @param types {@code non-null;} the type list * @return {@code non-null;} the corresponding array constant */ private static CstArray makeCstArray(TypeList types) { int size = types.size(); CstArray.List list = new CstArray.List(size); for (int i = 0; i < size; i++) { list.set(i, CstType.intern(types.getType(i))); } list.setImmutable(); return new CstArray(list); } }
/** * Converts a {@link TypeList} to a {@link CstArray}. * * @param types {@code non-null;} the type list * @return {@code non-null;} the corresponding array constant */ private static CstArray makeCstArray(TypeList types) { int size = types.size(); CstArray.List list = new CstArray.List(size); for (int i = 0; i < size; i++) { list.set(i, CstType.intern(types.getType(i))); } list.setImmutable(); return new CstArray(list); } }
/** * Converts a {@link TypeList} to a {@link CstArray}. * * @param types {@code non-null;} the type list * @return {@code non-null;} the corresponding array constant */ private static CstArray makeCstArray(TypeList types) { int size = types.size(); CstArray.List list = new CstArray.List(size); for (int i = 0; i < size; i++) { list.set(i, CstType.intern(types.getType(i))); } list.setImmutable(); return new CstArray(list); } }
/** * Converts a {@link TypeList} to a {@link CstArray}. * * @param types {@code non-null;} the type list * @return {@code non-null;} the corresponding array constant */ private static CstArray makeCstArray(TypeList types) { int size = types.size(); CstArray.List list = new CstArray.List(size); for (int i = 0; i < size; i++) { list.set(i, CstType.intern(types.getType(i))); } list.setImmutable(); return new CstArray(list); } }
/** * Converts a {@link TypeList} to a {@link CstArray}. * * @param types {@code non-null;} the type list * @return {@code non-null;} the corresponding array constant */ private static CstArray makeCstArray(TypeList types) { int size = types.size(); CstArray.List list = new CstArray.List(size); for (int i = 0; i < size; i++) { list.set(i, CstType.intern(types.getType(i))); } list.setImmutable(); return new CstArray(list); } }
/** * Converts a {@link TypeList} to a {@link CstArray}. * * @param types {@code non-null;} the type list * @return {@code non-null;} the corresponding array constant */ private static CstArray makeCstArray(TypeList types) { int size = types.size(); CstArray.List list = new CstArray.List(size); for (int i = 0; i < size; i++) { list.set(i, CstType.intern(types.getType(i))); } list.setImmutable(); return new CstArray(list); } }
/** * Converts a {@link TypeList} to a {@link CstArray}. * * @param types {@code non-null;} the type list * @return {@code non-null;} the corresponding array constant */ private static CstArray makeCstArray(TypeList types) { int size = types.size(); CstArray.List list = new CstArray.List(size); for (int i = 0; i < size; i++) { list.set(i, CstType.intern(types.getType(i))); } list.setImmutable(); return new CstArray(list); } }