com.android.dx.cf.attrib
Class InnerClassList

java.lang.Object
  extended by com.android.dx.util.MutabilityControl
      extended by com.android.dx.util.FixedSizeList
          extended by com.android.dx.cf.attrib.InnerClassList
All Implemented Interfaces:
ToHuman

public final class InnerClassList
extends FixedSizeList

List of "inner class" entries, which are the contents of InnerClasses attributes.


Nested Class Summary
static class InnerClassList.Item
          Item in an inner classes list.
 
Constructor Summary
InnerClassList(int count)
          Constructs an instance.
 
Method Summary
 InnerClassList.Item get(int n)
          Gets the indicated item.
 void set(int n, CstType innerClass, CstType outerClass, CstString innerName, int accessFlags)
          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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InnerClassList

public InnerClassList(int count)
Constructs an instance.

Parameters:
count - the number of elements to be in the list of inner classes
Method Detail

get

public InnerClassList.Item get(int n)
Gets the indicated item.

Parameters:
n - >= 0; which item
Returns:
null-ok; the indicated item

set

public void set(int n,
                CstType innerClass,
                CstType outerClass,
                CstString innerName,
                int accessFlags)
Sets the item at the given index.

Parameters:
n - >= 0, < size(); which class
innerClass - non-null; class this item refers to
outerClass - null-ok; outer class that this class is a member of, if any
innerName - null-ok; original simple name of this class, if not anonymous
accessFlags - original declared access flags


Copyright © 2015. All rights reserved.