C# Class Yea.Reflection.Emit.BaseClasses.MethodBase

Method base class
Inheritance: IMethodBuilder
Datei anzeigen Open project: OxPatient/Rule-Engine

Private Properties

Property Type Description

Public Methods

Method Description
Add ( object leftHandSide, object rightHandSide ) : VariableBase

Adds two objects

Assign ( VariableBase leftHandSide, object value ) : void

Assigns a value to a variable

Box ( object value ) : VariableBase

Boxes an object

Call ( VariableBase objectCallingOn, MethodInfo methodCalling, object parameters ) : VariableBase

Calls a method

Call ( VariableBase objectCallingOn, ConstructorInfo methodCalling, object parameters ) : void

Calls a constructor

Cast ( VariableBase value, Type valueType ) : VariableBase

Casts an object as a specific type

Catch ( Type exceptionType ) : Catch

Starts a catch block

CreateConstant ( object value ) : VariableBase

Creates a constant

CreateLocal ( string name, Type localType ) : VariableBase

Creates a local variable

Divide ( object leftHandSide, object rightHandSide ) : VariableBase

Divides two objects

EndIf ( If ifCommand ) : void

Ends an if statement

EndTry ( ) : void

Ends a try block

EndWhile ( While whileCommand ) : void

Ends a while statement

If ( VariableBase leftHandSide, Comparison comparisonType, VariableBase rightHandSide ) : If

Creates an if statement

MethodBase ( ) : System

Constructor

Modulo ( object leftHandSide, object rightHandSide ) : VariableBase

Modulo operator

Multiply ( object leftHandSide, object rightHandSide ) : VariableBase

Multiply two objects

NewObj ( ConstructorInfo constructor, object variables = null ) : VariableBase

Creates a new object

NewObj ( Type objectType, object variables = null ) : VariableBase

Creates a new object

Return ( ) : void

Returns from the method

Return ( object returnValue ) : void

Returns a value back from the method

SetCurrentMethod ( ) : void

Sets the current method to this

Subtract ( object leftHandSide, object rightHandSide ) : VariableBase

Subtracts two objects

Throw ( VariableBase exception ) : void

Throws an exception

Try ( ) : Try

Starts a try block

UnBox ( VariableBase value, Type valueType ) : VariableBase

Unboxes an object

While ( VariableBase leftHandSide, Comparison comparisonType, VariableBase rightHandSide ) : While

Creates a while statement

Method Details

Add() public method

Adds two objects
public Add ( object leftHandSide, object rightHandSide ) : VariableBase
leftHandSide object Left hand side
rightHandSide object Right hand side
return VariableBase

Assign() public method

Assigns a value to a variable
public Assign ( VariableBase leftHandSide, object value ) : void
leftHandSide VariableBase Variable to assign to
value object Value to assign
return void

Box() public method

Boxes an object
public Box ( object value ) : VariableBase
value object Variable to box
return VariableBase

Call() public method

Calls a method
public Call ( VariableBase objectCallingOn, MethodInfo methodCalling, object parameters ) : VariableBase
objectCallingOn VariableBase Object to call the method on
methodCalling System.Reflection.MethodInfo Method to call
parameters object parameters to use
return VariableBase

Call() public method

Calls a constructor
public Call ( VariableBase objectCallingOn, ConstructorInfo methodCalling, object parameters ) : void
objectCallingOn VariableBase Object to call the constructor on
methodCalling System.Reflection.ConstructorInfo Constructor to call
parameters object parameters to use
return void

Cast() public method

Casts an object as a specific type
public Cast ( VariableBase value, Type valueType ) : VariableBase
value VariableBase Value to cast
valueType System.Type Type to cast to
return VariableBase

Catch() public method

Starts a catch block
public Catch ( Type exceptionType ) : Catch
exceptionType System.Type Exception type to catch
return Yea.Reflection.Emit.Commands.Catch

CreateConstant() public method

Creates a constant
public CreateConstant ( object value ) : VariableBase
value object Constant value
return VariableBase

CreateLocal() public method

Creates a local variable
public CreateLocal ( string name, Type localType ) : VariableBase
name string name of the local
localType System.Type Object type
return VariableBase

Divide() public method

Divides two objects
public Divide ( object leftHandSide, object rightHandSide ) : VariableBase
leftHandSide object Left hand side
rightHandSide object Right hand side
return VariableBase

EndIf() public method

Ends an if statement
public EndIf ( If ifCommand ) : void
ifCommand Yea.Reflection.Emit.Commands.If If command to end
return void

EndTry() public method

Ends a try block
public EndTry ( ) : void
return void

EndWhile() public method

Ends a while statement
public EndWhile ( While whileCommand ) : void
whileCommand Yea.Reflection.Emit.Commands.While While statement to end
return void

If() public method

Creates an if statement
public If ( VariableBase leftHandSide, Comparison comparisonType, VariableBase rightHandSide ) : If
leftHandSide VariableBase Left hand side variable
comparisonType Comparison Comparison type
rightHandSide VariableBase Right hand side variable
return Yea.Reflection.Emit.Commands.If

MethodBase() public method

Constructor
public MethodBase ( ) : System
return System

Modulo() public method

Modulo operator
public Modulo ( object leftHandSide, object rightHandSide ) : VariableBase
leftHandSide object Left hand side
rightHandSide object Right hand side
return VariableBase

Multiply() public method

Multiply two objects
public Multiply ( object leftHandSide, object rightHandSide ) : VariableBase
leftHandSide object Left hand side
rightHandSide object Right hand side
return VariableBase

NewObj() public method

Creates a new object
public NewObj ( ConstructorInfo constructor, object variables = null ) : VariableBase
constructor System.Reflection.ConstructorInfo Constructor to use
variables object Variables to use
return VariableBase

NewObj() public method

Creates a new object
public NewObj ( Type objectType, object variables = null ) : VariableBase
objectType System.Type Object type
variables object Variables to use
return VariableBase

Return() public method

Returns from the method
public Return ( ) : void
return void

Return() public method

Returns a value back from the method
public Return ( object returnValue ) : void
returnValue object Value to return
return void

SetCurrentMethod() public method

Sets the current method to this
public SetCurrentMethod ( ) : void
return void

Subtract() public method

Subtracts two objects
public Subtract ( object leftHandSide, object rightHandSide ) : VariableBase
leftHandSide object Left hand side
rightHandSide object Right hand side
return VariableBase

Throw() public method

Throws an exception
public Throw ( VariableBase exception ) : void
exception VariableBase Exception to throw
return void

Try() public method

Starts a try block
public Try ( ) : Try
return Yea.Reflection.Emit.Commands.Try

UnBox() public method

Unboxes an object
public UnBox ( VariableBase value, Type valueType ) : VariableBase
value VariableBase Value to unbox
valueType System.Type Type to unbox to
return VariableBase

While() public method

Creates a while statement
public While ( VariableBase leftHandSide, Comparison comparisonType, VariableBase rightHandSide ) : While
leftHandSide VariableBase Left hand side variable
comparisonType Comparison Comparison type
rightHandSide VariableBase Right hand side variable
return Yea.Reflection.Emit.Commands.While