• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java StdAttributeList类的典型用法和代码示例

java 2次浏览

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

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

示例1: AttributeListParser

点赞 3

import com.android.dx.cf.iface.StdAttributeList; //导入依赖的package包/类
/**
 * Constructs an instance.
 *
 * @param cf {@code non-null;} class file to parse from
 * @param context attribute parsing context (see {@link AttributeFactory})
 * @param offset offset in {@code bytes} to the start of the list
 * @param attributeFactory {@code non-null;} attribute factory to use
 */
public AttributeListParser(DirectClassFile cf, int context, int offset,
                           AttributeFactory attributeFactory) {
    if (cf == null) {
        throw new NullPointerException("cf == null");
    }

    if (attributeFactory == null) {
        throw new NullPointerException("attributeFactory == null");
    }

    int size = cf.getBytes().getUnsignedShort(offset);

    this.cf = cf;
    this.context = context;
    this.offset = offset;
    this.attributeFactory = attributeFactory;
    this.list = new StdAttributeList(size);
    this.endOffset = -1;
}
 

开发者ID:JLLK,
项目名称:multidex-maker,
代码行数:28,
代码来源:AttributeListParser.java

示例2: getList

点赞 1

import com.android.dx.cf.iface.StdAttributeList; //导入依赖的package包/类
/**
 * Gets the parsed list.
 *
 * @return {@code non-null;} the list
 */
public StdAttributeList getList() {
    parseIfNecessary();
    return list;
}
 

开发者ID:JLLK,
项目名称:multidex-maker,
代码行数:10,
代码来源:AttributeListParser.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)