C# Класс GlueViewOfficialPlugins.Scripting.ScriptParsingPlugin

Наследование: GlueView.Plugin.GlueViewPlugin
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AddErrorText void
ApplyAssignmentLine bool
ApplyConditionalBlocks bool
ApplyEventResponseSave void
ApplyLine void
ApplyMethodCall void
AssignValue void
CombineLines string
GetLeftAndRightOfEquals void
GetMethodLines string[]
GetTypeFromReflection void
HandleAfterVariableSet void
HandleResolutionChange void
HandleResolutionChange void
HandleUpdate void
IsStateVariable bool
LineIsIfStatement bool
OnBeforeVariableSet void
OnDebugButtonClick void
OnElementLoaded void
RemoveThisDot string
SaveFieldsAndPropertiesForType void
TryAssignIAssignableReference bool

Открытые методы

Метод Описание
ApplyAssignment ( CodeContext codeContext, string leftOfEquals, string rightOfEquals, string newVariableDeclarationType, AssignmentOperatorType assignmentOperator ) : bool
ApplyAssignment ( VariableInitializer variableInitializer, VariableDeclarationStatement vds, CodeContext codeContext ) : bool
ApplyLines ( string script, CodeContext codeContext = null ) : void
ApplyLinesInternal ( string lines, int startingIndex, int count, IElement element, CodeContext codeContext, string fileName = null, bool addStackVariables = true, bool removeStackVariables = true ) : bool

CreateCustomVariableFor ( string newVariableDeclarationType, string leftOfEquals, string rightOfEquals, ElementRuntime elementRuntime, CodeContext codeContext ) : CustomVariable
GetNumberOfLinesInRegularStatement ( string allLines, int index ) : int
GetTypeStringForValue ( string leftOfEquals, ElementRuntime elementRuntime, CodeContext codeContext, Type &runtimeType ) : string
ShutDown ( FlatRedBall shutDownReason ) : bool
StartUp ( ) : void
StartUpForTests ( ) : void

Приватные методы

Метод Описание
AddErrorText ( string text ) : void
ApplyAssignmentLine ( AssignmentExpression expression, CodeContext codeContext ) : bool
ApplyConditionalBlocks ( string allLines, IElement element, CodeContext codeContext, string fileName, int &index ) : bool
ApplyEventResponseSave ( ElementRuntime elementRuntime, EventResponseSave ers ) : void
ApplyLine ( string line, CodeContext codeContext, string allLines, string fileName, int &index ) : void
ApplyMethodCall ( string line, CodeContext codeContext ) : void
AssignValue ( string newVariableDeclarationType, string leftOfEquals, string rightOfEquals, CodeContext codeContext, AssignmentOperatorType assignOperator ) : void
CombineLines ( string allLines, int index, int numberOfLinesInStatement ) : string
GetLeftAndRightOfEquals ( string line, string &leftOfEquals, string &rightOfEquals ) : void
GetMethodLines ( IElement element, EventResponseSave ers, string projectDirectory ) : string[]
GetTypeFromReflection ( string leftSideRaw, Type &runtimeType, Type containerType ) : void
HandleAfterVariableSet ( object sender, VariableSetArgs e ) : void
HandleResolutionChange ( ) : void
HandleResolutionChange ( ElementRuntime elementRuntime ) : void
HandleUpdate ( object sender, EventArgs args ) : void
IsStateVariable ( string value, ElementRuntime elementRuntime ) : bool
LineIsIfStatement ( string line ) : bool
OnBeforeVariableSet ( object sender, VariableSetArgs e ) : void
OnDebugButtonClick ( object sender, EventArgs e ) : void
OnElementLoaded ( object sender, EventArgs e ) : void
RemoveThisDot ( string value ) : string
SaveFieldsAndPropertiesForType ( Type type ) : void
TryAssignIAssignableReference ( AssignmentOperatorType assignOperator, CustomVariable customVariable, object reference ) : bool

Описание методов

ApplyAssignment() публичный Метод

public ApplyAssignment ( CodeContext codeContext, string leftOfEquals, string rightOfEquals, string newVariableDeclarationType, AssignmentOperatorType assignmentOperator ) : bool
codeContext GlueView.Scripting.CodeContext
leftOfEquals string
rightOfEquals string
newVariableDeclarationType string
assignmentOperator AssignmentOperatorType
Результат bool

ApplyAssignment() публичный Метод

public ApplyAssignment ( VariableInitializer variableInitializer, VariableDeclarationStatement vds, CodeContext codeContext ) : bool
variableInitializer VariableInitializer
vds VariableDeclarationStatement
codeContext GlueView.Scripting.CodeContext
Результат bool

ApplyLines() публичный Метод

public ApplyLines ( string script, CodeContext codeContext = null ) : void
script string
codeContext GlueView.Scripting.CodeContext
Результат void

ApplyLinesInternal() публичный Метод

public ApplyLinesInternal ( string lines, int startingIndex, int count, IElement element, CodeContext codeContext, string fileName = null, bool addStackVariables = true, bool removeStackVariables = true ) : bool
lines string
startingIndex int
count int
element IElement
codeContext GlueView.Scripting.CodeContext
fileName string
addStackVariables bool
removeStackVariables bool
Результат bool

CreateCustomVariableFor() публичный Метод

public CreateCustomVariableFor ( string newVariableDeclarationType, string leftOfEquals, string rightOfEquals, ElementRuntime elementRuntime, CodeContext codeContext ) : CustomVariable
newVariableDeclarationType string
leftOfEquals string
rightOfEquals string
elementRuntime FlatRedBall.Glue.ElementRuntime
codeContext GlueView.Scripting.CodeContext
Результат FlatRedBall.Glue.SaveClasses.CustomVariable

GetNumberOfLinesInRegularStatement() публичный Метод

public GetNumberOfLinesInRegularStatement ( string allLines, int index ) : int
allLines string
index int
Результат int

GetTypeStringForValue() публичный Метод

public GetTypeStringForValue ( string leftOfEquals, ElementRuntime elementRuntime, CodeContext codeContext, Type &runtimeType ) : string
leftOfEquals string
elementRuntime FlatRedBall.Glue.ElementRuntime
codeContext GlueView.Scripting.CodeContext
runtimeType System.Type
Результат string

ShutDown() публичный Метод

public ShutDown ( FlatRedBall shutDownReason ) : bool
shutDownReason FlatRedBall
Результат bool

StartUp() публичный Метод

public StartUp ( ) : void
Результат void

StartUpForTests() публичный Метод

public StartUpForTests ( ) : void
Результат void