C# Class Ancestry.QueryProcessor.Type.BaseType

Datei anzeigen Open project: Ancestry/DotQL Class Usage Examples

Public Methods

Method Description
BuildDOM ( ) : Parse.TypeDeclaration
BuildDefault ( ) : Parse.Expression
CompileBinaryExpression ( Compiler compiler, Frame frame, ExpressionContext left, Parse expression, Type typeHint ) : ExpressionContext
CompileExtractExpression ( Compiler compiler, Frame frame, ExpressionContext left, Parse expression, BaseType typeHint ) : ExpressionContext
CompileUnaryExpression ( Compiler compiler, Frame frame, ExpressionContext inner, Parse expression, Type typeHint ) : ExpressionContext
Convert ( ExpressionContext expression, BaseType target ) : ExpressionContext
EmitLiteral ( MethodContext method, object value ) : void
Equals ( object obj ) : bool
GetHashCode ( ) : int
GetNative ( Emitter emitter ) : Type
ToString ( ) : string
operator ( ) : bool

Protected Methods

Method Description
CallClassOp ( MethodContext method, string opName ) : bool

Attempt to invoke an operator overload on the left-hand class if there is one.

EmitBinaryOperator ( MethodContext method, Compiler compiler, ExpressionContext left, ExpressionContext right, Parse expression ) : void

Overridden to determine what operators a type supports and to change how they are implemented.

Override this rather than CompileBinaryOperator when nothing special is necessary when compiling the right-hand expression.

EmitShortCircuit ( MethodContext method, Compiler compiler, Frame frame, ExpressionContext left, ExpressionContext right, Parse expression, Type typeHint ) : void

Overridden to determine what operators a type supports and to change how they are implemented.

Override this rather than CompileBinaryOperator when nothing special is necessary when compiling the right-hand expression.

EmitUnaryOperator ( MethodContext method, Compiler compiler, ExpressionContext inner, Parse expression ) : void

Overridden to determine what operators a type supports and to change how they are implemented.

NotSupported ( Parse expression ) : Exception

Method Details

BuildDOM() public abstract method

public abstract BuildDOM ( ) : Parse.TypeDeclaration
return Parse.TypeDeclaration

BuildDefault() public abstract method

public abstract BuildDefault ( ) : Parse.Expression
return Parse.Expression

CallClassOp() protected method

Attempt to invoke an operator overload on the left-hand class if there is one.
protected CallClassOp ( MethodContext method, string opName ) : bool
method Ancestry.QueryProcessor.Compile.MethodContext
opName string
return bool

CompileBinaryExpression() public method

public CompileBinaryExpression ( Compiler compiler, Frame frame, ExpressionContext left, Parse expression, Type typeHint ) : ExpressionContext
compiler Compiler
frame Frame
left Ancestry.QueryProcessor.Compile.ExpressionContext
expression Parse
typeHint System.Type
return Ancestry.QueryProcessor.Compile.ExpressionContext

CompileExtractExpression() public method

public CompileExtractExpression ( Compiler compiler, Frame frame, ExpressionContext left, Parse expression, BaseType typeHint ) : ExpressionContext
compiler Compiler
frame Frame
left Ancestry.QueryProcessor.Compile.ExpressionContext
expression Parse
typeHint BaseType
return Ancestry.QueryProcessor.Compile.ExpressionContext

CompileUnaryExpression() public method

public CompileUnaryExpression ( Compiler compiler, Frame frame, ExpressionContext inner, Parse expression, Type typeHint ) : ExpressionContext
compiler Compiler
frame Frame
inner Ancestry.QueryProcessor.Compile.ExpressionContext
expression Parse
typeHint System.Type
return Ancestry.QueryProcessor.Compile.ExpressionContext

Convert() public method

public Convert ( ExpressionContext expression, BaseType target ) : ExpressionContext
expression Ancestry.QueryProcessor.Compile.ExpressionContext
target BaseType
return Ancestry.QueryProcessor.Compile.ExpressionContext

EmitBinaryOperator() protected method

Overridden to determine what operators a type supports and to change how they are implemented.
Override this rather than CompileBinaryOperator when nothing special is necessary when compiling the right-hand expression.
protected EmitBinaryOperator ( MethodContext method, Compiler compiler, ExpressionContext left, ExpressionContext right, Parse expression ) : void
method Ancestry.QueryProcessor.Compile.MethodContext
compiler Compiler
left Ancestry.QueryProcessor.Compile.ExpressionContext
right Ancestry.QueryProcessor.Compile.ExpressionContext
expression Parse
return void

EmitLiteral() public method

public EmitLiteral ( MethodContext method, object value ) : void
method Ancestry.QueryProcessor.Compile.MethodContext
value object
return void

EmitShortCircuit() protected method

Overridden to determine what operators a type supports and to change how they are implemented.
Override this rather than CompileBinaryOperator when nothing special is necessary when compiling the right-hand expression.
protected EmitShortCircuit ( MethodContext method, Compiler compiler, Frame frame, ExpressionContext left, ExpressionContext right, Parse expression, Type typeHint ) : void
method Ancestry.QueryProcessor.Compile.MethodContext
compiler Compiler
frame Frame
left Ancestry.QueryProcessor.Compile.ExpressionContext
right Ancestry.QueryProcessor.Compile.ExpressionContext
expression Parse
typeHint System.Type
return void

EmitUnaryOperator() protected method

Overridden to determine what operators a type supports and to change how they are implemented.
protected EmitUnaryOperator ( MethodContext method, Compiler compiler, ExpressionContext inner, Parse expression ) : void
method Ancestry.QueryProcessor.Compile.MethodContext
compiler Compiler
inner Ancestry.QueryProcessor.Compile.ExpressionContext
expression Parse
return void

Equals() public method

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetNative() public abstract method

public abstract GetNative ( Emitter emitter ) : Type
emitter Ancestry.QueryProcessor.Compile.Emitter
return System.Type

NotSupported() protected method

protected NotSupported ( Parse expression ) : Exception
expression Parse
return System.Exception

ToString() public method

public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : bool
return bool