crudannotation

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CRUDAnnotationLexerAt               = 1
	CRUDAnnotationLexerLeftParenthesis  = 2
	CRUDAnnotationLexerRightParenthesis = 3
	CRUDAnnotationLexerInsert           = 4
	CRUDAnnotationLexerSelect           = 5
	CRUDAnnotationLexerUpdate           = 6
	CRUDAnnotationLexerDelete           = 7
	CRUDAnnotationLexerLiteral          = 8
	CRUDAnnotationLexerWS               = 9
)

CRUDAnnotationLexer tokens.

View Source
const (
	CRUDAnnotationParserEOF              = antlr.TokenEOF
	CRUDAnnotationParserAt               = 1
	CRUDAnnotationParserLeftParenthesis  = 2
	CRUDAnnotationParserRightParenthesis = 3
	CRUDAnnotationParserInsert           = 4
	CRUDAnnotationParserSelect           = 5
	CRUDAnnotationParserUpdate           = 6
	CRUDAnnotationParserDelete           = 7
	CRUDAnnotationParserLiteral          = 8
	CRUDAnnotationParserWS               = 9
)

CRUDAnnotationParser tokens.

View Source
const (
	CRUDAnnotationParserRULE_crud         = 0
	CRUDAnnotationParserRULE_insertClause = 1
	CRUDAnnotationParserRULE_selectClause = 2
	CRUDAnnotationParserRULE_updateClause = 3
	CRUDAnnotationParserRULE_deleteClause = 4
)

CRUDAnnotationParser rules.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseCRUDAnnotationListener

type BaseCRUDAnnotationListener struct{}

BaseCRUDAnnotationListener is a complete listener for a parse tree produced by CRUDAnnotationParser.

func (*BaseCRUDAnnotationListener) EnterCrud

func (s *BaseCRUDAnnotationListener) EnterCrud(ctx *CrudContext)

EnterCrud is called when production crud is entered.

func (*BaseCRUDAnnotationListener) EnterDeleteClause

func (s *BaseCRUDAnnotationListener) EnterDeleteClause(ctx *DeleteClauseContext)

EnterDeleteClause is called when production deleteClause is entered.

func (*BaseCRUDAnnotationListener) EnterEveryRule

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

EnterEveryRule is called when any rule is entered.

func (*BaseCRUDAnnotationListener) EnterInsertClause

func (s *BaseCRUDAnnotationListener) EnterInsertClause(ctx *InsertClauseContext)

EnterInsertClause is called when production insertClause is entered.

func (*BaseCRUDAnnotationListener) EnterSelectClause

func (s *BaseCRUDAnnotationListener) EnterSelectClause(ctx *SelectClauseContext)

EnterSelectClause is called when production selectClause is entered.

func (*BaseCRUDAnnotationListener) EnterUpdateClause

func (s *BaseCRUDAnnotationListener) EnterUpdateClause(ctx *UpdateClauseContext)

EnterUpdateClause is called when production updateClause is entered.

func (*BaseCRUDAnnotationListener) ExitCrud

func (s *BaseCRUDAnnotationListener) ExitCrud(ctx *CrudContext)

ExitCrud is called when production crud is exited.

func (*BaseCRUDAnnotationListener) ExitDeleteClause

func (s *BaseCRUDAnnotationListener) ExitDeleteClause(ctx *DeleteClauseContext)

ExitDeleteClause is called when production deleteClause is exited.

func (*BaseCRUDAnnotationListener) ExitEveryRule

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

ExitEveryRule is called when any rule is exited.

func (*BaseCRUDAnnotationListener) ExitInsertClause

func (s *BaseCRUDAnnotationListener) ExitInsertClause(ctx *InsertClauseContext)

ExitInsertClause is called when production insertClause is exited.

func (*BaseCRUDAnnotationListener) ExitSelectClause

func (s *BaseCRUDAnnotationListener) ExitSelectClause(ctx *SelectClauseContext)

ExitSelectClause is called when production selectClause is exited.

func (*BaseCRUDAnnotationListener) ExitUpdateClause

func (s *BaseCRUDAnnotationListener) ExitUpdateClause(ctx *UpdateClauseContext)

ExitUpdateClause is called when production updateClause is exited.

func (*BaseCRUDAnnotationListener) VisitErrorNode

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

VisitErrorNode is called when an error node is visited.

func (*BaseCRUDAnnotationListener) VisitTerminal

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

VisitTerminal is called when a terminal node is visited.

type CRUDAnnotationLexer

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

func NewCRUDAnnotationLexer

func NewCRUDAnnotationLexer(input antlr.CharStream) *CRUDAnnotationLexer

type CRUDAnnotationListener

