| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.core.units.code.CodeUtil |
Utility routines for code units.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CodeUtil() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| static List<ICodeClass> |
collectClasses(ICodeUnit unit, boolean internal, boolean topLevel, Pattern addressFilter)
Collect classes.
| ||||||||||
| static List<ICodeMethod> |
collectMethods(ICodeUnit unit, boolean internal, boolean topLevel, Pattern addressFilter)
Collect methods.
| ||||||||||
| static IAddressableDigraphBuilder | createCallgraphBuilder(ICodeUnit unit) | ||||||||||
| static String | findCodeItemReference(ICodeUnit unit, ICodeItem item, int pos) | ||||||||||
| static ICodeField |
getFieldByName(ICodeUnit unit, String partialName, boolean failIfAmbiguous)
Get a field by name.
| ||||||||||
| static ICodeMethod |
getMethodByName(ICodeUnit unit, String partialName, boolean failIfAmbiguous)
Get a method/routine by name.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Collect classes.
| internal | true to collect internal classes only |
|---|---|
| topLevel | true to collect non-inner classes only |
| addressFilter | optional filter on getAddress() |
Collect methods.
| internal | true to collect internal methods only |
|---|---|
| topLevel | true to collect orphaned methods only (not belonging to any class) |
| addressFilter | optional filter on getAddress() |
Get a field by name.
Get a method/routine by name.