FunctionAddressResolver, DynamicLookupHelper
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| protected static boolean | |
| protected static String | |
| protected static int | |
| private static final String | |
| private static final int | |
| private final FunctionAddressResolver |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private final Field | |
| private final Field | |
| private final String | |
| public long | getAddressFor(final String functionName)
This is a convenience method to query the native function handle by name. |
| private static final PrintStream | |
| public final Set | |
| public void | initEntry(final String name, final DynamicLookupHelper lookup)
Initializes the mapping for a single function. |
| private final boolean | |
| public final boolean | isFunctionAvailable(final String functionName)
Returns true only if non null function pointer to this function exists. |
| protected boolean | isFunctionAvailableImpl(final String functionName)
This is a convenience method to query the native function existence by name. |
| public void | |
| private final void | |
| private final Map | |
| public final String |
| DEBUG | back to summary |
|---|---|
| protected static boolean DEBUG | |
| DEBUG_PREFIX | back to summary |
|---|---|
| protected static String DEBUG_PREFIX | |
| debugNum | back to summary |
|---|---|
| protected static int debugNum | |
| PROCADDRESS_VAR_PREFIX | back to summary |
|---|---|
| private static final String PROCADDRESS_VAR_PREFIX | |
| PROCADDRESS_VAR_PREFIX_LEN | back to summary |
|---|---|
| private static final int PROCADDRESS_VAR_PREFIX_LEN | |
| resolver | back to summary |
|---|---|
| private final FunctionAddressResolver resolver | |
| ProcAddressTable | back to summary |
|---|---|
| public ProcAddressTable() | |
| ProcAddressTable | back to summary |
|---|---|
| public ProcAddressTable(final FunctionAddressResolver resolver) | |
| fieldForFunction | back to summary |
|---|---|
| private final Field fieldForFunction(final String name) throws IllegalArgumentException | |
| fieldForFunctionInSec | back to summary |
|---|---|
| private final Field fieldForFunctionInSec(final String name) throws IllegalArgumentException Warning Returns an accessible probably protected field!
Caller should have checked link permissions
for all libraries, i.e. for | |
| fieldToFunctionName | back to summary |
|---|---|
| private final String fieldToFunctionName(final String addressFieldName) | |
| getAddressFor | back to summary |
|---|---|
| public long getAddressFor(final String functionName) throws SecurityException, IllegalArgumentException This is a convenience method to query the native function handle by name.
It lets you avoid having to
manually compute the "
If a
| |
| getDebugOutStream | back to summary |
|---|---|
| private static final PrintStream getDebugOutStream() | |
| getNullPointerFunctions | back to summary |
|---|---|
| public final Set Returns all functions pointing to null. | |
| initEntry | back to summary |
|---|---|
| public void initEntry(final String name, final DynamicLookupHelper lookup) throws SecurityException, IllegalArgumentException Initializes the mapping for a single function.
If a
| |
| isAddressField | back to summary |
|---|---|
| private final boolean isAddressField(final String fieldName) | |
| isFunctionAvailable | back to summary |
|---|---|
| public final boolean isFunctionAvailable(final String functionName) Returns true only if non null function pointer to this function exists. | |
| isFunctionAvailableImpl | back to summary |
|---|---|
| protected boolean isFunctionAvailableImpl(final String functionName) throws IllegalArgumentException This is a convenience method to query the native function existence by name.
It lets you avoid having to
manually compute the "
| |
| reset | back to summary |
|---|---|
| public void reset(final DynamicLookupHelper lookup) throws SecurityException, RuntimeException Resets the complete table.
If a
| |
| setEntry | back to summary |
|---|---|
| private final void setEntry(final Field addressField, final String funcName, final DynamicLookupHelper lookup) throws SecurityException | |
| toMap | back to summary |
|---|---|
| private final Map Returns this table as map with the function name as key and the address as value. | |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public long | resolve(final String name, final DynamicLookupHelper lookup)
Implements com. |
| One2OneResolver | back to summary |
|---|---|
| private One2OneResolver() | |
| resolve | back to summary |
|---|---|
| public long resolve(final String name, final DynamicLookupHelper lookup) throws SecurityException Implements com. Doc from com. Resolves the name of the function bound to the method and returns the address.
Implementation shall ensure
| |