Enum Class SymbolType
- All Implemented Interfaces:
Serializable,Comparable<SymbolType>,Constable
Enumeration of common types of symbols used in code objects.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInformative: code should be defined, but not necessarily the beginning of a function (symbol can be defined in the middle of a function)Data defined in another file.Routine defined in another file.File symbol.Forwarded function symbol.Function symbol.Similar toFUNCTIONbut with a degree of uncertainty: the symbol is likely to represent a routine, but it may not be.Symbol without a specific type.Object symbol.Pointer-to-function symbol.Pointer-to-object symbol.Pointer-to-variable symbol.Section symbol.Segment symbol.Unknown symbol type.Variable symbol. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisExtern()Determine whether this symbol type represents an external symbol.static SymbolTypeReturns the enum constant of this class with the specified name.static SymbolType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Unknown symbol type. -
NOTYPE
Symbol without a specific type. -
FILE
File symbol. -
SEGMENT
Segment symbol. -
SECTION
Section symbol. -
OBJECT
Object symbol. -
VARIABLE
Variable symbol. -
FUNCTION
Function symbol. -
PTROBJECT
Pointer-to-object symbol. -
PTRVARIABLE
Pointer-to-variable symbol. -
PTRFUNCTION
Pointer-to-function symbol. -
FORWARDED_FUNCTION
Forwarded function symbol. -
EXTERN_FUNCTION
Routine defined in another file. Used only in object files (files processed by linkers, e.g. relocatable ELF). -
EXTERN_DATA
Data defined in another file. Used only in object files (files processed by linkers, e.g. relocatable ELF). -
CODE
Informative: code should be defined, but not necessarily the beginning of a function (symbol can be defined in the middle of a function) -
FUNCTION_MAYBE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isExtern
public boolean isExtern()Determine whether this symbol type represents an external symbol.- Returns:
- true for external symbol types
-