/** * Gets the method constant. * * @return {@code non-null;} the constant */ public CstBaseMethodRef getMethodRef() { return (CstBaseMethodRef) getRef(); }
/** {@inheritDoc} */ @Override protected int getTypoidIdx(DexFile file) { ProtoIdsSection protoIds = file.getProtoIds(); return protoIds.indexOf(getMethodRef().getPrototype()); }
/** * Interns an element into this instance. * * @param method {@code non-null;} the reference to intern * @return {@code non-null;} the interned reference */ public synchronized MethodIdItem intern(CstBaseMethodRef method) { if (method == null) { throw new NullPointerException("method == null"); } throwIfPrepared(); MethodIdItem result = methodIds.get(method); if (result == null) { result = new MethodIdItem(method); methodIds.put(method, result); } return result; }
/** * Gets the index of the given reference, which must have been added * to this instance. * * @param ref {@code non-null;} the reference to look up * @return {@code >= 0;} the reference's index */ public int indexOf(CstBaseMethodRef ref) { if (ref == null) { throw new NullPointerException("ref == null"); } throwIfNotPrepared(); MethodIdItem item = methodIds.get(ref); if (item == null) { throw new IllegalArgumentException("not found"); } return item.getIndex(); } }
/** {@inheritDoc} */ @Override protected int getTypoidIdx(DexFile file) { ProtoIdsSection protoIds = file.getProtoIds(); return protoIds.indexOf(getMethodRef().getPrototype()); }
/** * Interns an element into this instance. * * @param method {@code non-null;} the reference to intern * @return {@code non-null;} the interned reference */ public MethodIdItem intern(CstBaseMethodRef method) { if (method == null) { throw new NullPointerException("method == null"); } throwIfPrepared(); MethodIdItem result = methodIds.get(method); if (result == null) { result = new MethodIdItem(method); methodIds.put(method, result); } return result; }
/** * Gets the index of the given reference, which must have been added * to this instance. * * @param ref {@code non-null;} the reference to look up * @return {@code >= 0;} the reference's index */ public int indexOf(CstBaseMethodRef ref) { if (ref == null) { throw new NullPointerException("ref == null"); } throwIfNotPrepared(); MethodIdItem item = methodIds.get(ref); if (item == null) { throw new IllegalArgumentException("not found"); } return item.getIndex(); } }
/** {@inheritDoc} */ @Override protected int getTypoidIdx(DexFile file) { ProtoIdsSection protoIds = file.getProtoIds(); return protoIds.indexOf(getMethodRef().getPrototype()); }
/** * Gets the method constant. * * @return {@code non-null;} the constant */ public CstBaseMethodRef getMethodRef() { return (CstBaseMethodRef) getRef(); }
/** * Interns an element into this instance. * * @param method {@code non-null;} the reference to intern * @return {@code non-null;} the interned reference */ public MethodIdItem intern(CstBaseMethodRef method) { if (method == null) { throw new NullPointerException("method == null"); } throwIfPrepared(); MethodIdItem result = methodIds.get(method); if (result == null) { result = new MethodIdItem(method); methodIds.put(method, result); } return result; }
/** * Gets the index of the given reference, which must have been added * to this instance. * * @param ref {@code non-null;} the reference to look up * @return {@code >= 0;} the reference's index */ public int indexOf(CstBaseMethodRef ref) { if (ref == null) { throw new NullPointerException("ref == null"); } throwIfNotPrepared(); MethodIdItem item = methodIds.get(ref); if (item == null) { throw new IllegalArgumentException("not found"); } return item.getIndex(); } }
/** {@inheritDoc} */ @Override protected int getTypoidIdx(DexFile file) { ProtoIdsSection protoIds = file.getProtoIds(); return protoIds.indexOf(getMethodRef().getPrototype()); }
/** * Gets the method constant. * * @return {@code non-null;} the constant */ public CstBaseMethodRef getMethodRef() { return (CstBaseMethodRef) getRef(); }
/** * Interns an element into this instance. * * @param method {@code non-null;} the reference to intern * @return {@code non-null;} the interned reference */ public synchronized MethodIdItem intern(CstBaseMethodRef method) { if (method == null) { throw new NullPointerException("method == null"); } throwIfPrepared(); MethodIdItem result = methodIds.get(method); if (result == null) { result = new MethodIdItem(method); methodIds.put(method, result); } return result; }
/** * Gets the index of the given reference, which must have been added * to this instance. * * @param ref {@code non-null;} the reference to look up * @return {@code >= 0;} the reference's index */ public int indexOf(CstBaseMethodRef ref) { if (ref == null) { throw new NullPointerException("ref == null"); } throwIfNotPrepared(); MethodIdItem item = methodIds.get(ref); if (item == null) { throw new IllegalArgumentException("not found"); } return item.getIndex(); } }
/** {@inheritDoc} */ @Override protected int getTypoidIdx(DexFile file) { ProtoIdsSection protoIds = file.getProtoIds(); return protoIds.indexOf(getMethodRef().getPrototype()); }
/** * Gets the method constant. * * @return {@code non-null;} the constant */ public CstBaseMethodRef getMethodRef() { return (CstBaseMethodRef) getRef(); }
/** * Interns an element into this instance. * * @param method {@code non-null;} the reference to intern * @return {@code non-null;} the interned reference */ public MethodIdItem intern(CstBaseMethodRef method) { if (method == null) { throw new NullPointerException("method == null"); } throwIfPrepared(); MethodIdItem result = methodIds.get(method); if (result == null) { result = new MethodIdItem(method); methodIds.put(method, result); } return result; }
/** * Gets the index of the given reference, which must have been added * to this instance. * * @param ref {@code non-null;} the reference to look up * @return {@code >= 0;} the reference's index */ public int indexOf(CstBaseMethodRef ref) { if (ref == null) { throw new NullPointerException("ref == null"); } throwIfNotPrepared(); MethodIdItem item = methodIds.get(ref); if (item == null) { throw new IllegalArgumentException("not found"); } return item.getIndex(); } }
/** {@inheritDoc} */ @Override protected int getTypoidIdx(DexFile file) { ProtoIdsSection protoIds = file.getProtoIds(); return protoIds.indexOf(getMethodRef().getPrototype()); }