Interface IJavaSourceUnit

All Superinterfaces:
IAddressableUnit, IEventSource, IInteractiveUnit, ISourceUnit, IUnit, IUnitCreator, IUserDataSupport

@Ser public interface IJavaSourceUnit extends ISourceUnit
Definition of a source unit representing a Java class or Java method in the form of an Abstract Syntax Tree (AST).
  • Method Details

    • getDecompiler

      IDexDecompilerUnit getDecompiler()
      Description copied from interface: ISourceUnit
      Get the decompiler unit (possibly the parent, possibly null) that generated this unit.
      Specified by:
      getDecompiler in interface ISourceUnit
      Returns:
      a decompiler unit, possibly null
    • getDexItem

      IDexItem getDexItem()
      Returns:
    • getASTElement

      IJavaElement getASTElement()
      Get a reference to the Java class or method defined in this unit.
    • recordIdentifierPositions

      void recordIdentifierPositions(long objectId, ICodeCoordinates coordinates)
      Reserved for internal use.
      Parameters:
      objectId -
      coordinates -