프로퍼티 | 타입 | 설명 | |
---|---|---|---|
DeclareVariable | DeclaredVariable | ||
GenerateDeclarations | void | ||
GenerateScopeCreation | void | ||
GenerateScopeDestruction | void | ||
GetDeclaredVariable | DeclaredVariable | ||
HasDeclaredVariable | bool | ||
RemovedDeclaredVariable | void |
메소드 | 설명 | |
---|---|---|
Delete ( string variableName ) : bool |
Deletes the variable from the scope.
|
|
GetValue ( string variableName ) : object |
Returns the value of the given variable.
|
|
HasValue ( string variableName ) : bool |
Returns
|
|
SetValue ( string variableName, object value ) : void |
Sets the value of the given variable.
|
메소드 | 설명 | |
---|---|---|
Scope ( |
Creates a new Scope instance.
|
|
Scope ( |
Creates a new Scope instance.
|
메소드 | 설명 | |
---|---|---|
DeclareVariable ( string name, Jurassic.Compiler.Expression valueAtTopOfScope = null, bool writable = true, bool deletable = false ) : DeclaredVariable |
Declares a variable or function in this scope. This will be initialized with the value of the given expression.
|
|
GenerateDeclarations ( |
Generates code that initializes the variable and function declarations.
|
|
GenerateScopeCreation ( |
Generates code that creates a new scope.
|
|
GenerateScopeDestruction ( |
Generates code that restores the parent scope as the active scope.
|
|
GetDeclaredVariable ( string variableName ) : DeclaredVariable |
Gets the index of the given variable.
|
|
HasDeclaredVariable ( string name ) : bool |
Returns
|
|
RemovedDeclaredVariable ( string name ) : void |
Removes a declared variable from the scope.
|
public abstract Delete ( string variableName ) : bool | ||
variableName | string | The name of the variable. |
리턴 | bool |
public abstract GetValue ( string variableName ) : object | ||
variableName | string | The name of the variable. |
리턴 | object |
public abstract HasValue ( string variableName ) : bool | ||
variableName | string | The name of the variable to check. |
리턴 | bool |
protected Scope ( |
||
parentScope | A reference to the parent scope, or |
|
리턴 | System |
protected Scope ( |
||
parentScope | A reference to the parent scope, or |
|
declaredVariableCount | int | The number of variables declared in this scope. |
리턴 | System |
public abstract SetValue ( string variableName, object value ) : void | ||
variableName | string | The name of the variable. |
value | object | The new value of the variable. |
리턴 | void |