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

Method base class
Inheritance: IMethodBuilder
Afficher le fichier Open project: OxPatient/Rule-Engine

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

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

Assign() public méthode

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

Box() public méthode

Boxes an object
public Box ( object value ) : VariableBase
value object Variable to box
Résultat VariableBase

Call() public méthode

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
Résultat VariableBase

Call() public méthode

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
Résultat void

Cast() public méthode

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
Résultat VariableBase

Catch() public méthode

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

CreateConstant() public méthode

Creates a constant
public CreateConstant ( object value ) : VariableBase
value object Constant value
Résultat VariableBase

CreateLocal() public méthode

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

Divide() public méthode

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

EndIf() public méthode

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

EndTry() public méthode

Ends a try block
public EndTry ( ) : void
Résultat void

EndWhile() public méthode

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

If() public méthode

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
Résultat Yea.Reflection.Emit.Commands.If

MethodBase() public méthode

Constructor
public MethodBase ( ) : System
Résultat System

Modulo() public méthode

Modulo operator
public Modulo ( object leftHandSide, object rightHandSide ) : VariableBase
leftHandSide object Left hand side
rightHandSide object Right hand side
Résultat VariableBase

Multiply() public méthode

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

NewObj() public méthode

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

NewObj() public méthode

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

Return() public méthode

Returns from the method
public Return ( ) : void
Résultat void

Return() public méthode

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

SetCurrentMethod() public méthode

Sets the current method to this
public SetCurrentMethod ( ) : void
Résultat void

Subtract() public méthode

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

Throw() public méthode

Throws an exception
public Throw ( VariableBase exception ) : void
exception VariableBase Exception to throw
Résultat void

Try() public méthode

Starts a try block
public Try ( ) : Try
Résultat Yea.Reflection.Emit.Commands.Try

UnBox() public méthode

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

While() public méthode

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
Résultat Yea.Reflection.Emit.Commands.While