Documentation
¶
Index ¶
- Constants
- type AccessorLValue
- type ArrayIndexingValueRef
- type BoolLiteral
- type CompoundExpression
- type FloatLiteral
- type GetLiteralValue
- type IndexedType
- type Indexer
- type IntLiteral
- type Literal
- type LiteralValue
- type LongLiteral
- type OpAnd
- type OpEQ
- type OpGE
- type OpGT
- type OpLE
- type OpLT
- type OpNE
- type OpOr
- type Operator
- type PropertyOrFieldReference
- type SpelNode
- type SpelNodeImpl
- func (this SpelNodeImpl) GetEndPosition() int
- func (this SpelNodeImpl) GetStartPosition() int
- func (this SpelNodeImpl) GetValue(expressionState ExpressionState) interface{}
- func (this SpelNodeImpl) GetValueInternal(expressionState ExpressionState) TypedValue
- func (this SpelNodeImpl) GetValueRef(state ExpressionState) ValueRef
- type StringIndexingLValue
- type StringLiteral
- type ValueRef
- type VariableReference
Constants ¶
View Source
const ( THIS = "this" ROOT = "root" )
map参数
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessorLValue ¶
type AccessorLValue struct {
// contains filtered or unexported fields
}
func (AccessorLValue) GetValue ¶
func (this AccessorLValue) GetValue() TypedValue
type ArrayIndexingValueRef ¶
type ArrayIndexingValueRef struct { Array interface{} Index int TypeDescriptor TypeDescriptor }
func (ArrayIndexingValueRef) GetValue ¶
func (this ArrayIndexingValueRef) GetValue() TypedValue
type BoolLiteral ¶
type BoolLiteral struct {
*Literal
}
func (BoolLiteral) GetValueInternal ¶
func (l BoolLiteral) GetValueInternal(expressionState ExpressionState) TypedValue
type CompoundExpression ¶
type CompoundExpression struct {
*SpelNodeImpl
}
func (*CompoundExpression) GetValueInternal ¶
func (this *CompoundExpression) GetValueInternal(state ExpressionState) TypedValue
复合表达式
func (CompoundExpression) GetValueRef ¶
func (this CompoundExpression) GetValueRef(state ExpressionState) ValueRef
type FloatLiteral ¶
type FloatLiteral struct {
*Literal
}
Float64 类型
func (FloatLiteral) GetValueInternal ¶
func (l FloatLiteral) GetValueInternal(expressionState ExpressionState) TypedValue
type GetLiteralValue ¶
type GetLiteralValue interface {
GetLiteralValue() TypedValue
}
type IndexedType ¶
type IndexedType string
type Indexer ¶
type Indexer struct { *SpelNodeImpl // contains filtered or unexported fields }
多维数组
func (Indexer) GetValueInternal ¶
func (this Indexer) GetValueInternal(state ExpressionState) TypedValue
func (Indexer) GetValueRef ¶
type IntLiteral ¶
type IntLiteral struct {
*Literal
}
int 类型
func (IntLiteral) GetValueInternal ¶
func (l IntLiteral) GetValueInternal(expressionState ExpressionState) TypedValue
type Literal ¶
type Literal struct { *SpelNodeImpl OriginalValue string Value TypedValue }
type LiteralValue ¶
type LiteralValue struct {
*SpelNodeImpl
}
func (*LiteralValue) GetLiteralValue ¶
func (l *LiteralValue) GetLiteralValue() TypedValue
type LongLiteral ¶
type LongLiteral struct {
*Literal
}
func (LongLiteral) GetValueInternal ¶
func (l LongLiteral) GetValueInternal(expressionState ExpressionState) TypedValue
type OpAnd ¶
type OpAnd struct {
*Operator
}
与操作 eg: "#name=='lisi' && #age>=18"
func (*OpAnd) GetValueInternal ¶
func (o *OpAnd) GetValueInternal(expressionState ExpressionState) TypedValue
type OpEQ ¶
type OpEQ struct {
*Operator
}
func (*OpEQ) GetValueInternal ¶
func (o *OpEQ) GetValueInternal(expressionState ExpressionState) TypedValue
type OpGE ¶
type OpGE struct {
*Operator
}
处理大于等于
func (*OpGE) GetValueInternal ¶
func (o *OpGE) GetValueInternal(expressionState ExpressionState) TypedValue
type OpGT ¶
type OpGT struct {
*Operator
}
//处理大于
func (*OpGT) GetValueInternal ¶
func (o *OpGT) GetValueInternal(expressionState ExpressionState) TypedValue
type OpLE ¶
type OpLE struct {
*Operator
}
//处理小于等于
func (*OpLE) GetValueInternal ¶
func (o *OpLE) GetValueInternal(expressionState ExpressionState) TypedValue
type OpLT ¶
type OpLT struct {
*Operator
}
处理小于
func (*OpLT) GetValueInternal ¶
func (o *OpLT) GetValueInternal(expressionState ExpressionState) TypedValue
type OpNE ¶
type OpNE struct {
*Operator
}
不等于
func (*OpNE) GetValueInternal ¶
func (o *OpNE) GetValueInternal(expressionState ExpressionState) TypedValue
type OpOr ¶
type OpOr struct {
*Operator
}
func (*OpOr) GetValueInternal ¶
func (o *OpOr) GetValueInternal(expressionState ExpressionState) TypedValue
type Operator ¶
type Operator struct { *SpelNodeImpl // contains filtered or unexported fields }
type PropertyOrFieldReference ¶
type PropertyOrFieldReference struct { *SpelNodeImpl NullSafe bool Name string OriginalPrimitiveExitTypeDescriptor string CachedReadAccessor PropertyAccessor }
对象属性处理
func (PropertyOrFieldReference) GetValueInternal ¶
func (this PropertyOrFieldReference) GetValueInternal(state ExpressionState) TypedValue
func (PropertyOrFieldReference) GetValueRef ¶
func (this PropertyOrFieldReference) GetValueRef(state ExpressionState) ValueRef
type SpelNode ¶
type SpelNode interface { GetValue(expressionState ExpressionState) interface{} GetValueInternal(expressionState ExpressionState) TypedValue GetValueRef(state ExpressionState) ValueRef GetStartPosition() int GetEndPosition() int }
表达式对象
type SpelNodeImpl ¶
type SpelNodeImpl struct { Children []SpelNode Parent SpelNode Pos int // contains filtered or unexported fields }
func (SpelNodeImpl) GetEndPosition ¶
func (this SpelNodeImpl) GetEndPosition() int
func (SpelNodeImpl) GetStartPosition ¶
func (this SpelNodeImpl) GetStartPosition() int
func (SpelNodeImpl) GetValue ¶
func (this SpelNodeImpl) GetValue(expressionState ExpressionState) interface{}
func (SpelNodeImpl) GetValueInternal ¶
func (this SpelNodeImpl) GetValueInternal(expressionState ExpressionState) TypedValue
func (SpelNodeImpl) GetValueRef ¶
func (this SpelNodeImpl) GetValueRef(state ExpressionState) ValueRef
type StringIndexingLValue ¶
type StringIndexingLValue struct { Target interface{} Index int TypeDescriptor TypeDescriptor }
func (StringIndexingLValue) GetValue ¶
func (this StringIndexingLValue) GetValue() TypedValue
type StringLiteral ¶
type StringLiteral struct {
*Literal
}
*
func (StringLiteral) GetValueInternal ¶
func (l StringLiteral) GetValueInternal(expressionState ExpressionState) TypedValue
type VariableReference ¶
type VariableReference struct { *SpelNodeImpl Name string }
func (VariableReference) GetValueInternal ¶
func (v VariableReference) GetValueInternal(state ExpressionState) TypedValue
Source Files
¶
Click to show internal directories.
Click to hide internal directories.