private void checkPrototype(Prototype proto) { checkDescriptor(proto.getReturnType().getDescriptor()); StdTypeList args = proto.getParameterTypes(); for (int i = 0; i < args.size(); i++) { checkDescriptor(args.get(i).getDescriptor()); } } private void checkDescriptor(String typeDescriptor) {
private void addDependencies(ConstantPool pool) { for (Constant constant : pool.getEntries()) { if (constant instanceof CstType) { checkDescriptor(((CstType) constant).getClassType()); } else if (constant instanceof CstFieldRef) { checkDescriptor(((CstFieldRef) constant).getType()); } else if (constant instanceof CstMethodRef) { Prototype proto = ((CstMethodRef) constant).getPrototype(); checkDescriptor(proto.getReturnType()); StdTypeList args = proto.getParameterTypes(); for (int i = 0; i < args.size(); i++) { checkDescriptor(args.get(i)); } } } }
/** * {@inheritDoc} * * In this case, this method returns the <i>return type</i> of this method. * * @return {@code non-null;} the method's return type */ @Override public final Type getType() { return prototype.getReturnType(); }
/** * Gets the return type. * * @return {@code non-null;} the return type */ public Type getReturnType() { return prototype.getReturnType(); }
/** * {@inheritDoc} * * In this case, this method returns the <i>return type</i> of this method. * * @return {@code non-null;} the method's return type */ public final Type getType() { return prototype.getReturnType(); }
/** * {@inheritDoc} * * In this case, this method returns the <i>return type</i> of this method. * * @return {@code non-null;} the method's return type */ public final Type getType() { return prototype.getReturnType(); }
/** * {@inheritDoc} * * In this case, this method returns the <i>return type</i> of this method. * * @return {@code non-null;} the method's return type */ public final Type getType() { return prototype.getReturnType(); }
/** * {@inheritDoc} * * In this case, this method returns the <i>return type</i> of this method. * * @return {@code non-null;} the method's return type */ @Override public final Type getType() { return prototype.getReturnType(); }
/** * {@inheritDoc} * * In this case, this method returns the <i>return type</i> of this method. * * @return {@code non-null;} the method's return type */ public final Type getType() { return prototype.getReturnType(); }
/** * {@inheritDoc} * * In this case, this method returns the <i>return type</i> of this method. * * @return {@code non-null;} the method's return type */ public final Type getType() { return prototype.getReturnType(); }
/** * {@inheritDoc} * * In this case, this method returns the <i>return type</i> of this method. * * @return {@code non-null;} the method's return type */ public final Type getType() { return prototype.getReturnType(); }
/** {@inheritDoc} */ @Override public void addContents(DexFile file) { StringIdsSection stringIds = file.getStringIds(); TypeIdsSection typeIds = file.getTypeIds(); MixedItemSection typeLists = file.getTypeLists(); typeIds.intern(prototype.getReturnType()); stringIds.intern(shortForm); if (parameterTypes != null) { parameterTypes = typeLists.intern(parameterTypes); } }
/** {@inheritDoc} */ @Override public void addContents(DexFile file) { StringIdsSection stringIds = file.getStringIds(); TypeIdsSection typeIds = file.getTypeIds(); MixedItemSection typeLists = file.getTypeLists(); typeIds.intern(prototype.getReturnType()); stringIds.intern(shortForm); if (parameterTypes != null) { parameterTypes = typeLists.intern(parameterTypes); } }
/** {@inheritDoc} */ @Override public void addContents(DexFile file) { StringIdsSection stringIds = file.getStringIds(); TypeIdsSection typeIds = file.getTypeIds(); MixedItemSection typeLists = file.getTypeLists(); typeIds.intern(prototype.getReturnType()); stringIds.intern(shortForm); if (parameterTypes != null) { parameterTypes = typeLists.intern(parameterTypes); } }
/** {@inheritDoc} */ @Override public void addContents(DexFile file) { StringIdsSection stringIds = file.getStringIds(); TypeIdsSection typeIds = file.getTypeIds(); MixedItemSection typeLists = file.getTypeLists(); typeIds.intern(prototype.getReturnType()); stringIds.intern(shortForm); if (parameterTypes != null) { parameterTypes = typeLists.intern(parameterTypes); } }
/** {@inheritDoc} */ @Override public void addContents(DexFile file) { StringIdsSection stringIds = file.getStringIds(); TypeIdsSection typeIds = file.getTypeIds(); MixedItemSection typeLists = file.getTypeLists(); typeIds.intern(prototype.getReturnType()); stringIds.intern(shortForm); if (parameterTypes != null) { parameterTypes = typeLists.intern(parameterTypes); } }
/** {@inheritDoc} */ @Override public void addContents(DexFile file) { StringIdsSection stringIds = file.getStringIds(); TypeIdsSection typeIds = file.getTypeIds(); MixedItemSection typeLists = file.getTypeLists(); typeIds.intern(prototype.getReturnType()); stringIds.intern(shortForm); if (parameterTypes != null) { parameterTypes = typeLists.intern(parameterTypes); } }
/** {@inheritDoc} */ @Override public void addContents(DexFile file) { StringIdsSection stringIds = file.getStringIds(); TypeIdsSection typeIds = file.getTypeIds(); MixedItemSection typeLists = file.getTypeLists(); typeIds.intern(prototype.getReturnType()); stringIds.intern(shortForm); if (parameterTypes != null) { parameterTypes = typeLists.intern(parameterTypes); } }
/** {@inheritDoc} */ @Override public void addContents(DexFile file) { StringIdsSection stringIds = file.getStringIds(); TypeIdsSection typeIds = file.getTypeIds(); MixedItemSection typeLists = file.getTypeLists(); typeIds.intern(prototype.getReturnType()); stringIds.intern(shortForm); if (parameterTypes != null) { parameterTypes = typeLists.intern(parameterTypes); } }
private void checkPrototype(Prototype proto) { checkDescriptor(proto.getReturnType().getDescriptor()); StdTypeList args = proto.getParameterTypes(); for (int i = 0; i < args.size(); i++) { checkDescriptor(args.get(i).getDescriptor()); } }