Class CompilerType
java.lang.Object
com.pnfsoftware.jeb.util.base.DynamicEnum<CompilerType>
com.pnfsoftware.jeb.core.units.codeobject.CompilerType
Dynamic enumeration of common compiler types.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNumber of built-in compiler types.static final CompilerTypeGCC, genericprotected static LinkedHashMap<String, CompilerType> Registered compiler types.static final CompilerTypeMicrosoft Visual Studio, genericstatic final CompilerTypeunknown compilerFields inherited from class com.pnfsoftware.jeb.util.base.DynamicEnum
id, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcount()Get number of registered compiler types.intordinal()Get this entry's current ordinal in its dynamic enum.static CompilerTypeRegister a compiler type.static booleanunregister(String name) Unregister a dynamic compiler type.static CompilerTypevalueOf(int id) Retrieve a compiler type by id.static CompilerTypeRetrieve a compiler type by name.static Collection<CompilerType> values()Get registered compiler types.Methods inherited from class com.pnfsoftware.jeb.util.base.DynamicEnum
equals, hashCode, id, isBuiltin, isCompatibleWith, name, ordinal, register, toString, unregister, valueOf, valueOf, values, verifyAvailability
-
Field Details
-
map
Registered compiler types. -
UNKNOWN
unknown compiler -
GCC
GCC, generic -
MSVC
Microsoft Visual Studio, generic -
builtinCount
public static final int builtinCountNumber of built-in compiler types.
-
-
Constructor Details
-
CompilerType
-
-
Method Details
-
ordinal
public int ordinal()Description copied from class:DynamicEnumGet this entry's current ordinal in its dynamic enum.- Specified by:
ordinalin classDynamicEnum<CompilerType>- Returns:
- current ordinal of this entry
-
count
public static int count()Get number of registered compiler types.- Returns:
- number of registered compiler types
-
values
Get registered compiler types.- Returns:
- registered compiler types
-
valueOf
Retrieve a compiler type by name.- Parameters:
name- compiler type name- Returns:
- matching compiler type, or
UNKNOWN
-
valueOf
Retrieve a compiler type by id.- Parameters:
id- compiler type id- Returns:
- matching compiler type, or
UNKNOWN
-
register
Register a compiler type.- Parameters:
id- compiler type idname- compiler type name- Returns:
- registered compiler type
-
unregister
Unregister a dynamic compiler type.- Parameters:
name- compiler type name- Returns:
- true if the type was unregistered
-