메소드 | 설명 | |
---|---|---|
GetToken ( ) : |
Returns the next token from the current position.
|
|
PeekToken ( int lookAhead ) : |
Returns the token at the specificed lookahead count.
|
|
RestoreState ( Stack |
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 ( ) : |
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 ( ) : |
||
ReadNVelocityMultiLineComment ( ) : |
||
ReadNVelocityReference ( ) : |
||
ReadNVelocityToken ( ) : |
||
ReadText ( TokenType tokenType, StopScanningDelegate stopScanningDelegate ) : |
||
ReadXmlComment ( ) : void | ||
ScanTokenDefault ( ) : |
Scans the input and returns XML text tokens.
|
|
ScanTokenNVBrack ( ) : |
||
ScanTokenNVDictionary ( ) : |
||
ScanTokenNVDictionaryInner ( ) : |
||
ScanTokenNVDirective ( ) : |
||
ScanTokenNVDirectiveParams ( ) : |
||
ScanTokenNVMultilineComment ( ) : |
||
ScanTokenNVParens ( ) : |
||
ScanTokenNVPreDirective ( ) : |
||
ScanTokenNVReference ( ) : |
||
ScanTokenNVReferenceSelectors ( ) : |
||
ScanTokenNVStringLiteralDouble ( ) : |
||
ScanTokenNVStringLiteralSingle ( ) : |
||
ScanTokenXmlCData ( ) : |
||
ScanTokenXmlComment ( ) : |
||
ScanTokenXmlScriptElementContent ( ) : |
||
ScanTokenXmlTag ( ) : |
||
ScanTokenXmlTagAttributeValue ( ) : |
||
ScannerStateToString ( ScannerState state ) : string | ||
SetUpReservedWords ( ) : void |
public PeekToken ( int lookAhead ) : |
||
lookAhead | int | The number of tokens to lookahead. |
리턴 |
public RestoreState ( Stack |
||
restoredState | Stack |
|
리턴 | void |
public SetSource ( string source ) : void | ||
source | string | The input template source. |
리턴 | void |