valueOf
Creates a ElfPType from a string
The input string might be in one of the following formats:
The name of the enum value.
The hexadecimal representation of the enum value, prefixed with "0x".
Return
the enum value
Parameters
name
the name of the enum value, or the text representation
Throws
neither a known enum value nor a valid hexadecimal number