Interface IJavaSourceUnit
- All Superinterfaces:
IAddressableUnit,IEventSource,IInteractiveUnit,ISourceUnit,IUnit,IUnitCreator,IUserDataSupport
Definition of a source unit representing a Java class or Java method in the form of an Abstract
Syntax Tree (AST).
-
Method Summary
Modifier and TypeMethodDescriptionGet a reference to the Java class or method defined in this unit.Get the decompiler unit (possibly the parent, possibly null) that generated this unit.voidrecordIdentifierPositions(long objectId, ICodeCoordinates coordinates) Reserved for internal use.Methods inherited from interface com.pnfsoftware.jeb.core.units.IAddressableUnit
getAddressLabel, getAddressLabels, getAddressOfItem, getCanonicalAddress, getItemAtAddress, getItemObject, getRelatedItems, getWellKnownAddresses, isValidAddressMethods inherited from interface com.pnfsoftware.jeb.util.events.IEventSource
addListener, countListeners, getListeners, getParentSource, insertListener, notifyListeners, removeListener, setParentSourceMethods inherited from interface com.pnfsoftware.jeb.core.units.IInteractiveUnit
addressToLocation, canExecuteAction, executeAction, executeAction, getAddressActions, getCommentManager, getFullComment, getFullComments, getGlobalActions, getInlineComment, getInlineComments, getItemActions, getMetadataManager, locationToAddress, prepareExecution, setInlineCommentMethods inherited from interface com.pnfsoftware.jeb.core.units.code.ISourceUnit
getFileExtension, getFullyQualifiedName, getSource, getSourceDocumentMethods inherited from interface com.pnfsoftware.jeb.core.units.IUnit
addChild, addChild, canBePersisted, dispose, execprvfunc, generateQuickState, getChildren, getContributions, getCreationTimestamp, getDescription, getExtraInputs, getFormatter, getFormatType, getIconData, getInput, getInterpreters, getLock, getName, getNotes, getNotificationManager, getParent, getParentArtifact, getParentProject, getPropertyDefinitionManager, getPropertyManager, getRealName, getStatus, getUid, getUnitProcessor, initializePropertyObjects, isDisposed, isProcessed, isStale, isTransientChild, notifyGenericChange, postDeserialization, process, removeChild, setName, setNotes, setParent, setRealName, setUnitProcessorMethods inherited from interface com.pnfsoftware.jeb.core.IUserDataSupport
clearAllData, getAllData, getData, setData
-
Method Details
-
getDecompiler
IDexDecompilerUnit getDecompiler()Description copied from interface:ISourceUnitGet the decompiler unit (possibly the parent, possibly null) that generated this unit.- Specified by:
getDecompilerin interfaceISourceUnit- 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
Reserved for internal use.- Parameters:
objectId-coordinates-
-