C# 클래스 Yea.Reflection.Emit.BaseClasses.MethodBase

Method base class
상속: IMethodBuilder
파일 보기 프로젝트 열기: OxPatient/Rule-Engine

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
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

메소드 상세

Add() 공개 메소드

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

Assign() 공개 메소드

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

Box() 공개 메소드

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

Call() 공개 메소드

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
리턴 VariableBase

Call() 공개 메소드

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
리턴 void

Cast() 공개 메소드

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
리턴 VariableBase

Catch() 공개 메소드

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

CreateConstant() 공개 메소드

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

CreateLocal() 공개 메소드

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

Divide() 공개 메소드

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

EndIf() 공개 메소드

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

EndTry() 공개 메소드

Ends a try block
public EndTry ( ) : void
리턴 void

EndWhile() 공개 메소드

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

If() 공개 메소드

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
리턴 Yea.Reflection.Emit.Commands.If

MethodBase() 공개 메소드

Constructor
public MethodBase ( ) : System
리턴 System

Modulo() 공개 메소드

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

Multiply() 공개 메소드

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

NewObj() 공개 메소드

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

NewObj() 공개 메소드

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

Return() 공개 메소드

Returns from the method
public Return ( ) : void
리턴 void

Return() 공개 메소드

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

SetCurrentMethod() 공개 메소드

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

Subtract() 공개 메소드

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

Throw() 공개 메소드

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

Try() 공개 메소드

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

UnBox() 공개 메소드

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

While() 공개 메소드

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
리턴 Yea.Reflection.Emit.Commands.While