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:
GNUPESymbol64,GNUSymbol,SomSymbol,XCoffSymbol
-
Field Summary
FieldsFields inherited from interface org.eclipse.cdt.core.IBinaryParser.ISymbol
FUNCTION, VARIABLE -
Constructor Summary
ConstructorsConstructorDescriptionSymbol(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
Modifier and TypeMethodDescriptionintAddress of the symbolReturn the binary object this symbol is from.intEnd line number of the symbol in the sourceorg.eclipse.core.runtime.IPathSource filename of the symbol.intgetLineNumber(long offset) Line number corresponding to the address offset.getName()Name of the SymbollonggetSize()Size of the symbol.intStart linenumber of the symbol in the sourceintgetType()Type of the symbol
-
Field Details
-
binary
-
-
Constructor Details
-
Symbol
public Symbol(BinaryObjectAdapter binary, String name, int type, IAddress addr, long size, org.eclipse.core.runtime.IPath sourceFile, int startLine, int endLine) -
Symbol
-
-
Method Details
-
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
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
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- Parameters:
offset-
-
getSize
public long getSize()Description copied from interface:IBinaryParser.ISymbolSize of the symbol.- Specified by:
getSizein interfaceIBinaryParser.ISymbol
-
compareTo
- Specified by:
compareToin interfaceComparable<Object>
-