C# 클래스 MvcApi.Query.ExpressionParser

파일 보기 프로젝트 열기: dax70/MvcApi 1 사용 예제들

공개 메소드들

메소드 설명
ExpressionParser ( System.Linq.Expressions.ParameterExpression parameters, string expression, QueryResolver queryResolver ) : System
Parse ( Type resultType ) : Expression
ParseOrdering ( ) : IEnumerable

비공개 메소드들

메소드 설명
AddInterface ( List types, Type type ) : void
AddSymbol ( string name, object value ) : void
CheckAndPromoteOperand ( Type signatures, string opName, Expression &expr, int errorPos ) : void
CheckAndPromoteOperands ( Type signatures, string opName, Expression &left, Expression &right, int errorPos ) : void
CompareConversions ( Type s, Type t1, Type t2 ) : int
ConvertEnumExpression ( Expression expr, Expression otherExpr ) : Expression
CreateKeywords ( ) : object>.Dictionary
CreateLiteral ( object value, string valueAsString ) : Expression
FindBestMethod ( IEnumerable methods, Expression args, MethodBase &method ) : int
FindGenericType ( Type generic, Type type ) : Type
FindIndexer ( Type type, Expression args, MethodBase &method ) : int
FindMethod ( Type type, string methodName, bool staticAccess, Expression args, MethodBase &method ) : int
FindPropertyOrField ( Type type, string memberName, bool staticAccess ) : MemberInfo
GenerateAdd ( Expression left, Expression right ) : Expression
GenerateEqual ( Expression left, Expression right ) : Expression
GenerateGreaterThan ( Expression left, Expression right ) : Expression
GenerateGreaterThanEqual ( Expression left, Expression right ) : Expression
GenerateLessThan ( Expression left, Expression right ) : Expression
GenerateLessThanEqual ( Expression left, Expression right ) : Expression
GenerateNotEqual ( Expression left, Expression right ) : Expression
GenerateStaticMethodCall ( string methodName, Expression left, Expression right ) : Expression
GenerateStringConcat ( Expression left, Expression right ) : Expression
GenerateSubtract ( Expression left, Expression right ) : Expression
GetIdentifier ( ) : string
GetNonNullableType ( Type type ) : Type
GetNumericTypeKind ( Type type ) : int
GetStaticMethod ( string methodName, Expression left, Expression right ) : MethodInfo
GetTypeName ( Type type ) : string
IncompatibleOperandsError ( string opName, Expression left, Expression right, int pos ) : Exception
IsApplicable ( MethodData method, Expression args ) : bool
IsBetterThan ( Expression args, MethodData m1, MethodData m2 ) : bool
IsCompatibleWith ( Type source, Type target ) : bool
IsEnumType ( Type type ) : bool
IsIdentifierPart ( char ch ) : bool
IsIdentifierStart ( char ch ) : bool
IsNullableType ( Type type ) : bool
IsSignedIntegralType ( Type type ) : bool
IsUnsignedIntegralType ( Type type ) : bool
MapDateFunction ( string functionName ) : MappedMemberInfo
MapFunction ( string functionName ) : MappedMemberInfo
MapMathFunction ( string functionName ) : MappedMemberInfo
MapStringFunction ( string functionName ) : MappedMemberInfo
NextChar ( ) : void
NextToken ( ) : void
ParseAdditive ( ) : Expression
ParseAggregate ( Expression instance, Type elementType, string methodName, int errorPos ) : Expression
ParseArgumentList ( ) : System.Linq.Expressions.Expression[]
ParseArguments ( ) : System.Linq.Expressions.Expression[]
ParseComparison ( ) : Expression
ParseElementAccess ( Expression expr ) : Expression
ParseEnum ( string name, Type type ) : object
ParseError ( int pos, string format ) : Exception
ParseError ( string format ) : Exception
ParseExpression ( ) : Expression
ParseIdentifier ( ) : Expression
ParseIntegerLiteral ( ) : Expression
ParseLogicalAnd ( ) : Expression
ParseLogicalOr ( ) : Expression
ParseMappedFunction ( MappedMemberInfo mappedMember ) : Expression
ParseMemberAccess ( Type type, Expression instance ) : Expression
ParseMultiplicative ( ) : Expression
ParseNumber ( string text, Type type ) : object
ParseParenExpression ( ) : Expression
ParsePrimary ( ) : Expression
ParsePrimaryStart ( ) : Expression
ParseRealLiteral ( ) : Expression
ParseStringLiteral ( ) : Expression
ParseTypeConstruction ( Type type ) : Expression
ParseUnary ( ) : Expression
ProcessParameters ( System.Linq.Expressions.ParameterExpression parameters ) : void
PromoteExpression ( Expression expr, Type type, bool exact ) : Expression
ReclassifyToken ( Token token ) : TokenId
SelfAndBaseClasses ( Type type ) : IEnumerable
SelfAndBaseTypes ( Type type ) : IEnumerable
SetTextPos ( int pos ) : void
TokenIdentifierIs ( string id ) : bool
ValidateDigit ( ) : void
ValidateToken ( TokenId t ) : void
ValidateToken ( TokenId t, string errorMessage ) : void

메소드 상세

ExpressionParser() 공개 메소드

public ExpressionParser ( System.Linq.Expressions.ParameterExpression parameters, string expression, QueryResolver queryResolver ) : System
parameters System.Linq.Expressions.ParameterExpression
expression string
queryResolver QueryResolver
리턴 System

Parse() 공개 메소드

public Parse ( Type resultType ) : Expression
resultType System.Type
리턴 System.Linq.Expressions.Expression

ParseOrdering() 공개 메소드

public ParseOrdering ( ) : IEnumerable
리턴 IEnumerable