org.apache.commons.compress.harmony.pack200

## Class CPMethodOrField

- java.lang.Object
- - org.apache.commons.compress.harmony.pack200.ConstantPoolEntry
  - - org.apache.commons.compress.harmony.pack200.CPMethodOrField

- All Implemented Interfaces:
    Comparable

      public class CPMethodOrField
      extends ConstantPoolEntry
      implements Comparable

  Constant pool entry for a method or field.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CPMethodOrField(CPClass className, CPNameAndType nameAndType)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compareTo(Object obj)`
    `int` | `getClassIndex()`
    `CPClass` | `getClassName()`
    `CPNameAndType` | `getDesc()`
    `int` | `getDescIndex()`
    `int` | `getIndexInClass()`
    `int` | `getIndexInClassForConstructor()`
    `void` | `setIndexInClass(int index)`
    `void` | `setIndexInClassForConstructor(int index)`
    `String` | `toString()`

    - ### Methods inherited from class org.apache.commons.compress.harmony.pack200.ConstantPoolEntry

      `getIndex, setIndex`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### CPMethodOrField

          public CPMethodOrField(CPClass className,
                                 CPNameAndType nameAndType)

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### compareTo

          public int compareTo(Object obj)

      Specified by:
        `compareTo` in interface `Comparable`

    - #### getClassIndex

          public int getClassIndex()

    - #### getClassName

          public CPClass getClassName()

    - #### getDescIndex

          public int getDescIndex()

    - #### getDesc

          public CPNameAndType getDesc()

    - #### getIndexInClass

          public int getIndexInClass()

    - #### setIndexInClass

          public void setIndexInClass(int index)

    - #### getIndexInClassForConstructor

          public int getIndexInClassForConstructor()

    - #### setIndexInClassForConstructor

          public void setIndexInClassForConstructor(int index)

Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.