Documentation
¶
Index ¶
- type ClassObject
- type Frame
- type FuncObject
- func (f *FuncObject) GetFunction() *symbol.Func
- func (f *FuncObject) GetReferenceVariable() *symbol.Variable
- func (o FuncObject) GetValue(variable *symbol.Variable) interface{}
- func (f *FuncObject) SetReferenceVariable(variable *symbol.Variable)
- func (f *FuncObject) SetValue(variable *symbol.Variable, value interface{})
- func (o FuncObject) String() string
- type Object
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClassObject ¶ added in v0.0.6
type ClassObject struct {
// contains filtered or unexported fields
}
func NewClassObject ¶ added in v0.0.6
func NewClassObject(class *symbol.Class) *ClassObject
func (*ClassObject) AllField ¶ added in v0.0.6
func (c *ClassObject) AllField() map[*symbol.Variable]interface{}
func (*ClassObject) GetObject ¶ added in v0.0.8
func (c *ClassObject) GetObject() Object
func (*ClassObject) SetValue ¶ added in v0.0.6
func (c *ClassObject) SetValue(variable *symbol.Variable, value interface{})
type Frame ¶
type Frame struct {
// contains filtered or unexported fields
}
func NewBlockScopeFrame ¶
func NewClassStackFrame ¶ added in v0.0.6
func NewClassStackFrame(classObject *ClassObject) *Frame
func NewObjectStackFrame ¶
func NewObjectStackFrame(object *FuncObject) *Frame
func (*Frame) ContainsVariable ¶ added in v0.0.6
ContainsVariable 当前栈帧中是否包含某个变量的数据
type FuncObject ¶
type FuncObject struct {
// contains filtered or unexported fields
}
func NewFuncObject ¶
func NewFuncObject(function *symbol.Func) *FuncObject
func (*FuncObject) GetFunction ¶
func (f *FuncObject) GetFunction() *symbol.Func
func (*FuncObject) GetReferenceVariable ¶ added in v0.0.6
func (f *FuncObject) GetReferenceVariable() *symbol.Variable
func (*FuncObject) SetReferenceVariable ¶ added in v0.0.6
func (f *FuncObject) SetReferenceVariable(variable *symbol.Variable)
func (*FuncObject) SetValue ¶
func (f *FuncObject) SetValue(variable *symbol.Variable, value interface{})
type Object ¶
type Object interface { GetValue(variable *symbol.Variable) interface{} SetValue(variable *symbol.Variable, value interface{}) String() string }
Object 变量对象,可以获取和保存变量的值
func NewEmptyObject ¶
func NewEmptyObject() Object
func NewVariableObject ¶
func NewVariableObject() Object
Click to show internal directories.
Click to hide internal directories.