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.ISymbol
getBinaryObject
in interface IBinaryParser.ISymbol
public org.eclipse.core.runtime.IPath getFilename()
IBinaryParser.ISymbol
getFilename
in interface IBinaryParser.ISymbol
public String getName()
IBinaryParser.ISymbol
getName
in interface IBinaryParser.ISymbol
public int getType()
IBinaryParser.ISymbol
getType
in interface IBinaryParser.ISymbol
public IAddress getAddress()
IBinaryParser.ISymbol
getAddress
in interface IBinaryParser.ISymbol
public int getEndLine()
IBinaryParser.ISymbol
getEndLine
in interface IBinaryParser.ISymbol
public int getStartLine()
IBinaryParser.ISymbol
getStartLine
in interface IBinaryParser.ISymbol
public int getLineNumber(long offset)
IBinaryParser.ISymbol
getLineNumber
in interface IBinaryParser.ISymbol
public long getSize()
IBinaryParser.ISymbol
getSize
in interface IBinaryParser.ISymbol
public int compareTo(Object obj)
compareTo
in interface Comparable<Object>
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.