Package org.eclipse.cdt.utils
Class Symbol
- java.lang.Object
-
- org.eclipse.cdt.utils.Symbol
-
- All Implemented Interfaces:
Comparable<Object>,IBinaryParser.ISymbol
- Direct Known Subclasses:
GNUSymbol,SomSymbol,XCoffSymbol
public class Symbol extends Object implements IBinaryParser.ISymbol
-
-
Field Summary
Fields Modifier and Type Field Description protected BinaryObjectAdapterbinary-
Fields inherited from interface org.eclipse.cdt.core.IBinaryParser.ISymbol
FUNCTION, VARIABLE
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object obj)IAddressgetAddress()Address of the symbolIBinaryParser.IBinaryObjectgetBinaryObject()Return the binary object this symbol is from.intgetEndLine()End line number of the symbol in the sourceorg.eclipse.core.runtime.IPathgetFilename()Source filename of the symbol.intgetLineNumber(long offset)Line number corresponding to the address offset.StringgetName()Name of the SymbollonggetSize()Size of the symbol.intgetStartLine()Start linenumber of the symbol in the sourceintgetType()Type of the symbol
-
-
-
Field Detail
-
binary
protected final BinaryObjectAdapter binary
-
-
Constructor Detail
-
Symbol
public Symbol(BinaryObjectAdapter binary, String name, int type, IAddress addr, long size, org.eclipse.core.runtime.IPath sourceFile, int startLine, int endLine)
-
Symbol
public Symbol(BinaryObjectAdapter binary, String name, int type, IAddress addr, long size)
-
-
Method Detail
-
getBinaryObject
public IBinaryParser.IBinaryObject getBinaryObject()
Description copied from interface:IBinaryParser.ISymbolReturn the binary object this symbol is from.- Specified by:
getBinaryObjectin interfaceIBinaryParser.ISymbol
-
getFilename
public org.eclipse.core.runtime.IPath getFilename()
Description copied from interface:IBinaryParser.ISymbolSource filename of the symbol.- Specified by:
getFilenamein interfaceIBinaryParser.ISymbol
-
getName
public String getName()
Description copied from interface:IBinaryParser.ISymbolName of the Symbol- Specified by:
getNamein interfaceIBinaryParser.ISymbol
-
getType
public int getType()
Description copied from interface:IBinaryParser.ISymbolType of the symbol- Specified by:
getTypein interfaceIBinaryParser.ISymbol
-
getAddress
public IAddress getAddress()
Description copied from interface:IBinaryParser.ISymbolAddress of the symbol- Specified by:
getAddressin interfaceIBinaryParser.ISymbol
-
getEndLine
public int getEndLine()
Description copied from interface:IBinaryParser.ISymbolEnd line number of the symbol in the source- Specified by:
getEndLinein interfaceIBinaryParser.ISymbol
-
getStartLine
public int getStartLine()
Description copied from interface:IBinaryParser.ISymbolStart linenumber of the symbol in the source- Specified by:
getStartLinein interfaceIBinaryParser.ISymbol
-
getLineNumber
public int getLineNumber(long offset)
Description copied from interface:IBinaryParser.ISymbolLine number corresponding to the address offset.- Specified by:
getLineNumberin interfaceIBinaryParser.ISymbol
-
getSize
public long getSize()
Description copied from interface:IBinaryParser.ISymbolSize of the symbol.- Specified by:
getSizein interfaceIBinaryParser.ISymbol
-
compareTo
public int compareTo(Object obj)
- Specified by:
compareToin interfaceComparable<Object>
-
-