Java Code Examples for com.android.dx.cf.code.LineNumberList#isMutable()

The following examples show how to use com.android.dx.cf.code.LineNumberList#isMutable() . 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: AttLineNumberTable.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 *
 * @param lineNumbers {@code non-null;} list of line number entries
 */
public AttLineNumberTable(LineNumberList lineNumbers) {
    super(ATTRIBUTE_NAME);

    try {
        if (lineNumbers.isMutable()) {
            throw new MutabilityException("lineNumbers.isMutable()");
        }
    } catch (NullPointerException ex) {
        // Translate the exception.
        throw new NullPointerException("lineNumbers == null");
    }

    this.lineNumbers = lineNumbers;
}
 
Example 2
Source File: AttLineNumberTable.java    From Box with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 *
 * @param lineNumbers {@code non-null;} list of line number entries
 */
public AttLineNumberTable(LineNumberList lineNumbers) {
    super(ATTRIBUTE_NAME);

    try {
        if (lineNumbers.isMutable()) {
            throw new MutabilityException("lineNumbers.isMutable()");
        }
    } catch (NullPointerException ex) {
        // Translate the exception.
        throw new NullPointerException("lineNumbers == null");
    }

    this.lineNumbers = lineNumbers;
}
 
Example 3
Source File: AttLineNumberTable.java    From J2ME-Loader with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 *
 * @param lineNumbers {@code non-null;} list of line number entries
 */
public AttLineNumberTable(LineNumberList lineNumbers) {
    super(ATTRIBUTE_NAME);

    try {
        if (lineNumbers.isMutable()) {
            throw new MutabilityException("lineNumbers.isMutable()");
        }
    } catch (NullPointerException ex) {
        // Translate the exception.
        throw new NullPointerException("lineNumbers == null");
    }

    this.lineNumbers = lineNumbers;
}
 
Example 4
Source File: AttLineNumberTable.java    From buck with Apache License 2.0 5 votes vote down vote up
/**
 * Constructs an instance.
 *
 * @param lineNumbers {@code non-null;} list of line number entries
 */
public AttLineNumberTable(LineNumberList lineNumbers) {
    super(ATTRIBUTE_NAME);

    try {
        if (lineNumbers.isMutable()) {
            throw new MutabilityException("lineNumbers.isMutable()");
        }
    } catch (NullPointerException ex) {
        // Translate the exception.
        throw new NullPointerException("lineNumbers == null");
    }

    this.lineNumbers = lineNumbers;
}