C# 클래스 Parser.TagBase

The base class for all the tags.
파일 보기 프로젝트 열기: totpero/SqlParser 1 사용 예제들

공개 메소드들

메소드 설명
GetTagMatchAttribute ( Type tag ) : MatchTagAttributeBase

Returns the match attribute of the specified class. This attribute is used to identify a tag in a text.

GetTagType ( Type tag ) : string

Returns the type of the specified tag (its identifier). This method is used by the Type property.

InitializeFromData ( ParserBase parser, string value, bool hasContents ) : void

Reads the tag from the specified data.

InitializeFromText ( ParserBase parser, string text, int position, TagBase parentTag ) : int

Reads the tag at the specified position in the specified word and separator array.

MatchEnd ( string text, 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.

보호된 메소드들

메소드 설명
CheckInitialized ( ) : void

Checks whether the tag is initialized, and throws an exception if not. This method should be called before a tag porperty or method is accessed.

InitializeCoreFromText ( ParserBase parser, string text, int position, TagBase parentTag ) : int

Reads the tag at the specified position in the specified word and separator array.

InitializeFromDataCore ( ParserBase parser, string value, bool hasContents ) : void

Reads the tag from the specified data.

메소드 상세

CheckInitialized() 보호된 메소드

Checks whether the tag is initialized, and throws an exception if not. This method should be called before a tag porperty or method is accessed.
protected CheckInitialized ( ) : void
리턴 void

GetTagMatchAttribute() 공개 정적인 메소드

Returns the match attribute of the specified class. This attribute is used to identify a tag in a text.
public static GetTagMatchAttribute ( Type tag ) : MatchTagAttributeBase
tag System.Type
리턴 MatchTagAttributeBase

GetTagType() 공개 정적인 메소드

Returns the type of the specified tag (its identifier). This method is used by the Type property.
public static GetTagType ( Type tag ) : string
tag System.Type
리턴 string

InitializeCoreFromText() 보호된 추상적인 메소드

Reads the tag at the specified position in the specified word and separator array.
protected abstract InitializeCoreFromText ( ParserBase parser, string text, int position, TagBase parentTag ) : int
parser ParserBase
text string
position int
parentTag TagBase /// The parent tag of this tag. This argument is used to determine /// the end of the tag (it can be the end of the parent tag). ///
리턴 int

InitializeFromData() 공개 메소드

Reads the tag from the specified data.
public InitializeFromData ( ParserBase parser, string value, bool hasContents ) : void
parser ParserBase
value string
hasContents bool
리턴 void

InitializeFromDataCore() 보호된 메소드

Reads the tag from the specified data.
protected InitializeFromDataCore ( ParserBase parser, string value, bool hasContents ) : void
parser ParserBase
value string
hasContents bool
리턴 void

InitializeFromText() 공개 메소드

Reads the tag at the specified position in the specified word and separator array.
public InitializeFromText ( ParserBase parser, string text, int position, TagBase parentTag ) : int
parser ParserBase
text string
position int
parentTag TagBase /// The parent tag of this tag. This argument is used to determine /// the end of the tag (it can be the end of the parent tag). ///
리턴 int

MatchEnd() 공개 메소드

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

WriteEnd() 공개 메소드

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

WriteStart() 공개 추상적인 메소드

Writes the start of the tag.
public abstract WriteStart ( StringBuilder output ) : void
output StringBuilder
리턴 void