C# Class TriAxis.RunSharp.Operand

Mostrar archivo Open project: AqlaSolutions/runsharp Class Usage Examples

Protected Properties

Property Type Description
EmptyArray TriAxis.RunSharp.Operand[]

Public Methods

Method Description
Add ( Operand value ) : Operand
ArrayLength ( ) : Operand
As ( Type type ) : Operand
Assign ( Operand value ) : Assignment
Assign ( Operand value, bool allowExplicitConversion ) : Assignment
AssignAdd ( Operand value ) : IStatement
AssignAnd ( Operand value ) : IStatement
AssignDivide ( Operand value ) : IStatement
AssignLeftShift ( Operand value ) : IStatement
AssignModulus ( Operand value ) : IStatement
AssignMultiply ( Operand value ) : IStatement
AssignRightShift ( Operand value ) : IStatement
AssignSubtract ( Operand value ) : IStatement
AssignXor ( Operand value ) : IStatement
BitwiseAnd ( Operand value ) : Operand
BitwiseOr ( Operand value ) : Operand
Cast ( Type type ) : Operand
Conditional ( Operand ifTrue, Operand ifFalse ) : Operand
Decrement ( ) : IStatement
Divide ( Operand value ) : Operand
Eq ( Operand value ) : Operand
Equals ( object obj ) : bool
Field ( string name, ITypeMapper typeMapper ) : ContextualOperand
FromObject ( object operandOrLiteral ) : Operand
Ge ( Operand value ) : Operand
GetHashCode ( ) : int
GetReturnType ( ITypeMapper typeMapper ) : Type
Gt ( Operand value ) : Operand
Increment ( ) : IStatement
Invoke ( MethodInfo method, ITypeMapper typeMapper ) : ContextualOperand
Invoke ( string name, ITypeMapper typeMapper ) : ContextualOperand
InvokeDelegate ( ITypeMapper typeMapper ) : ContextualOperand
InvokeEquals ( Operand right, ITypeMapper typeMapper ) : ContextualOperand
InvokeGetHashCode ( ITypeMapper typeMapper ) : ContextualOperand
InvokeGetType ( ITypeMapper typeMapper ) : ContextualOperand
InvokeReferenceEquals ( Operand right, ITypeMapper typeMapper ) : ContextualOperand
InvokeToString ( ITypeMapper typeMapper ) : ContextualOperand
Is ( Type type ) : Operand
IsFalse ( ) : Operand
IsTrue ( ) : Operand
Le ( Operand value ) : Operand
LeftShift ( Operand value ) : Operand
LogicalAnd ( Operand other ) : Operand
LogicalNot ( ) : Operand
LogicalOr ( Operand other ) : Operand
LongArrayLength ( ) : Operand
Lt ( Operand value ) : Operand
Modulus ( Operand value ) : Operand
Multiply ( Operand value ) : Operand
Ne ( Operand value ) : Operand
Negate ( ) : Operand
OnesComplement ( ) : Operand
Plus ( ) : Operand
PostDecrement ( ) : Operand
PostIncrement ( ) : Operand
Pow2 ( ) : Operand
PreDecrement ( ) : Operand
PreIncrement ( ) : Operand
Property ( string name, ITypeMapper typeMapper ) : ContextualOperand
Ref ( ) : Operand
RightShift ( Operand value ) : Operand
SetNotLeaked ( ) : Operand

Set not leaked for this and *all used operands recursively*. Returns itself.

Usage:
var asStream = ag.ExpressionFactory.New(typeof(MemoryStream)).Cast(typeof(Stream)).SetNotLeaked(false)();

Subtract ( Operand value ) : Operand
Xor ( Operand value ) : Operand
operator ( ) : Operand

Protected Methods

Method Description
AssignmentHint ( Operand op ) : void
EmitAddressOf ( CodeGen g ) : void
EmitBranch ( CodeGen g, OptionalLabel labelTrue, OptionalLabel labelFalse ) : void
EmitGet ( CodeGen g ) : void
EmitGetHelper ( CodeGen g, Operand op, Type desiredType, bool allowExplicitConversion ) : void
EmitSet ( CodeGen g, Operand value, bool allowExplicitConversion ) : void
GetBindingFlags ( ) : IKVM.Reflection.BindingFlags
GetILGenerator ( CodeGen g ) : ILGenerator
GetType ( Operand op, ITypeMapper typeMapper ) : Type
GetTypes ( Operand ops, ITypeMapper typeMapper ) : Type[]
Operand ( ) : System

Private Methods

