当前位置: 首页>>代码示例>>Java>>正文


Java BaseAnnotation类代码示例

本文整理汇总了Java中org.jf.dexlib2.base.BaseAnnotation的典型用法代码示例。如果您正苦于以下问题:Java BaseAnnotation类的具体用法?Java BaseAnnotation怎么用?Java BaseAnnotation使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


BaseAnnotation类属于org.jf.dexlib2.base包,在下文中一共展示了BaseAnnotation类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: writeAnnotationSets

import org.jf.dexlib2.base.BaseAnnotation; //导入依赖的package包/类
private void writeAnnotationSets(@Nonnull DexDataWriter writer) throws IOException {
    writer.align();
    annotationSetSectionOffset = writer.getPosition();
    if (shouldCreateEmptyAnnotationSet()) {
        writer.writeInt(0);
    }
    for (Entry<? extends AnnotationSetKey, Integer> entry: annotationSetSection.getItems()) {
        Collection<? extends AnnotationKey> annotations = Ordering.from(BaseAnnotation.BY_TYPE)
                .immutableSortedCopy(annotationSetSection.getAnnotations(entry.getKey()));

        writer.align();
        entry.setValue(writer.getPosition());
        writer.writeInt(annotations.size());
        for (AnnotationKey annotationKey: annotations) {
            writer.writeInt(annotationSection.getItemOffset(annotationKey));
        }
    }
}
 
开发者ID:CvvT,项目名称:andbg,代码行数:19,代码来源:DexWriter.java

示例2: writeAnnotationSets

import org.jf.dexlib2.base.BaseAnnotation; //导入依赖的package包/类
private void writeAnnotationSets( DexDataWriter writer) throws IOException {
    writer.align();
    annotationSetSectionOffset = writer.getPosition();
    if (shouldCreateEmptyAnnotationSet()) {
        writer.writeInt(0);
    }
    for (Entry<? extends AnnotationSetKey, Integer> entry: annotationSetSection.getItems()) {
        Collection<? extends AnnotationKey> annotations = Ordering.from(BaseAnnotation.BY_TYPE)
                .immutableSortedCopy(annotationSetSection.getAnnotations(entry.getKey()));

        writer.align();
        entry.setValue(writer.getPosition());
        writer.writeInt(annotations.size());
        for (AnnotationKey annotationKey: annotations) {
            writer.writeInt(annotationSection.getItemOffset(annotationKey));
        }
    }
}
 
开发者ID:AndreJCL,项目名称:JCL,代码行数:19,代码来源:DexWriter.java

示例3: writeAnnotationSets

import org.jf.dexlib2.base.BaseAnnotation; //导入依赖的package包/类
private void writeAnnotationSets(@Nonnull DexDataWriter writer) throws IOException {
    writer.align();
    annotationSetSectionOffset = writer.getPosition();
    if (shouldCreateEmptyAnnotationSet()) {
        writer.writeInt(0);
    }
    for (Map.Entry<? extends AnnotationSetKey, Integer> entry: annotationSetSection.getItems()) {
        Collection<? extends AnnotationKey> annotations = Ordering.from(BaseAnnotation.BY_TYPE)
                .immutableSortedCopy(annotationSetSection.getAnnotations(entry.getKey()));

        writer.align();
        entry.setValue(writer.getPosition());
        writer.writeInt(annotations.size());
        for (AnnotationKey annotationKey: annotations) {
            writer.writeInt(annotationSection.getItemOffset(annotationKey));
        }
    }
}
 
开发者ID:CvvT,项目名称:DexTamper,代码行数:19,代码来源:DexWriter.java

示例4: writeAnnotationSets

import org.jf.dexlib2.base.BaseAnnotation; //导入依赖的package包/类
private void writeAnnotationSets(@Nonnull DexDataWriter writer) throws IOException {
    writer.align();
    annotationSetSectionOffset = writer.getPosition();
    for (Map.Entry<? extends AnnotationSetKey, Integer> entry: annotationSetSection.getItems()) {
        Collection<? extends AnnotationKey> annotations = Ordering.from(BaseAnnotation.BY_TYPE)
                .immutableSortedCopy(annotationSetSection.getAnnotations(entry.getKey()));

        writer.align();
        entry.setValue(writer.getPosition());
        writer.writeInt(annotations.size());
        for (AnnotationKey annotationKey: annotations) {
            writer.writeInt(annotationSection.getItemOffset(annotationKey));
        }
    }
}
 
开发者ID:Miracle963,项目名称:zjdroid,代码行数:16,代码来源:DexWriter.java

示例5: writeAnnotationSets

import org.jf.dexlib2.base.BaseAnnotation; //导入依赖的package包/类
private void writeAnnotationSets(@Nonnull DexDataWriter writer) throws IOException {
    writer.align();
    annotationSetSectionOffset = writer.getPosition();
    for (Map.Entry<? extends AnnotationSetKey, Integer> entry : annotationSetSection.getItems()) {
        Collection<? extends AnnotationKey> annotations = Ordering.from(BaseAnnotation.BY_TYPE)
                .immutableSortedCopy(annotationSetSection.getAnnotations(entry.getKey()));

        writer.align();
        entry.setValue(writer.getPosition());
        writer.writeInt(annotations.size());
        for (AnnotationKey annotationKey : annotations) {
            writer.writeInt(annotationSection.getItemOffset(annotationKey));
        }
    }
}
 
开发者ID:niranjan94,项目名称:show-java,代码行数:16,代码来源:DexWriter.java


注:本文中的org.jf.dexlib2.base.BaseAnnotation类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。