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
Fields inherited from interface org.eclipse.cdt.core.IBinaryParser.ISymbol
FUNCTION, VARIABLE
-
Constructor Summary
ConstructorDescriptionSymbol
(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 TypeMethodDescriptionint
Address of the symbolReturn the binary object this symbol is from.int
End line number of the symbol in the sourceorg.eclipse.core.runtime.IPath
Source filename of the symbol.int
getLineNumber
(long offset) Line number corresponding to the address offset.getName()
Name of the Symbollong
getSize()
Size of the symbol.int
Start linenumber of the symbol in the sourceint
getType()
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.ISymbol
Return the binary object this symbol is from.- Specified by:
getBinaryObject
in interfaceIBinaryParser.ISymbol
-
getFilename
public org.eclipse.core.runtime.IPath getFilename()Description copied from interface:IBinaryParser.ISymbol
Source filename of the symbol.- Specified by:
getFilename
in interfaceIBinaryParser.ISymbol
-
getName
Description copied from interface:IBinaryParser.ISymbol
Name of the Symbol- Specified by:
getName
in interfaceIBinaryParser.ISymbol
-
getType
public int getType()Description copied from interface:IBinaryParser.ISymbol
Type of the symbol- Specified by:
getType
in interfaceIBinaryParser.ISymbol
-
getAddress
Description copied from interface:IBinaryParser.ISymbol
Address of the symbol- Specified by:
getAddress
in interfaceIBinaryParser.ISymbol
-
getEndLine
public int getEndLine()Description copied from interface:IBinaryParser.ISymbol
End line number of the symbol in the source- Specified by:
getEndLine
in interfaceIBinaryParser.ISymbol
-
getStartLine
public int getStartLine()Description copied from interface:IBinaryParser.ISymbol
Start linenumber of the symbol in the source- Specified by:
getStartLine
in interfaceIBinaryParser.ISymbol
-
getLineNumber
public int getLineNumber(long offset) Description copied from interface:IBinaryParser.ISymbol
Line number corresponding to the address offset.- Specified by:
getLineNumber
in interfaceIBinaryParser.ISymbol
- Parameters:
offset
-
-
getSize
public long getSize()Description copied from interface:IBinaryParser.ISymbol
Size of the symbol.- Specified by:
getSize
in interfaceIBinaryParser.ISymbol
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Object>
-