C# 클래스 Castle.NVelocity.Scanner

파일 보기 프로젝트 열기: jonorossi/cvsi 1 사용 예제들

공개 메소드들

메소드 설명
GetToken ( ) : Token

Returns the next token from the current position.

PeekToken ( int lookAhead ) : Token

Returns the token at the specificed lookahead count.

RestoreState ( Stack restoredState ) : void

Sets the stack of state information to the scanner. The scanner copies the data from the stack and does not use the passed instance of a stack.

RetrieveState ( ) : Stack

Returns the stack of state information from the scanner. The returned stack is a new stack object created from the data in the state stack.

Scanner ( ErrorHandler errors ) : System

Creates a new Scanner.

SetSource ( string source ) : void

Initialises the scanner with an input ready for scanner.

비공개 메소드들

메소드 설명
AddError ( string description ) : void
ConsumeSingleLineWhiteSpace ( ) : void
ConsumeWhiteSpace ( ) : void
GetCh ( ) : void

Moves the current position to the next character in the input.

GetCh ( int count ) : void

Moves the current position the specified number of characters ahead.

GetNextToken ( ) : Token

Returns the next token from the scanner beginning from the current internal position, which ignores the preread tokens.

LookAhead ( int lookAhead ) : char

Returns the character at the specified number of characters ahead from the current position.

NVDirectiveFollows ( ) : bool
NVReferenceFollows ( ) : bool
NextCharAfterSingleLineWhiteSpace ( ) : char
ReadNVelocityIdentifier ( ) : Token
ReadNVelocityMultiLineComment ( ) : Token
ReadNVelocityReference ( ) : Token
ReadNVelocityToken ( ) : Token
ReadText ( TokenType tokenType, StopScanningDelegate stopScanningDelegate ) : Token
ReadXmlComment ( ) : void
ScanTokenDefault ( ) : Token

Scans the input and returns XML text tokens.

ScanTokenNVBrack ( ) : Token
ScanTokenNVDictionary ( ) : Token
ScanTokenNVDictionaryInner ( ) : Token
ScanTokenNVDirective ( ) : Token
ScanTokenNVDirectiveParams ( ) : Token
ScanTokenNVMultilineComment ( ) : Token
ScanTokenNVParens ( ) : Token
ScanTokenNVPreDirective ( ) : Token
ScanTokenNVReference ( ) : Token
ScanTokenNVReferenceSelectors ( ) : Token
ScanTokenNVStringLiteralDouble ( ) : Token
ScanTokenNVStringLiteralSingle ( ) : Token
ScanTokenXmlCData ( ) : Token
ScanTokenXmlComment ( ) : Token
ScanTokenXmlScriptElementContent ( ) : Token
ScanTokenXmlTag ( ) : Token
ScanTokenXmlTagAttributeValue ( ) : Token
ScannerStateToString ( ScannerState state ) : string
SetUpReservedWords ( ) : void

메소드 상세

GetToken() 공개 메소드

Returns the next token from the current position.
public GetToken ( ) : Token
리턴 Token

PeekToken() 공개 메소드

Returns the token at the specificed lookahead count.
public PeekToken ( int lookAhead ) : Token
lookAhead int The number of tokens to lookahead.
리턴 Token

RestoreState() 공개 메소드

Sets the stack of state information to the scanner. The scanner copies the data from the stack and does not use the passed instance of a stack.
public RestoreState ( Stack restoredState ) : void
restoredState Stack
리턴 void

RetrieveState() 공개 메소드

Returns the stack of state information from the scanner. The returned stack is a new stack object created from the data in the state stack.
public RetrieveState ( ) : Stack
리턴 Stack

Scanner() 공개 메소드

Creates a new Scanner.
public Scanner ( ErrorHandler errors ) : System
errors ErrorHandler
리턴 System

SetSource() 공개 메소드

Initialises the scanner with an input ready for scanner.
public SetSource ( string source ) : void
source string The input template source.
리턴 void