FileDocCategorySizeDatePackage
TypeList.javaAPI DocAndroid 1.5 API2272Wed May 06 22:41:02 BST 2009com.android.dx.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 NullPointerException.

param
n >= 0, < size(); which element
return
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
>= 0; the required number of words

public booleanisMutable()
Returns whether this instance is mutable. Note that the 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
true if this instance is mutable or false if it is immutable

public intsize()
Gets the size of this list.

return
>= 0; the size

public com.android.dx.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 non-null; item to append
return
non-null; an appropriately-constructed instance