Package com.android.dx.cf.code
Class BootstrapMethodsList
java.lang.Object
com.android.dx.util.MutabilityControl
com.android.dx.util.FixedSizeList
com.android.dx.cf.code.BootstrapMethodsList
- All Implemented Interfaces:
ToHuman
List of bootstrap method entries, which are the contents of
BootstrapMethods
attributes.-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic BootstrapMethodsList
concat
(BootstrapMethodsList list1, BootstrapMethodsList list2) Returns an instance which is the concatenation of the two given instances.get
(int n) Gets the indicated item.void
set
(int n, BootstrapMethodsList.Item item) Sets the item at the given index.void
set
(int n, CstType declaringClass, CstMethodHandle bootstrapMethodHandle, BootstrapMethodArgumentsList arguments) Sets the item at the given index.Methods inherited from class com.android.dx.util.FixedSizeList
equals, get0, getOrNull0, hashCode, set0, shrinkToFit, size, toHuman, toHuman, toString, toString
Methods inherited from class com.android.dx.util.MutabilityControl
isImmutable, isMutable, setImmutable, throwIfImmutable, throwIfMutable
-
Field Details
-
EMPTY
non-null;
zero-size instance
-
-
Constructor Details
-
BootstrapMethodsList
public BootstrapMethodsList(int count) Constructs an instance.- Parameters:
count
- the number of elements to be in the list
-
-
Method Details
-
get
Gets the indicated item.- Parameters:
n
->= 0;
which item- Returns:
null-ok;
the indicated item
-
set
Sets the item at the given index.- Parameters:
n
->= 0, < size();
which elementitem
-non-null;
the item
-
set
public void set(int n, CstType declaringClass, CstMethodHandle bootstrapMethodHandle, BootstrapMethodArgumentsList arguments) Sets the item at the given index.- Parameters:
n
->= 0, < size();
which elementdeclaringClass
-non-null;
the class declaring bootstrap method.bootstrapMethodHandle
-non-null;
the bootstrap method handlearguments
-non-null;
the arguments of the bootstrap method
-
concat
Returns an instance which is the concatenation of the two given instances.- Parameters:
list1
-non-null;
first instancelist2
-non-null;
second instance- Returns:
non-null;
combined instance
-