public interface

IJavaSourceUnit

implements ISourceUnit
com.pnfsoftware.jeb.core.units.code.java.IJavaSourceUnit

Class Overview

Definition of a source unit representing a Java class or Java method in the form of an Abstract Syntax Tree (AST).

Summary

Public Methods
abstract IJavaElement getASTElement()
Get a reference to the Java class or method defined in this unit.
abstract IJavaClass getClassElement()
This method is deprecated. use getASTElement() instead
abstract IDexDecompilerUnit getDecompiler()
Get the decompiler unit (possibly the parent, possibly null) that generated this unit.
abstract IDexItem getDexItem()
abstract IJavaElementFactory getFactories()
This method is deprecated. an AST element factory can be retrieved from the getHighLevelContext()
abstract String getIdentifierName(IJavaIdentifier ident)
This method is deprecated. use getIdentifierName(IJavaIdentifier) instead
abstract int optimize()
This method is deprecated. an AST element factory can be retrieved from the getHighLevelContext()
abstract void recordIdentifierPositions(long objectId, ICodeCoordinates coordinates)
Reserved for internal use.
abstract boolean setIdentifierName(IJavaIdentifier ident, String name)
This method is deprecated. use setIdentifierName(IJavaIdentifier, String) instead
[Expand]
Inherited Methods
From interface com.pnfsoftware.jeb.core.IUnitCreator
From interface com.pnfsoftware.jeb.core.IUserDataSupport
From interface com.pnfsoftware.jeb.core.units.IAddressableUnit
From interface com.pnfsoftware.jeb.core.units.IInteractiveUnit
From interface com.pnfsoftware.jeb.core.units.IUnit
From interface com.pnfsoftware.jeb.core.units.code.ISourceUnit
From interface com.pnfsoftware.jeb.util.events.IEventSource

Public Methods

public abstract IJavaElement getASTElement ()

Get a reference to the Java class or method defined in this unit.

public abstract IJavaClass getClassElement ()

This method is deprecated.
use getASTElement() instead

public abstract IDexDecompilerUnit getDecompiler ()

Get the decompiler unit (possibly the parent, possibly null) that generated this unit.

Returns
  • a decompiler unit, possibly null

public abstract IDexItem getDexItem ()

public abstract IJavaElementFactory getFactories ()

This method is deprecated.
an AST element factory can be retrieved from the getHighLevelContext()

public abstract String getIdentifierName (IJavaIdentifier ident)

This method is deprecated.
use getIdentifierName(IJavaIdentifier) instead

public abstract int optimize ()

This method is deprecated.
an AST element factory can be retrieved from the getHighLevelContext()

public abstract void recordIdentifierPositions (long objectId, ICodeCoordinates coordinates)

Reserved for internal use.

public abstract boolean setIdentifierName (IJavaIdentifier ident, String name)

This method is deprecated.
use setIdentifierName(IJavaIdentifier, String) instead