com.android.dx.cf.iface.StdAttributeList Java Examples

The following examples show how to use com.android.dx.cf.iface.StdAttributeList. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AttributeListParser.java    From Box with Apache License 2.0 6 votes vote down vote up
/**
 * 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;
}
 
Example #2
Source File: AttributeListParser.java    From Box with Apache License 2.0 6 votes vote down vote up
/**
 * 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;
}
 
Example #3
Source File: AttributeListParser.java    From J2ME-Loader with Apache License 2.0 6 votes vote down vote up
/**
 * 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;
}
 
Example #4
Source File: AttributeListParser.java    From buck with Apache License 2.0 6 votes vote down vote up
/**
 * 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;
}
 
Example #5
Source File: AttributeListParser.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Gets the parsed list.
 *
 * @return {@code non-null;} the list
 */
public StdAttributeList getList() {
    parseIfNecessary();
    return list;
}
 
Example #6
Source File: AttributeListParser.java    From Box with Apache License 2.0 2 votes vote down vote up
/**
 * Gets the parsed list.
 *
 * @return {@code non-null;} the list
 */
public StdAttributeList getList() {
    parseIfNecessary();
    return list;
}
 
Example #7
Source File: AttributeListParser.java    From J2ME-Loader with Apache License 2.0 2 votes vote down vote up
/**
 * Gets the parsed list.
 *
 * @return {@code non-null;} the list
 */
public StdAttributeList getList() {
    parseIfNecessary();
    return list;
}
 
Example #8
Source File: AttributeListParser.java    From buck with Apache License 2.0 2 votes vote down vote up
/**
 * Gets the parsed list.
 *
 * @return {@code non-null;} the list
 */
public StdAttributeList getList() {
    parseIfNecessary();
    return list;
}