2017-01-23 02:33:43 +02:00
|
|
|
package jsoniter
|
|
|
|
|
|
|
|
type invalidAny struct {
|
2017-01-23 18:23:07 +02:00
|
|
|
baseAny
|
2017-01-23 02:33:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
func (any *invalidAny) LastError() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (any *invalidAny) ToBool() bool {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
func (any *invalidAny) ToInt() int {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (any *invalidAny) ToInt32() int32 {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (any *invalidAny) ToInt64() int64 {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (any *invalidAny) ToFloat32() float32 {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (any *invalidAny) ToFloat64() float64 {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (any *invalidAny) ToString() string {
|
|
|
|
return ""
|
|
|
|
}
|
2017-01-23 18:23:07 +02:00
|
|
|
|
2017-01-26 08:56:31 +02:00
|
|
|
func (any *invalidAny) WriteTo(stream *Stream) {
|
|
|
|
}
|
|
|
|
|
2017-01-23 18:23:07 +02:00
|
|
|
func (any *invalidAny) Get(path ...interface{}) Any {
|
|
|
|
return any
|
|
|
|
}
|
2017-01-26 09:40:38 +02:00
|
|
|
|
|
|
|
func (any *invalidAny) Parse() *Iterator {
|
|
|
|
return nil
|
|
|
|
}
|
2017-01-26 09:44:10 +02:00
|
|
|
|
|
|
|
func (any *invalidAny) GetInterface() interface{} {
|
|
|
|
return nil
|
|
|
|
}
|