BeanExprLib

package
v0.0.0-...-7232a66 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BeanExprLexerT__0       = 1
	BeanExprLexerT__1       = 2
	BeanExprLexerT__2       = 3
	BeanExprLexerStringArg  = 4
	BeanExprLexerFloatArg   = 5
	BeanExprLexerIntArg     = 6
	BeanExprLexerBoolArg    = 7
	BeanExprLexerNilArg     = 8
	BeanExprLexerFuncName   = 9
	BeanExprLexerMethodName = 10
	BeanExprLexerDot        = 11
	BeanExprLexerEQUALS     = 12
	BeanExprLexerASSIGN     = 13
	BeanExprLexerGT         = 14
	BeanExprLexerLT         = 15
	BeanExprLexerGTE        = 16
	BeanExprLexerLTE        = 17
	BeanExprLexerNOTEQUALS  = 18
	BeanExprLexerFloat      = 19
	BeanExprLexerWHITESPACE = 20
)

BeanExprLexer tokens.

View Source
const (
	BeanExprParserEOF        = antlr.TokenEOF
	BeanExprParserT__0       = 1
	BeanExprParserT__1       = 2
	BeanExprParserT__2       = 3
	BeanExprParserStringArg  = 4
	BeanExprParserFloatArg   = 5
	BeanExprParserIntArg     = 6
	BeanExprParserBoolArg    = 7
	BeanExprParserNilArg     = 8
	BeanExprParserFuncName   = 9
	BeanExprParserMethodName = 10
	BeanExprParserDot        = 11
	BeanExprParserEQUALS     = 12
	BeanExprParserASSIGN     = 13
	BeanExprParserGT         = 14
	BeanExprParserLT         = 15
	BeanExprParserGTE        = 16
	BeanExprParserLTE        = 17
	BeanExprParserNOTEQUALS  = 18
	BeanExprParserFloat      = 19
	BeanExprParserWHITESPACE = 20
)

BeanExprParser tokens.

View Source
const (
	BeanExprParserRULE_start              = 0
	BeanExprParserRULE_methodCall         = 1
	BeanExprParserRULE_functionCall       = 2
	BeanExprParserRULE_functionArgs       = 3
	BeanExprParserRULE_comparisonOperator = 4
	BeanExprParserRULE_constant           = 5
)

BeanExprParser rules.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseBeanExprListener

type BaseBeanExprListener struct{}

BaseBeanExprListener is a complete listener for a parse tree produced by BeanExprParser.

func (*BaseBeanExprListener) EnterComparisonOperator

func (s *BaseBeanExprListener) EnterComparisonOperator(ctx *ComparisonOperatorContext)

EnterComparisonOperator is called when production comparisonOperator is entered.

func (*BaseBeanExprListener) EnterConstant

func (s *BaseBeanExprListener) EnterConstant(ctx *ConstantContext)

EnterConstant is called when production constant is entered.

func (*BaseBeanExprListener) EnterEveryRule

func (s *BaseBeanExprListener) EnterEveryRule(ctx antlr.ParserRuleContext)

EnterEveryRule is called when any rule is entered.

func (*BaseBeanExprListener) EnterFuncArgs

func (s *BaseBeanExprListener) EnterFuncArgs(ctx *FuncArgsContext)

EnterFuncArgs is called when production FuncArgs is entered.

func (*BaseBeanExprListener) EnterFuncCall

func (s *BaseBeanExprListener) EnterFuncCall(ctx *FuncCallContext)

EnterFuncCall is called when production FuncCall is entered.

func (*BaseBeanExprListener) EnterFuncCallWithCompare

func (s *BaseBeanExprListener) EnterFuncCallWithCompare(ctx *FuncCallWithCompareContext)

EnterFuncCallWithCompare is called when production FuncCallWithCompare is entered.

func (*BaseBeanExprListener) EnterMethodCall

func (s *BaseBeanExprListener) EnterMethodCall(ctx *MethodCallContext)

EnterMethodCall is called when production methodCall is entered.

