org.bridj
Class NativeLibrary
java.lang.Object
org.bridj.NativeLibrary
public class NativeLibrary
- extends Object
Representation of a native shared library, with symbols retrieval / matching facilities.
This class is not meant to be used by end users, it's used by pluggable runtimes instead.
- Author:
- ochafik
NativeLibrary
protected NativeLibrary(String path,
long handle,
long symbols)
throws IOException
- Throws:
IOException
load
public static NativeLibrary load(String path)
throws IOException
- Throws:
IOException
finalize
protected void finalize()
throws Throwable
- Overrides:
finalize
in class Object
- Throws:
Throwable
release
public void release()
getSymbolPointer
public Pointer<?> getSymbolPointer(String name)
getSymbolAddress
public long getSymbolAddress(String name)
getSymbol
public Demangler.Symbol getSymbol(AnnotatedElement member)
throws FileNotFoundException
- Throws:
FileNotFoundException
isMSVC
public boolean isMSVC()
getFirstMatchingSymbol
public Demangler.Symbol getFirstMatchingSymbol(NativeLibrary.SymbolAccepter accepter)
getSymbols
public Collection<Demangler.Symbol> getSymbols()
getSymbolName
public String getSymbolName(long address)
getSymbol
public Demangler.Symbol getSymbol(long address)
getSymbol
public Demangler.Symbol getSymbol(String name)
parseSymbol
public Demangler.MemberRef parseSymbol(String symbol)
throws Demangler.DemanglingException
- Throws:
Demangler.DemanglingException
Copyright © 2009-2012. All Rights Reserved.