Package org.jf.dexlib2.writer
Class DexWriter.RestrictionsWriter
java.lang.Object
org.jf.dexlib2.writer.DexWriter.RestrictionsWriter
- Enclosing class:
DexWriter<StringKey extends CharSequence,StringRef extends StringReference, TypeKey extends CharSequence, TypeRef extends TypeReference, ProtoRefKey extends MethodProtoReference, FieldRefKey extends FieldReference, MethodRefKey extends MethodReference, ClassKey extends Comparable<? super ClassKey>, CallSiteKey extends CallSiteReference, MethodHandleKey extends MethodHandleReference, AnnotationKey extends Annotation, AnnotationSetKey, TypeListKey, FieldKey, MethodKey, EncodedArrayKey, EncodedValue, AnnotationElement extends AnnotationElement, StringSectionType extends StringSection<StringKey, StringRef>, TypeSectionType extends TypeSection<StringKey, TypeKey, TypeRef>, ProtoSectionType extends ProtoSection<StringKey, TypeKey, ProtoRefKey, TypeListKey>, FieldSectionType extends FieldSection<StringKey, TypeKey, FieldRefKey, FieldKey>, MethodSectionType extends MethodSection<StringKey, TypeKey, ProtoRefKey, MethodRefKey, MethodKey>, ClassSectionType extends ClassSection<StringKey, TypeKey, TypeListKey, ClassKey, FieldKey, MethodKey, AnnotationSetKey, EncodedArrayKey>, CallSiteSectionType extends CallSiteSection<CallSiteKey, EncodedArrayKey>, MethodHandleSectionType extends MethodHandleSection<MethodHandleKey, FieldRefKey, MethodRefKey>, TypeListSectionType extends TypeListSection<TypeKey, TypeListKey>, AnnotationSectionType extends AnnotationSection<StringKey, TypeKey, AnnotationKey, AnnotationElement, EncodedValue>, AnnotationSetSectionType extends AnnotationSetSection<AnnotationKey, AnnotationSetKey>, EncodedArraySectionType extends EncodedArraySection<EncodedArrayKey, EncodedValue>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DexDataStoreprivate final DexDataWriterprivate intprivate final DexDataWriterprivate final intprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionRestrictionsWriter(DexDataStore dataStore, DexDataWriter offsetWriter, int numClasses) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidclose()voidvoidwriteRestriction(Set<HiddenApiRestriction> hiddenApiRestrictions)
-
Field Details
-
startOffset
private final int startOffset -
dataStore
-
offsetsWriter
-
restrictionsWriter
-
writeRestrictionsForClass
private boolean writeRestrictionsForClass -
pendingBlankEntries
private int pendingBlankEntries
-
-
Constructor Details
-
RestrictionsWriter
public RestrictionsWriter(DexDataStore dataStore, DexDataWriter offsetWriter, int numClasses) throws IOException - Throws:
IOException
-
-
Method Details
-
finishClass
- Throws:
IOException
-
addBlankEntry
- Throws:
IOException
-
writeRestriction
public void writeRestriction(@Nonnull Set<HiddenApiRestriction> hiddenApiRestrictions) throws IOException - Throws:
IOException
-
close
- Throws:
IOException
-