Documentation ¶
Index ¶
Constants ¶
View Source
const ( L4G_VERSION = "expression4go-v1.0.0" L4G_MAJOR = 1 L4G_MINOR = 0 L4G_BUILD = 0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompositeStringExpression ¶
type CompositeStringExpression struct { *spel.ExpressionImpl ExpressionString string Expressions []Expression }
func (*CompositeStringExpression) GetExpressionString ¶
func (c *CompositeStringExpression) GetExpressionString() string
func (*CompositeStringExpression) GetValue ¶
func (c *CompositeStringExpression) GetValue() interface{}
type Expression ¶
type Expression interface { GetExpressionString() string GetValue() interface{} GetValueContext(context spel.EvaluationContext) interface{} }
获取值
type ExpressionErr ¶
func (ExpressionErr) Error ¶
func (e ExpressionErr) Error() string
type ExpressionParser ¶
type ExpressionParser interface { ParseExpression(var1 string) Expression DoParseExpression(var1 string) Expression }
type InternalSpelExpressionParser ¶
type InternalSpelExpressionParser struct { *TemplateAwareExpressionParser Configuration SpelParserConfiguration // contains filtered or unexported fields }
func (*InternalSpelExpressionParser) DoParseExpression ¶
func (i *InternalSpelExpressionParser) DoParseExpression(expressionString string) Expression
type LiteralExpression ¶
type LiteralExpression struct { *spel.ExpressionImpl // contains filtered or unexported fields }
func (*LiteralExpression) GetExpressionString ¶
func (l *LiteralExpression) GetExpressionString() string
func (*LiteralExpression) GetValue ¶
func (l *LiteralExpression) GetValue() interface{}
type ParserContext ¶
type ParserContext interface {
// contains filtered or unexported methods
}
type SpelExpressionParser ¶
type SpelExpressionParser struct {
*TemplateAwareExpressionParser
}
type TemplateAwareExpressionParser ¶
type TemplateAwareExpressionParser struct {
Bracket
}
func (*TemplateAwareExpressionParser) DoParseExpression ¶
func (s *TemplateAwareExpressionParser) DoParseExpression(expressionString string) Expression
func (*TemplateAwareExpressionParser) ParseExpression ¶
func (t *TemplateAwareExpressionParser) ParseExpression(expressionString string) Expression
type TemplateParserContext ¶
type TemplateParserContext struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.