| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.core.units.code.asm.type.TypeLibraryService |
Currently, one TLS per JEB engines context.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | GROUPID_TYPELIB_LINUX | ||||||||||
| int | GROUPID_TYPELIB_POSIX | ||||||||||
| int | GROUPID_TYPELIB_TEST | ||||||||||
| int | GROUPID_TYPELIB_WIN32 | ||||||||||
| String | TYPELIB_FILE_EXTENSION | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
TypeLibraryService()
Create a new TLS.
| |||||||||||
|
TypeLibraryService(File folder)
Create a new TLS with an initial folder.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
addFolder(File folder, boolean doRescan)
Add a typelib folder to this TLS.
| ||||||||||
| INativeMethodItem |
findRoutineByName(String name, ProcessorType procType, int groupId)
Find a routine by simple name in the currently loaded typelibs.
| ||||||||||
| INativeMethodItem |
findRoutineByName(String name, ProcessorType procType)
Convenience method.
| ||||||||||
| INativeType |
findTypeBySignature(String signature, ProcessorType procType, int optionalGroupId)
Find a type by signature in the currently loaded typelibs.
| ||||||||||
| INativeType |
findTypeBySignature(String signature, ProcessorType procType)
Convenience method.
| ||||||||||
| List<TypeLibraryEntry> |
getAvailables()
Get the list of available type libraries.
| ||||||||||
| List<ITypeLibrary> | getByName(String name) | ||||||||||
| List<ITypeLibrary> |
getLoadedTypeLibraries()
Get the list of loaded type libraries.
| ||||||||||
| static String | groupIdToName(int id) | ||||||||||
| boolean |
load(ProcessorType processorType, int groupId)
Attempt to load a given type library (by ID) for a given processor type.
| ||||||||||
| boolean |
load(TypeLibraryEntry entry)
Load the provided type library into this TLS.
| ||||||||||
| boolean | loadExternal(ITypeLibrary typelib) | ||||||||||
| void |
rescan()
Rescan the type library folders to register/unregister additional/removed typelib binary
files.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Create a new TLS. At least one folder must be added using addFolder(File, boolean).
Create a new TLS with an initial folder. The folder will be scanned.
Add a typelib folder to this TLS.
| doRescan | if true, rescan() will be invoked after the folder addition
|
|---|
Find a routine by simple name in the currently loaded typelibs. Convenience routine.
| name | routine name |
|---|---|
| procType | mandatory |
| groupId | optional (0 if none/unknown) |
Convenience method.
| name | routine name |
|---|---|
| procType | mandatory |
Find a type by signature in the currently loaded typelibs. Convenience routine.
Convenience method.
| procType | mandatory |
|---|
Get the list of available type libraries. An available typelib is not necessarily loaded.
Refer to TypeLibraryEntry for additional details about the state of a given typelib.
Get the list of loaded type libraries. More type libraries may be available, eg non-loaded ones.
Attempt to load a given type library (by ID) for a given processor type.
Rescan the type library folders to register/unregister additional/removed typelib binary files.