C# Class Parser.SimpleOneWordTag

The base class for such tags as Select, From etc.
Inheritance: TagBase
Datei anzeigen Open project: totpero/SqlParser Class Usage Examples

Public Methods

Method Description
MatchEnd ( string sql, int position ) : int

Returns a value indicating whether there is the tag ending at the specified position.

WriteEnd ( StringBuilder output ) : void

Writes the end of the tag.

WriteStart ( StringBuilder output ) : void

Writes the start of the tag.

Protected Methods

Method Description
InitializeCoreFromText ( ParserBase parser, string sql, int position, TagBase parentTag ) : int

Reads the tag at the specified position in the specified sql.

MatchStart ( string sql, int position ) : int

Checks whether there is the tag at the specified position in the specified sql.

Private Methods

Method Description
MatchStart ( string name, string sql, int position ) : int

Checks whether there is the tag at the specified position in the specified sql.

Method Details

InitializeCoreFromText() protected method

Reads the tag at the specified position in the specified sql.
protected InitializeCoreFromText ( ParserBase parser, string sql, int position, TagBase parentTag ) : int
parser ParserBase
sql string
position int
parentTag TagBase
return int

MatchEnd() public method

Returns a value indicating whether there is the tag ending at the specified position.
public MatchEnd ( string sql, int position ) : int
sql string
position int
return int

MatchStart() protected method

Checks whether there is the tag at the specified position in the specified sql.
protected MatchStart ( string sql, int position ) : int
sql string
position int
return int

WriteEnd() public method

Writes the end of the tag.
public WriteEnd ( StringBuilder output ) : void
output StringBuilder
return void

WriteStart() public method

Writes the start of the tag.
public WriteStart ( StringBuilder output ) : void
output StringBuilder
return void