Microsoft SDK for Java

IJavaEnumLINEINFO : IEnumLINEINFO

The IJavaEnumLINEINFO interface provides access to line number information. Line number information represents the mapping between Java source code line numbers and byte offsets in the method. This information is represented as an array of LINEINFO structures maintained for each method. The IJavaEnumLINEINFO interface derives from IEnumLINEINFO and adds one method.

  // Methods
  HRESULT Next(ULONG celt, LPLINEINFO rgelt[], ULONG *pceltFetched)
  HRESULT Skip(ULONG celt)
  HRESULT Reset(void)
  HRESULT Clone(IJavaEnumLINEINFO **ppEnum)
  HRESULT GetCount(ULONG *pcelt)
  HRESULT GetNext(LPLINEINFO *pli)

Remarks

The LINEINFO structure is defined as follows:

typedef struct lineinfo
{
  USHORT offPC;  // bytecode offset in method
  USHORT iLine;  // line number, first line is line 1
}
LINEINFO;

© 1999 Microsoft Corporation. All rights reserved. Terms of use.