func (*BaseBeanExprListener) EnterStart

func (s *BaseBeanExprListener) EnterStart(ctx *StartContext)

EnterStart is called when production start is entered.

func (*BaseBeanExprListener) ExitComparisonOperator

func (s *BaseBeanExprListener) ExitComparisonOperator(ctx *ComparisonOperatorContext)

ExitComparisonOperator is called when production comparisonOperator is exited.

func (*BaseBeanExprListener) ExitConstant

func (s *BaseBeanExprListener) ExitConstant(ctx *ConstantContext)

ExitConstant is called when production constant is exited.

func (*BaseBeanExprListener) ExitEveryRule

func (s *BaseBeanExprListener) ExitEveryRule(ctx antlr.ParserRuleContext)

ExitEveryRule is called when any rule is exited.

func (*BaseBeanExprListener) ExitFuncArgs

func (s *BaseBeanExprListener) ExitFuncArgs(ctx *FuncArgsContext)

ExitFuncArgs is called when production FuncArgs is exited.

func (*BaseBeanExprListener) ExitFuncCall

func (s *BaseBeanExprListener) ExitFuncCall(ctx *FuncCallContext)

ExitFuncCall is called when production FuncCall is exited.

func (*BaseBeanExprListener) ExitFuncCallWithCompare

func (s *BaseBeanExprListener) ExitFuncCallWithCompare(ctx *FuncCallWithCompareContext)

ExitFuncCallWithCompare is called when production FuncCallWithCompare is exited.

func (*BaseBeanExprListener) ExitMethodCall

func (s *BaseBeanExprListener) ExitMethodCall(ctx *MethodCallContext)

ExitMethodCall is called when production methodCall is exited.

func (*BaseBeanExprListener) ExitStart

func (s *BaseBeanExprListener) ExitStart(ctx *StartContext)

ExitStart is called when production start is exited.

func (*BaseBeanExprListener) VisitErrorNode

func (s *BaseBeanExprListener) VisitErrorNode(node antlr.ErrorNode)

VisitErrorNode is called when an error node is visited.

func (*BaseBeanExprListener) VisitTerminal

func (s *BaseBeanExprListener) VisitTerminal(node antlr.TerminalNode)

VisitTerminal is called when a terminal node is visited.

type BeanExprLexer

type BeanExprLexer struct {
	*antlr.BaseLexer
	// contains filtered or unexported fields
}

func NewBeanExprLexer

func NewBeanExprLexer(input antlr.CharStream) *BeanExprLexer

type BeanExprListener

type BeanExprListener interface {
	antlr.ParseTreeListener

	// EnterStart is called when entering the start production.
	EnterStart(c *StartContext)

	// EnterMethodCall is called when entering the methodCall production.
	EnterMethodCall(c *MethodCallContext)

	// EnterFuncCall is called when entering the FuncCall production.
	EnterFuncCall(c *FuncCallContext)

	// EnterFuncCallWithCompare is called when entering the FuncCallWithCompare production.
	EnterFuncCallWithCompare(c *FuncCallWithCompareContext)

	// EnterFuncArgs is called when entering the FuncArgs production.
	EnterFuncArgs(c *FuncArgsContext)

	// EnterComparisonOperator is called when entering the comparisonOperator production.
	EnterComparisonOperator(c *ComparisonOperatorContext)

	// EnterConstant is called when entering the constant production.
	EnterConstant(c *ConstantContext)

	// ExitStart is called when exiting the start production.
	ExitStart(c *StartContext)

	// ExitMethodCall is called when exiting the methodCall production.
	ExitMethodCall(c *MethodCallContext)

	// ExitFuncCall is called when exiting the FuncCall production.
	ExitFuncCall(c *FuncCallContext)

	// ExitFuncCallWithCompare is called when exiting the FuncCallWithCompare production.
	ExitFuncCallWithCompare(c *FuncCallWithCompareContext)

	// ExitFuncArgs is called when exiting the FuncArgs production.
	ExitFuncArgs(c *FuncArgsContext)

	// ExitComparisonOperator is called when exiting the comparisonOperator production.
	ExitComparisonOperator(c *ComparisonOperatorContext)

	// ExitConstant is called when exiting the constant production.
	ExitConstant(c *ConstantContext)
}

