expression

package
Version: v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2021 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bracket

type Bracket struct {
	// contains filtered or unexported fields
}

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 EvaluationContext) interface{}
}

获取值

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
}

type Value

type Value interface {
	// contains filtered or unexported methods
}

Directories

Path Synopsis
ast

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL