Documentation
¶
Index ¶
- func GetMapping(t target.Target, v imappedconstant.IMappedConstant) string
- func IsDefined(valueType ibyteconstant.IByteConstant, value byte) bool
- func ParseByteConstant(value byte, valueType ibyteconstant.IByteConstant) ibyteconstant.IByteConstant
- func ParseNumericConstant(valueType inumericconstant.INumericConstant, value int) inumericconstant.INumericConstant
- func ParseStringConstant(valueType istringconstant.IStringConstant, value string) istringconstant.IStringConstant
- type ReverseByteEnumMap
- type ReverseIntEnumMap
- type ReverseStringEnumMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMapping ¶ added in v1.1.2
func GetMapping(t target.Target, v imappedconstant.IMappedConstant) string
func IsDefined ¶
func IsDefined(valueType ibyteconstant.IByteConstant, value byte) bool
func ParseByteConstant ¶
func ParseByteConstant(value byte, valueType ibyteconstant.IByteConstant) ibyteconstant.IByteConstant
func ParseNumericConstant ¶
func ParseNumericConstant(valueType inumericconstant.INumericConstant, value int) inumericconstant.INumericConstant
func ParseStringConstant ¶
func ParseStringConstant(valueType istringconstant.IStringConstant, value string) istringconstant.IStringConstant
Types ¶
type ReverseByteEnumMap ¶
type ReverseByteEnumMap struct {
Map map[byte]ibyteconstant.IByteConstant
}
func NewReverseByteEnumMap ¶
func NewReverseByteEnumMap(valueType ibyteconstant.IByteConstant) *ReverseByteEnumMap
func (*ReverseByteEnumMap) Get ¶
func (mapper *ReverseByteEnumMap) Get(value byte) ibyteconstant.IByteConstant
type ReverseIntEnumMap ¶
type ReverseIntEnumMap struct {
Map map[int]inumericconstant.INumericConstant
}
func NewReverseIntEnumMap ¶
func NewReverseIntEnumMap(valueType inumericconstant.INumericConstant) *ReverseIntEnumMap
func (*ReverseIntEnumMap) Get ¶
func (mapper *ReverseIntEnumMap) Get(value int) inumericconstant.INumericConstant
type ReverseStringEnumMap ¶
type ReverseStringEnumMap struct {
Map map[string]istringconstant.IStringConstant
}
func NewReverseStringEnumMap ¶
func NewReverseStringEnumMap(valueType istringconstant.IStringConstant) *ReverseStringEnumMap
func (*ReverseStringEnumMap) Get ¶
func (mapper *ReverseStringEnumMap) Get(value string) istringconstant.IStringConstant
Click to show internal directories.
Click to hide internal directories.