Method Description
AssignOr ( Operand value ) : IStatement
EmitRef ( CodeGen g ) : void
ResetLeakedStateRecursively ( ) : void
SetLeakedStateRecursively ( ) : void
operator ( ) : bool
this ( ITypeMapper typeMapper ) : ContextualOperand

Method Details

Add() public method

public Add ( Operand value ) : Operand
value Operand
return Operand

ArrayLength() public method

public ArrayLength ( ) : Operand
return Operand

As() public method

public As ( Type type ) : Operand
type IKVM.Reflection.Type
return Operand

Assign() public method

public Assign ( Operand value ) : Assignment
value Operand
return Assignment

Assign() public method

public Assign ( Operand value, bool allowExplicitConversion ) : Assignment
value Operand
allowExplicitConversion bool
return Assignment

AssignAdd() public method

public AssignAdd ( Operand value ) : IStatement
value Operand
return IStatement

AssignAnd() public method

public AssignAnd ( Operand value ) : IStatement
value Operand
return IStatement

AssignDivide() public method

public AssignDivide ( Operand value ) : IStatement
value Operand
return IStatement

AssignLeftShift() public method

public AssignLeftShift ( Operand value ) : IStatement
value Operand
return IStatement

AssignModulus() public method

public AssignModulus ( Operand value ) : IStatement
value Operand
return IStatement

AssignMultiply() public method

public AssignMultiply ( Operand value ) : IStatement
value Operand
return IStatement

AssignRightShift() public method

public AssignRightShift ( Operand value ) : IStatement
value Operand
return IStatement

AssignSubtract() public method

public AssignSubtract ( Operand value ) : IStatement
value Operand
return IStatement

AssignXor() public method

public AssignXor ( Operand value ) : IStatement
value Operand
return IStatement

AssignmentHint() protected method

protected AssignmentHint ( Operand op ) : void
op Operand
return void

BitwiseAnd() public method

public BitwiseAnd ( Operand value ) : Operand
value Operand
return Operand

BitwiseOr() public method

public BitwiseOr ( Operand value ) : Operand
value Operand
return Operand

Cast() public method

public Cast ( Type type ) : Operand
type IKVM.Reflection.Type
return Operand

Conditional() public method

public Conditional ( Operand ifTrue, Operand ifFalse ) : Operand
ifTrue Operand
ifFalse Operand
return Operand

Decrement() public method

public Decrement ( ) : IStatement
return IStatement

Divide() public method

public Divide ( Operand value ) : Operand
value Operand
return Operand

EmitAddressOf() protected method

protected EmitAddressOf ( CodeGen g ) : void
g CodeGen
return void

EmitBranch() protected method

protected EmitBranch ( CodeGen g, OptionalLabel labelTrue, OptionalLabel labelFalse ) : void
g CodeGen
labelTrue OptionalLabel
labelFalse OptionalLabel
return void

EmitGet() protected method

protected EmitGet ( CodeGen g ) : void
g CodeGen
return void

EmitGetHelper() protected method

protected EmitGetHelper ( CodeGen g, Operand op, Type desiredType, bool allowExplicitConversion ) : void
g CodeGen
op Operand
desiredType IKVM.Reflection.Type
allowExplicitConversion bool
return void

EmitSet() protected method

protected EmitSet ( CodeGen g, Operand value, bool allowExplicitConversion ) : void
g CodeGen
value Operand
allowExplicitConversion bool
return void

Eq() public method

public Eq ( Operand value ) : Operand
value Operand
return Operand

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

Field() public method

public Field ( string name, ITypeMapper typeMapper ) : ContextualOperand
name string
typeMapper ITypeMapper
return ContextualOperand

FromObject() public static method

public static FromObject ( object operandOrLiteral ) : Operand
operandOrLiteral object
return Operand

Ge() public method

public Ge ( Operand value ) : Operand
value Operand
return Operand

GetBindingFlags() protected method

protected GetBindingFlags ( ) : IKVM.Reflection.BindingFlags
return IKVM.Reflection.BindingFlags

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetILGenerator() protected method

protected GetILGenerator ( CodeGen g ) : ILGenerator
g CodeGen
return System.Reflection.Emit.ILGenerator

GetReturnType() public abstract method

public abstract GetReturnType ( ITypeMapper typeMapper ) : Type
typeMapper ITypeMapper
return IKVM.Reflection.Type

GetType() protected static method

protected static GetType ( Operand op, ITypeMapper typeMapper ) : Type
op Operand
typeMapper ITypeMapper
return IKVM.Reflection.Type

GetTypes() protected static method

