FileDocCategorySizeDatePackage
TypeList.javaAPI DocAndroid 5.1 API2285Thu Mar 12 22:18:30 GMT 2015com.android.dexgen.rop.type

TypeList

public interface TypeList
List of {@link Type} instances (or of things that contain types).

Fields Summary
Constructors Summary
Methods Summary
public TypegetType(int n)
Gets the indicated element. It is an error to call this with the index for an element which was never set; if you do that, this will throw {@code NullPointerException}.

param
n {@code >= 0, < size();} which element
return
{@code non-null;} the indicated element

public intgetWordCount()
Gets the number of 32-bit words required to hold instances of all the elements of this list. This is a sum of the widths (categories) of all the elements.

return
{@code >= 0;} the required number of words

public booleanisMutable()
Returns whether this instance is mutable. Note that the {@code TypeList} interface itself doesn't provide any means of mutation, but that doesn't mean that there isn't an extra-interface way of mutating an instance.

return
{@code true} if this instance is mutable or {@code false} if it is immutable

public intsize()
Gets the size of this list.

return
{@code >= 0;} the size

public com.android.dexgen.rop.type.TypeListwithAddedType(Type type)
Returns a new instance which is identical to this one, except that the given item is appended to the end and it is guaranteed to be immutable.

param
type {@code non-null;} item to append
return
{@code non-null;} an appropriately-constructed instance