BeanExprListener is a complete listener for a parse tree produced by BeanExprParser.

type BeanExprParser

type BeanExprParser struct {
	*antlr.BaseParser
}

func NewBeanExprParser

func NewBeanExprParser(input antlr.TokenStream) *BeanExprParser

func (*BeanExprParser) ComparisonOperator

func (p *BeanExprParser) ComparisonOperator() (localctx IComparisonOperatorContext)

func (*BeanExprParser) Constant

func (p *BeanExprParser) Constant() (localctx IConstantContext)

func (*BeanExprParser) FunctionArgs

func (p *BeanExprParser) FunctionArgs() (localctx IFunctionArgsContext)

func (*BeanExprParser) FunctionCall

func (p *BeanExprParser) FunctionCall() (localctx IFunctionCallContext)

func (*BeanExprParser) MethodCall

func (p *BeanExprParser) MethodCall() (localctx IMethodCallContext)

func (*BeanExprParser) Start

func (p *BeanExprParser) Start() (localctx IStartContext)

type ComparisonOperatorContext

type ComparisonOperatorContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewComparisonOperatorContext

func NewComparisonOperatorContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ComparisonOperatorContext

func NewEmptyComparisonOperatorContext

func NewEmptyComparisonOperatorContext() *ComparisonOperatorContext

func (*ComparisonOperatorContext) EQUALS

func (*ComparisonOperatorContext) EnterRule

func (s *ComparisonOperatorContext) EnterRule(listener antlr.ParseTreeListener)

func (*ComparisonOperatorContext) ExitRule

func (s *ComparisonOperatorContext) ExitRule(listener antlr.ParseTreeListener)

func (*ComparisonOperatorContext) GT

func (*ComparisonOperatorContext) GTE

func (*ComparisonOperatorContext) GetParser

func (s *ComparisonOperatorContext) GetParser() antlr.Parser

func (*ComparisonOperatorContext) GetRuleContext

func (s *ComparisonOperatorContext) GetRuleContext() antlr.RuleContext

func (*ComparisonOperatorContext) IsComparisonOperatorContext

func (*ComparisonOperatorContext) IsComparisonOperatorContext()

func (*ComparisonOperatorContext) LT

func (*ComparisonOperatorContext) LTE

func (*ComparisonOperatorContext) NOTEQUALS

func (*ComparisonOperatorContext) ToStringTree