type CRUDAnnotationListener interface {
	antlr.ParseTreeListener

	// EnterCrud is called when entering the crud production.
	EnterCrud(c *CrudContext)

	// EnterInsertClause is called when entering the insertClause production.
	EnterInsertClause(c *InsertClauseContext)

	// EnterSelectClause is called when entering the selectClause production.
	EnterSelectClause(c *SelectClauseContext)

	// EnterUpdateClause is called when entering the updateClause production.
	EnterUpdateClause(c *UpdateClauseContext)

	// EnterDeleteClause is called when entering the deleteClause production.
	EnterDeleteClause(c *DeleteClauseContext)

	// ExitCrud is called when exiting the crud production.
	ExitCrud(c *CrudContext)

	// ExitInsertClause is called when exiting the insertClause production.
	ExitInsertClause(c *InsertClauseContext)

	// ExitSelectClause is called when exiting the selectClause production.
	ExitSelectClause(c *SelectClauseContext)

	// ExitUpdateClause is called when exiting the updateClause production.
	ExitUpdateClause(c *UpdateClauseContext)

	// ExitDeleteClause is called when exiting the deleteClause production.
	ExitDeleteClause(c *DeleteClauseContext)
}

CRUDAnnotationListener is a complete listener for a parse tree produced by CRUDAnnotationParser.

type CRUDAnnotationParser

type CRUDAnnotationParser struct {
	*antlr.BaseParser
}

func NewCRUDAnnotationParser

func NewCRUDAnnotationParser(input antlr.TokenStream) *CRUDAnnotationParser

func (*CRUDAnnotationParser) Crud

func (p *CRUDAnnotationParser) Crud() (localctx ICrudContext)

func (*CRUDAnnotationParser) DeleteClause

func (p *CRUDAnnotationParser) DeleteClause() (localctx IDeleteClauseContext)

func (*CRUDAnnotationParser) InsertClause

func (p *CRUDAnnotationParser) InsertClause() (localctx IInsertClauseContext)

func (*CRUDAnnotationParser) SelectClause

func (p *CRUDAnnotationParser) SelectClause() (localctx ISelectClauseContext)

func (*CRUDAnnotationParser) UpdateClause

func (p *CRUDAnnotationParser) UpdateClause() (localctx IUpdateClauseContext)

type CrudContext

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

func NewCrudContext

func NewCrudContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CrudContext

func NewEmptyCrudContext

func NewEmptyCrudContext() *CrudContext

func (*CrudContext) DeleteClause

func (s *CrudContext) DeleteClause() IDeleteClauseContext

func (*CrudContext) EOF

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

func (*CrudContext) EnterRule

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

func (*CrudContext) ExitRule

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

func (*CrudContext) GetParser

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

func (*CrudContext) GetRuleContext

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

func (*CrudContext) InsertClause

func (s *CrudContext) InsertClause() IInsertClauseContext

func (*CrudContext) IsCrudContext

func (*CrudContext) IsCrudContext()

func (*CrudContext) SelectClause

func (s *CrudContext) SelectClause() ISelectClauseContext

func (*CrudContext) ToStringTree

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

func (*CrudContext) UpdateClause

func (s *CrudContext) UpdateClause() IUpdateClauseContext

type DeleteClauseContext

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

func NewDeleteClauseContext

func NewDeleteClauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *DeleteClauseContext

func NewEmptyDeleteClauseContext

func NewEmptyDeleteClauseContext() *DeleteClauseContext

func (*DeleteClauseContext) At

func (*DeleteClauseContext) Delete

func (*DeleteClauseContext) EnterRule

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

func (*DeleteClauseContext) ExitRule

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

func (*DeleteClauseContext) GetParser

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

func (*DeleteClauseContext) GetRuleContext

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

func (*DeleteClauseContext) GetSql

func (s *DeleteClauseContext) GetSql() antlr.Token

func (*DeleteClauseContext) IsDeleteClauseContext

func (*DeleteClauseContext) IsDeleteClauseContext()

func (*DeleteClauseContext) LeftParenthesis

func (s *DeleteClauseContext) LeftParenthesis() antlr.TerminalNode

func (*DeleteClauseContext) Literal

func (s *DeleteClauseContext) Literal() antlr.TerminalNode

func (*DeleteClauseContext) RightParenthesis

func (s *DeleteClauseContext) RightParenthesis() antlr.TerminalNode

func (*DeleteClauseContext) SetSql

func (s *DeleteClauseContext) SetSql(v antlr.Token)

func (*DeleteClauseContext) ToStringTree

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

type ICrudContext