protected static GetTypes ( Operand ops, ITypeMapper typeMapper ) : Type[]
ops Operand
typeMapper ITypeMapper
return Type[]

Gt() public method

public Gt ( Operand value ) : Operand
value Operand
return Operand

Increment() public method

public Increment ( ) : IStatement
return IStatement

Invoke() public method

public Invoke ( MethodInfo method, ITypeMapper typeMapper ) : ContextualOperand
method MethodInfo
typeMapper ITypeMapper
return ContextualOperand

Invoke() public method

public Invoke ( string name, ITypeMapper typeMapper ) : ContextualOperand
name string
typeMapper ITypeMapper
return ContextualOperand

InvokeDelegate() public method

public InvokeDelegate ( ITypeMapper typeMapper ) : ContextualOperand
typeMapper ITypeMapper
return ContextualOperand

InvokeEquals() public method

public InvokeEquals ( Operand right, ITypeMapper typeMapper ) : ContextualOperand
right Operand
typeMapper ITypeMapper
return ContextualOperand

InvokeGetHashCode() public method

public InvokeGetHashCode ( ITypeMapper typeMapper ) : ContextualOperand
typeMapper ITypeMapper
return ContextualOperand

InvokeGetType() public method

public InvokeGetType ( ITypeMapper typeMapper ) : ContextualOperand
typeMapper ITypeMapper
return ContextualOperand

InvokeReferenceEquals() public method

public InvokeReferenceEquals ( Operand right, ITypeMapper typeMapper ) : ContextualOperand
right Operand
typeMapper ITypeMapper
return ContextualOperand

InvokeToString() public method

public InvokeToString ( ITypeMapper typeMapper ) : ContextualOperand
typeMapper ITypeMapper
return ContextualOperand

Is() public method

public Is ( Type type ) : Operand
type IKVM.Reflection.Type
return Operand

IsFalse() public method

public IsFalse ( ) : Operand
return Operand

IsTrue() public method

public IsTrue ( ) : Operand
return Operand

Le() public method

public Le ( Operand value ) : Operand
value Operand
return Operand

LeftShift() public method

public LeftShift ( Operand value ) : Operand
value Operand
return Operand

LogicalAnd() public method

public LogicalAnd ( Operand other ) : Operand
other Operand
return Operand

LogicalNot() public method

public LogicalNot ( ) : Operand
return Operand

LogicalOr() public method

public LogicalOr ( Operand other ) : Operand
other Operand
return Operand

LongArrayLength() public method

public LongArrayLength ( ) : Operand
return Operand

Lt() public method

public Lt ( Operand value ) : Operand
value Operand
return Operand

Modulus() public method

public Modulus ( Operand value ) : Operand
value Operand
return Operand

Multiply() public method

public Multiply ( Operand value ) : Operand
value Operand
return Operand

Ne() public method

public Ne ( Operand value ) : Operand
value Operand
return Operand

Negate() public method

public Negate ( ) : Operand
return Operand

OnesComplement() public method

public OnesComplement ( ) : Operand
return Operand

Operand() protected method

protected Operand ( ) : System
return System

Plus() public method

public Plus ( ) : Operand
return Operand

PostDecrement() public method

public PostDecrement ( ) : Operand
return Operand

PostIncrement() public method

public PostIncrement ( ) : Operand
return Operand

Pow2() public method

public Pow2 ( ) : Operand
return Operand

PreDecrement() public method

public PreDecrement ( ) : Operand
return Operand

PreIncrement() public method

public PreIncrement ( ) : Operand
return Operand

Property() public method

public Property ( string name, ITypeMapper typeMapper ) : ContextualOperand
name string
typeMapper ITypeMapper
return ContextualOperand

Ref() public method

public Ref ( ) : Operand
return Operand

RightShift() public method

public RightShift ( Operand value ) : Operand
value Operand
return Operand

SetNotLeaked() public method

Set not leaked for this and *all used operands recursively*. Returns itself.
Usage:
var asStream = ag.ExpressionFactory.New(typeof(MemoryStream)).Cast(typeof(Stream)).SetNotLeaked(false)();
public SetNotLeaked ( ) : Operand
return Operand

Subtract() public method

public Subtract ( Operand value ) : Operand
value Operand
return Operand

Xor() public method

public Xor ( Operand value ) : Operand
value Operand
return Operand

operator() public static method

public static operator ( ) : Operand
return Operand

Property Details

EmptyArray protected_oe static_oe property

protected static Operand[],TriAxis.RunSharp EmptyArray
return TriAxis.RunSharp.Operand[]