Package ghidra.program.model.symbol
Enum SourceType
- java.lang.Object
- 
- java.lang.Enum<SourceType>
- 
- ghidra.program.model.symbol.SourceType
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<SourceType>
 
 public enum SourceType extends java.lang.Enum<SourceType> 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description ANALYSISThe object's source indicator for an auto analysis.DEFAULTThe object's source indicator for a default.IMPORTEDThe object's source indicator for an imported.USER_DEFINEDThe object's source indicator for a user defined.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDisplayString()Returns a user-friendly stringbooleanisHigherPriorityThan(SourceType source)Determines if this source type is a higher priority than the one being passed to this method as a parameter.booleanisLowerPriorityThan(SourceType source)Determines if this source type is a lower priority than the one being passed to this method as a parameter.static SourceTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SourceType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
ANALYSISpublic static final SourceType ANALYSIS The object's source indicator for an auto analysis.
 - 
USER_DEFINEDpublic static final SourceType USER_DEFINED The object's source indicator for a user defined.
 - 
DEFAULTpublic static final SourceType DEFAULT The object's source indicator for a default.
 - 
IMPORTEDpublic static final SourceType IMPORTED The object's source indicator for an imported.
 
- 
 - 
Method Detail- 
valuespublic static SourceType[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SourceType c : SourceType.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static SourceType valueOf(java.lang.String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
- java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
- java.lang.NullPointerException- if the argument is null
 
 - 
getDisplayStringpublic java.lang.String getDisplayString() Returns a user-friendly string
 - 
isHigherPriorityThanpublic boolean isHigherPriorityThan(SourceType source) Determines if this source type is a higher priority than the one being passed to this method as a parameter. USER_DEFINED objects are higher priority than IMPORTED objects which are higher priority than ANALYSIS objects which are higher priority than DEFAULT objects.- Parameters:
- source- the source type whose priority is to be compared with this one's.
- Returns:
- true if this source type is a higher priority. false if this source type is the same priority or lower priority.
 
 - 
isLowerPriorityThanpublic boolean isLowerPriorityThan(SourceType source) Determines if this source type is a lower priority than the one being passed to this method as a parameter. DEFAULT objects are lower priority than ANALYSIS objects which are lower priority than IMPORTED objects which are lower priority than USER_DEFINED objects.- Parameters:
- source- the source type whose priority is to be compared with this one's.
- Returns:
- true if this source type is a lower priority. false if this source type is the same priority or higher priority.
 
 
- 
 
-