type ICrudContext interface {
	antlr.ParserRuleContext

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

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

ICrudContext is an interface to support dynamic dispatch.

type IDeleteClauseContext

type IDeleteClauseContext interface {
	antlr.ParserRuleContext

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

	// GetSql returns the sql token.
	GetSql() antlr.Token

	// SetSql sets the sql token.
	SetSql(antlr.Token)

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

IDeleteClauseContext is an interface to support dynamic dispatch.

type IInsertClauseContext

type IInsertClauseContext interface {
	antlr.ParserRuleContext

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

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

IInsertClauseContext is an interface to support dynamic dispatch.

type ISelectClauseContext

type ISelectClauseContext interface {
	antlr.ParserRuleContext

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

	// GetSql returns the sql token.
	GetSql() antlr.Token

	// SetSql sets the sql token.
	SetSql(antlr.Token)

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

ISelectClauseContext is an interface to support dynamic dispatch.

type IUpdateClauseContext

type IUpdateClauseContext interface {
	antlr.ParserRuleContext

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

	// GetSql returns the sql token.
	GetSql() antlr.Token

	// SetSql sets the sql token.
	SetSql(antlr.Token)

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

IUpdateClauseContext is an interface to support dynamic dispatch.

type InsertClauseContext

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

func NewEmptyInsertClauseContext

func NewEmptyInsertClauseContext() *InsertClauseContext

func NewInsertClauseContext

func NewInsertClauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *InsertClauseContext

func (*InsertClauseContext) At

func (*InsertClauseContext) EnterRule

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

func (*InsertClauseContext) ExitRule

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

func (*InsertClauseContext) GetParser

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

func (*InsertClauseContext) GetRuleContext

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

func (*InsertClauseContext) Insert

func (*InsertClauseContext) IsInsertClauseContext

func (*InsertClauseContext) IsInsertClauseContext()

func (*InsertClauseContext) LeftParenthesis

func (s *InsertClauseContext) LeftParenthesis() antlr.TerminalNode

func (*InsertClauseContext) RightParenthesis

func (s *InsertClauseContext) RightParenthesis() antlr.TerminalNode

func (*InsertClauseContext) ToStringTree

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

type SelectClauseContext

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

func NewEmptySelectClauseContext

func NewEmptySelectClauseContext() *SelectClauseContext

func NewSelectClauseContext

func NewSelectClauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SelectClauseContext

func (*SelectClauseContext) At

func (*SelectClauseContext) EnterRule

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

func (*SelectClauseContext) ExitRule

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

func (*SelectClauseContext) GetParser

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

func (*SelectClauseContext) GetRuleContext

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

func (*SelectClauseContext) GetSql

func (s *SelectClauseContext) GetSql() antlr.Token

func (*SelectClauseContext) IsSelectClauseContext

func (*SelectClauseContext) IsSelectClauseContext()

func (*SelectClauseContext) LeftParenthesis

func (s *SelectClauseContext) LeftParenthesis() antlr.TerminalNode

func (*SelectClauseContext) Literal

func (s *SelectClauseContext) Literal() antlr.TerminalNode

func (*SelectClauseContext) RightParenthesis

func (s *SelectClauseContext) RightParenthesis() antlr.TerminalNode

func (*SelectClauseContext) Select

func (*SelectClauseContext) SetSql

func (s *SelectClauseContext) SetSql(v antlr.Token)

func (*SelectClauseContext) ToStringTree

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

type UpdateClauseContext

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

func NewEmptyUpdateClauseContext

func NewEmptyUpdateClauseContext() *UpdateClauseContext

func NewUpdateClauseContext

func NewUpdateClauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *UpdateClauseContext

func (*UpdateClauseContext) At

func (*UpdateClauseContext) EnterRule

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

func (*UpdateClauseContext) ExitRule

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

func (*UpdateClauseContext) GetParser

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

func (*UpdateClauseContext) GetRuleContext

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

func (*UpdateClauseContext) GetSql

func (s *UpdateClauseContext) GetSql() antlr.Token

func (*UpdateClauseContext) IsUpdateClauseContext

func (*UpdateClauseContext) IsUpdateClauseContext()

func (*UpdateClauseContext) LeftParenthesis

func (s *UpdateClauseContext) LeftParenthesis() antlr.TerminalNode

func (*UpdateClauseContext) Literal

func (s *UpdateClauseContext) Literal() antlr.TerminalNode

func (*UpdateClauseContext) RightParenthesis

func (s *UpdateClauseContext) RightParenthesis() antlr.TerminalNode

func (*UpdateClauseContext) SetSql

func (s *UpdateClauseContext) SetSql(v antlr.Token)

func (*UpdateClauseContext) ToStringTree

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

func (*UpdateClauseContext) Update

Jump to

Keyboard shortcuts

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