func (s *ComparisonOperatorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ConstantContext

type ConstantContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewConstantContext

func NewConstantContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ConstantContext

func NewEmptyConstantContext

func NewEmptyConstantContext() *ConstantContext

func (*ConstantContext) BoolArg

func (s *ConstantContext) BoolArg() antlr.TerminalNode

func (*ConstantContext) EnterRule

func (s *ConstantContext) EnterRule(listener antlr.ParseTreeListener)

func (*ConstantContext) ExitRule

func (s *ConstantContext) ExitRule(listener antlr.ParseTreeListener)

func (*ConstantContext) FloatArg

func (s *ConstantContext) FloatArg() antlr.TerminalNode

func (*ConstantContext) GetParser

func (s *ConstantContext) GetParser() antlr.Parser

func (*ConstantContext) GetRuleContext

func (s *ConstantContext) GetRuleContext() antlr.RuleContext

func (*ConstantContext) IntArg

func (s *ConstantContext) IntArg() antlr.TerminalNode

func (*ConstantContext) IsConstantContext

func (*ConstantContext) IsConstantContext()

func (*ConstantContext) NilArg

func (s *ConstantContext) NilArg() antlr.TerminalNode

func (*ConstantContext) StringArg

func (s *ConstantContext) StringArg() antlr.TerminalNode

func (*ConstantContext) ToStringTree

func (s *ConstantContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type FuncArgsContext

type FuncArgsContext struct {
	*FunctionArgsContext
}

func NewFuncArgsContext

func NewFuncArgsContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *FuncArgsContext

func (*FuncArgsContext) AllConstant

func (s *FuncArgsContext) AllConstant() []IConstantContext

func (*FuncArgsContext) AllFunctionCall

func (s *FuncArgsContext) AllFunctionCall() []IFunctionCallContext

func (*FuncArgsContext) AllMethodCall

func (s *FuncArgsContext) AllMethodCall() []IMethodCallContext

func (*FuncArgsContext) Constant

func (s *FuncArgsContext) Constant(i int) IConstantContext

func (*FuncArgsContext) EnterRule

func (s *FuncArgsContext) EnterRule(listener antlr.ParseTreeListener)

func (*FuncArgsContext) ExitRule

func (s *FuncArgsContext) ExitRule(listener antlr.ParseTreeListener)

func (*FuncArgsContext) FunctionCall

func (s *FuncArgsContext) FunctionCall(i int) IFunctionCallContext

func (*FuncArgsContext) GetRuleContext

func (s *FuncArgsContext) GetRuleContext() antlr.RuleContext

func (*FuncArgsContext) MethodCall

func (s *FuncArgsContext) MethodCall(i int) IMethodCallContext

type FuncCallContext

type FuncCallContext struct {
	*FunctionCallContext
}

func NewFuncCallContext

func NewFuncCallContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *FuncCallContext

func (*FuncCallContext) EnterRule

func (s *FuncCallContext) EnterRule(listener antlr.ParseTreeListener)

func (*FuncCallContext) ExitRule

func (s *FuncCallContext) ExitRule(listener antlr.ParseTreeListener)

func (*FuncCallContext) FuncName

func (s *FuncCallContext) FuncName() antlr.TerminalNode

func (*FuncCallContext) FunctionArgs

func (s *FuncCallContext) FunctionArgs() IFunctionArgsContext

func (*FuncCallContext) GetRuleContext

func (s *FuncCallContext) GetRuleContext() antlr.RuleContext

type FuncCallWithCompareContext

type FuncCallWithCompareContext struct {
	*FunctionCallContext
}

func NewFuncCallWithCompareContext

func NewFuncCallWithCompareContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *FuncCallWithCompareContext

func (*FuncCallWithCompareContext) ComparisonOperator

func (*FuncCallWithCompareContext) EnterRule

func (s *FuncCallWithCompareContext) EnterRule(listener antlr.ParseTreeListener)

func (*FuncCallWithCompareContext) ExitRule

func (s *FuncCallWithCompareContext) ExitRule(listener antlr.ParseTreeListener)

func (*FuncCallWithCompareContext) FuncName

func (*FuncCallWithCompareContext) FunctionArgs

func (*FuncCallWithCompareContext) GetRuleContext

func (s *FuncCallWithCompareContext) GetRuleContext() antlr.RuleContext

type FunctionArgsContext

type FunctionArgsContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyFunctionArgsContext

func NewEmptyFunctionArgsContext() *FunctionArgsContext

func NewFunctionArgsContext

func NewFunctionArgsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FunctionArgsContext

func (*FunctionArgsContext) CopyFrom

func (s *FunctionArgsContext) CopyFrom(ctx *FunctionArgsContext)

func (*FunctionArgsContext) GetParser

func (s *FunctionArgsContext) GetParser() antlr.Parser

func (*FunctionArgsContext) GetRuleContext

func (s *FunctionArgsContext) GetRuleContext() antlr.RuleContext

func (*FunctionArgsContext) IsFunctionArgsContext

func (*FunctionArgsContext) IsFunctionArgsContext()

func (*FunctionArgsContext) ToStringTree

func (s *FunctionArgsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type FunctionCallContext

type FunctionCallContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyFunctionCallContext

func NewEmptyFunctionCallContext() *FunctionCallContext

func NewFunctionCallContext

func NewFunctionCallContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FunctionCallContext

func (*FunctionCallContext) CopyFrom

func (s *FunctionCallContext) CopyFrom(ctx *FunctionCallContext)

func (*FunctionCallContext) GetParser

func (s *FunctionCallContext) GetParser() antlr.Parser

func (*FunctionCallContext) GetRuleContext

func (s *FunctionCallContext) GetRuleContext() antlr.RuleContext

func (*FunctionCallContext) IsFunctionCallContext

func (*FunctionCallContext) IsFunctionCallContext()

func (*FunctionCallContext) ToStringTree

func (s *FunctionCallContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type IComparisonOperatorContext

type IComparisonOperatorContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsComparisonOperatorContext differentiates from other interfaces.
	IsComparisonOperatorContext()
}

IComparisonOperatorContext is an interface to support dynamic dispatch.

type IConstantContext

type IConstantContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsConstantContext differentiates from other interfaces.
	IsConstantContext()
}

IConstantContext is an interface to support dynamic dispatch.

type IFunctionArgsContext

type IFunctionArgsContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsFunctionArgsContext differentiates from other interfaces.
	IsFunctionArgsContext()
}

IFunctionArgsContext is an interface to support dynamic dispatch.

type IFunctionCallContext

type IFunctionCallContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsFunctionCallContext differentiates from other interfaces.
	IsFunctionCallContext()
}

