Class ProvidesInfo

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.util.ClassFileStruct
org.aspectj.org.eclipse.jdt.internal.core.util.ProvidesInfo
All Implemented Interfaces:
IProvidesInfo

public class ProvidesInfo extends ClassFileStruct implements IProvidesInfo
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProvidesInfo(byte[] classFileBytes, IConstantPool constantPool, int offset)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int[]
    Answer back the array of implementation indices.
    char[][]
    Answer back the array of implementation names.
    int
    Answer back the number of implementations.
    int
    Answer back the provides index.
    char[]
    Answer back the service class/interface

    Methods inherited from class ClassFileStruct

    doubleAt, floatAt, i1At, i2At, i4At, i8At, u1At, u2At, u4At, utf8At
    Modifier and Type
    Method
    Description
    protected double
    doubleAt(byte[] reference, int relativeOffset, int structOffset)
     
    protected float
    floatAt(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    i1At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    i2At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    i4At(byte[] reference, int relativeOffset, int structOffset)
     
    protected long
    i8At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    u1At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    u2At(byte[] reference, int relativeOffset, int structOffset)
     
    protected int
    u4At(byte[] reference, int relativeOffset, int structOffset)
    Returns an 32 bit integer created of 4 bytes.
    protected char[]
    utf8At(byte[] reference, int relativeOffset, int structOffset, int bytesAvailable)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getIndex

      public int getIndex()
      Description copied from interface: IProvidesInfo
      Answer back the provides index.
      Specified by:
      getIndex in interface IProvidesInfo
      Returns:
      the provides index
    • getServiceName

      public char[] getServiceName()
      Description copied from interface: IProvidesInfo
      Answer back the service class/interface
      Specified by:
      getServiceName in interface IProvidesInfo
      Returns:
      the service class/interface
    • getImplementationsCount

      public int getImplementationsCount()
      Description copied from interface: IProvidesInfo
      Answer back the number of implementations.
      Specified by:
      getImplementationsCount in interface IProvidesInfo
      Returns:
      the number of implementations.
    • getImplementationIndices

      public int[] getImplementationIndices()
      Description copied from interface: IProvidesInfo
      Answer back the array of implementation indices.
      Specified by:
      getImplementationIndices in interface IProvidesInfo
      Returns:
      the array of implementation indices.
    • getImplementationNames

      public char[][] getImplementationNames()
      Description copied from interface: IProvidesInfo
      Answer back the array of implementation names.
      Specified by:
      getImplementationNames in interface IProvidesInfo
      Returns:
      the array of implementation names.