public class Symbol extends Object implements IBinaryParser.ISymbol
| Modifier and Type | Field and Description |
|---|---|
protected BinaryObjectAdapter |
binary |
FUNCTION, VARIABLE| Constructor and Description |
|---|
Symbol(BinaryObjectAdapter binary,
String name,
int type,
IAddress addr,
long size) |
Symbol(BinaryObjectAdapter binary,
String name,
int type,
IAddress addr,
long size,
org.eclipse.core.runtime.IPath sourceFile,
int startLine,
int endLine) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object obj) |
IAddress |
getAddress()
Address of the symbol
|
IBinaryParser.IBinaryObject |
getBinaryObject()
Return the binary object this symbol is from.
|
int |
getEndLine()
End line number of the symbol in the source
|
org.eclipse.core.runtime.IPath |
getFilename()
Source filename of the symbol.
|
int |
getLineNumber(long offset)
Line number corresponding to the address offset.
|
String |
getName()
Name of the Symbol
|
long |
getSize()
Size of the symbol.
|
int |
getStartLine()
Start linenumber of the symbol in the source
|
int |
getType()
Type of the symbol
|
protected final BinaryObjectAdapter binary
public Symbol(BinaryObjectAdapter binary, String name, int type, IAddress addr, long size, org.eclipse.core.runtime.IPath sourceFile, int startLine, int endLine)
public Symbol(BinaryObjectAdapter binary, String name, int type, IAddress addr, long size)
public IBinaryParser.IBinaryObject getBinaryObject()
IBinaryParser.ISymbolgetBinaryObject in interface IBinaryParser.ISymbolpublic org.eclipse.core.runtime.IPath getFilename()
IBinaryParser.ISymbolgetFilename in interface IBinaryParser.ISymbolpublic String getName()
IBinaryParser.ISymbolgetName in interface IBinaryParser.ISymbolpublic int getType()
IBinaryParser.ISymbolgetType in interface IBinaryParser.ISymbolpublic IAddress getAddress()
IBinaryParser.ISymbolgetAddress in interface IBinaryParser.ISymbolpublic int getEndLine()
IBinaryParser.ISymbolgetEndLine in interface IBinaryParser.ISymbolpublic int getStartLine()
IBinaryParser.ISymbolgetStartLine in interface IBinaryParser.ISymbolpublic int getLineNumber(long offset)
IBinaryParser.ISymbolgetLineNumber in interface IBinaryParser.ISymbolpublic long getSize()
IBinaryParser.ISymbolgetSize in interface IBinaryParser.ISymbolpublic int compareTo(Object obj)
compareTo in interface Comparable<Object>Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.