C# Class GlueViewOfficialPlugins.Scripting.ScriptParsingPlugin

Inheritance: GlueView.Plugin.GlueViewPlugin
Mostrar archivo Open project: vchelaru/FlatRedBall Class Usage Examples

Private Properties

Property Type Description
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

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

ApplyAssignment() public method

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
return bool

ApplyAssignment() public method

public ApplyAssignment ( VariableInitializer variableInitializer, VariableDeclarationStatement vds, CodeContext codeContext ) : bool
variableInitializer VariableInitializer
vds VariableDeclarationStatement
codeContext GlueView.Scripting.CodeContext
return bool

ApplyLines() public method

public ApplyLines ( string script, CodeContext codeContext = null ) : void
script string
codeContext GlueView.Scripting.CodeContext
return void

ApplyLinesInternal() public method

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
return bool

CreateCustomVariableFor() public method

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
return FlatRedBall.Glue.SaveClasses.CustomVariable

GetNumberOfLinesInRegularStatement() public method

public GetNumberOfLinesInRegularStatement ( string allLines, int index ) : int
allLines string
index int
return int

GetTypeStringForValue() public method

public GetTypeStringForValue ( string leftOfEquals, ElementRuntime elementRuntime, CodeContext codeContext, Type &runtimeType ) : string
leftOfEquals string
elementRuntime FlatRedBall.Glue.ElementRuntime
codeContext GlueView.Scripting.CodeContext
runtimeType System.Type
return string

ShutDown() public method

public ShutDown ( FlatRedBall shutDownReason ) : bool
shutDownReason FlatRedBall
return bool

StartUp() public method

public StartUp ( ) : void
return void

StartUpForTests() public method

public StartUpForTests ( ) : void
return void