Documentation ¶
Index ¶
- type Type
- type WeakFloat
- func (w *WeakFloat) Add(v WeakValue) WeakValue
- func (w *WeakFloat) AsBoolean() bool
- func (w *WeakFloat) AsFloat() float64
- func (w *WeakFloat) AsInteger() int64
- func (w *WeakFloat) AsString() string
- func (w *WeakFloat) AsUint() uint64
- func (w *WeakFloat) Binary(op opcode.Op, v WeakValue) WeakValue
- func (w *WeakFloat) EqualTo(v WeakValue) bool
- func (w *WeakFloat) IsNull() bool
- func (w *WeakFloat) String() string
- func (w *WeakFloat) Sub(v WeakValue) WeakValue
- func (w *WeakFloat) Type() Type
- func (w *WeakFloat) Unary(op opcode.Op) WeakValue
- type WeakInteger
- func (w *WeakInteger) Add(v WeakValue) WeakValue
- func (w *WeakInteger) AsBoolean() bool
- func (w *WeakInteger) AsFloat() float64
- func (w *WeakInteger) AsInteger() int64
- func (w *WeakInteger) AsString() string
- func (w *WeakInteger) AsUint() uint64
- func (w *WeakInteger) Binary(op opcode.Op, v WeakValue) WeakValue
- func (w *WeakInteger) EqualTo(v WeakValue) bool
- func (w *WeakInteger) IsNull() bool
- func (w *WeakInteger) String() string
- func (w *WeakInteger) Sub(v WeakValue) WeakValue
- func (w *WeakInteger) Type() Type
- func (w *WeakInteger) Unary(op opcode.Op) WeakValue
- type WeakNull
- func (w *WeakNull) Add(v WeakValue) WeakValue
- func (w *WeakNull) AsBoolean() bool
- func (w *WeakNull) AsFloat() float64
- func (w *WeakNull) AsInteger() int64
- func (w *WeakNull) AsString() string
- func (w *WeakNull) AsUint() uint64
- func (w *WeakNull) Binary(op opcode.Op, v WeakValue) WeakValue
- func (w *WeakNull) EqualTo(v WeakValue) bool
- func (w *WeakNull) IsNull() bool
- func (w *WeakNull) String() string
- func (w *WeakNull) Sub(v WeakValue) WeakValue
- func (w *WeakNull) Type() Type
- func (w *WeakNull) Unary(op opcode.Op) WeakValue
- type WeakString
- func (w *WeakString) Add(v WeakValue) WeakValue
- func (w *WeakString) AsBoolean() bool
- func (w *WeakString) AsFloat() float64
- func (w *WeakString) AsInteger() int64
- func (w *WeakString) AsString() string
- func (w *WeakString) AsUint() uint64
- func (w *WeakString) Binary(op opcode.Op, v WeakValue) WeakValue
- func (w *WeakString) EqualTo(v WeakValue) bool
- func (w *WeakString) IsNull() bool
- func (w *WeakString) String() string
- func (w *WeakString) Sub(v WeakValue) WeakValue
- func (w *WeakString) ToFloat() (float64, bool)
- func (w *WeakString) ToInteger() (int64, bool)
- func (w *WeakString) ToUint() (uint64, bool)
- func (w *WeakString) Type() Type
- func (w *WeakString) Unary(op opcode.Op) WeakValue
- type WeakUint
- func (w *WeakUint) Add(v WeakValue) WeakValue
- func (w *WeakUint) AsBoolean() bool
- func (w *WeakUint) AsFloat() float64
- func (w *WeakUint) AsInteger() int64
- func (w *WeakUint) AsString() string
- func (w *WeakUint) AsUint() uint64
- func (w *WeakUint) Binary(op opcode.Op, v WeakValue) WeakValue
- func (w *WeakUint) EqualTo(v WeakValue) bool
- func (w *WeakUint) IsNull() bool
- func (w *WeakUint) String() string
- func (w *WeakUint) Sub(v WeakValue) WeakValue
- func (w *WeakUint) Type() Type
- func (w *WeakUint) Unary(op opcode.Op) WeakValue
- type WeakValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WeakInteger ¶
type WeakInteger struct {
Value int64
}
WeakInteger represents integer value.
func (*WeakInteger) Add ¶
func (w *WeakInteger) Add(v WeakValue) WeakValue
func (*WeakInteger) AsBoolean ¶
func (w *WeakInteger) AsBoolean() bool
func (*WeakInteger) AsFloat ¶
func (w *WeakInteger) AsFloat() float64
func (*WeakInteger) AsInteger ¶
func (w *WeakInteger) AsInteger() int64
func (*WeakInteger) AsString ¶
func (w *WeakInteger) AsString() string
func (*WeakInteger) AsUint ¶
func (w *WeakInteger) AsUint() uint64
func (*WeakInteger) IsNull ¶
func (w *WeakInteger) IsNull() bool
func (*WeakInteger) String ¶
func (w *WeakInteger) String() string
String returns a string representation of the value.
func (*WeakInteger) Sub ¶
func (w *WeakInteger) Sub(v WeakValue) WeakValue
func (*WeakInteger) Type ¶
func (w *WeakInteger) Type() Type
type WeakString ¶
type WeakString struct {
Value string
}
func (*WeakString) Add ¶
func (w *WeakString) Add(v WeakValue) WeakValue
func (*WeakString) AsBoolean ¶
func (w *WeakString) AsBoolean() bool
func (*WeakString) AsFloat ¶
func (w *WeakString) AsFloat() float64
func (*WeakString) AsInteger ¶
func (w *WeakString) AsInteger() int64
func (*WeakString) AsString ¶
func (w *WeakString) AsString() string
func (*WeakString) AsUint ¶
func (w *WeakString) AsUint() uint64
func (*WeakString) EqualTo ¶
func (w *WeakString) EqualTo(v WeakValue) bool
func (*WeakString) IsNull ¶
func (w *WeakString) IsNull() bool
func (*WeakString) String ¶
func (w *WeakString) String() string
func (*WeakString) Sub ¶
func (w *WeakString) Sub(v WeakValue) WeakValue
func (*WeakString) ToFloat ¶
func (w *WeakString) ToFloat() (float64, bool)
func (*WeakString) ToInteger ¶
func (w *WeakString) ToInteger() (int64, bool)
func (*WeakString) ToUint ¶
func (w *WeakString) ToUint() (uint64, bool)
func (*WeakString) Type ¶
func (w *WeakString) Type() Type
type WeakValue ¶
type WeakValue interface { Type() Type EqualTo(WeakValue) bool String() string IsNull() bool AsBoolean() bool AsInteger() int64 AsUint() uint64 AsFloat() float64 AsString() string Unary(opcode.Op) WeakValue Binary(opcode.Op, WeakValue) WeakValue Add(WeakValue) WeakValue Sub(WeakValue) WeakValue }
WeakValue is a value of weak type
Source Files ¶
Click to show internal directories.
Click to hide internal directories.