Class LocalItem

java.lang.Object
com.android.dx.rop.code.LocalItem
All Implemented Interfaces:
Comparable<LocalItem>

public class LocalItem extends Object implements Comparable<LocalItem>
A local variable item: either a name or a signature or both.
  • Method Details

    • make

      public static LocalItem make(CstString name, CstString signature)
      Make a new item. If both name and signature are null, null is returned. TODO: intern these
      Parameters:
      name - null-ok; local variable name
      signature - null-ok; local variable signature
      Returns:
      non-null; appropriate instance.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(LocalItem local)
      Specified by:
      compareTo in interface Comparable<LocalItem>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getName

      public CstString getName()
      Gets name.
      Returns:
      null-ok; name
    • getSignature

      public CstString getSignature()
      Gets signature.
      Returns:
      null-ok; signature