IFunctionCallContext is an interface to support dynamic dispatch.

type IMethodCallContext

type IMethodCallContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsMethodCallContext differentiates from other interfaces.
	IsMethodCallContext()
}

IMethodCallContext is an interface to support dynamic dispatch.

type IStartContext

type IStartContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// IsStartContext differentiates from other interfaces.
	IsStartContext()
}

IStartContext is an interface to support dynamic dispatch.

type MethodCallContext

type MethodCallContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyMethodCallContext

func NewEmptyMethodCallContext() *MethodCallContext

func NewMethodCallContext

func NewMethodCallContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MethodCallContext

func (*MethodCallContext) EnterRule

func (s *MethodCallContext) EnterRule(listener antlr.ParseTreeListener)

func (*MethodCallContext) ExitRule

func (s *MethodCallContext) ExitRule(listener antlr.ParseTreeListener)

func (*MethodCallContext) FunctionArgs

func (s *MethodCallContext) FunctionArgs() IFunctionArgsContext

func (*MethodCallContext) GetParser

func (s *MethodCallContext) GetParser() antlr.Parser

func (*MethodCallContext) GetRuleContext

func (s *MethodCallContext) GetRuleContext() antlr.RuleContext

func (*MethodCallContext) IsMethodCallContext

func (*MethodCallContext) IsMethodCallContext()

func (*MethodCallContext) MethodName

func (s *MethodCallContext) MethodName() antlr.TerminalNode

func (*MethodCallContext) ToStringTree

func (s *MethodCallContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type StartContext

type StartContext struct {
	*antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyStartContext

func NewEmptyStartContext() *StartContext

func NewStartContext

func NewStartContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *StartContext

func (*StartContext) EOF

func (s *StartContext) EOF() antlr.TerminalNode

func (*StartContext) EnterRule

func (s *StartContext) EnterRule(listener antlr.ParseTreeListener)

func (*StartContext) ExitRule

func (s *StartContext) ExitRule(listener antlr.ParseTreeListener)

func (*StartContext) FunctionCall

func (s *StartContext) FunctionCall() IFunctionCallContext

func (*StartContext) GetParser

func (s *StartContext) GetParser() antlr.Parser

func (*StartContext) GetRuleContext

func (s *StartContext) GetRuleContext() antlr.RuleContext

func (*StartContext) IsStartContext

func (*StartContext) IsStartContext()

func (*StartContext) MethodCall

func (s *StartContext) MethodCall() IMethodCallContext

func (*StartContext) ToStringTree

func (s *StartContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL