C# Class Spring.Expressions.Parser.antlr.CharScanner

Inheritance: TokenStream, ICharScannerDebugSubject
Show file Open project: spring-projects/spring-net Class Usage Examples

Public Properties

Property Type Description
EOF_CHAR char

Protected Properties

Property Type Description
cached_LA1 char
cached_LA2 char
caseSensitive bool
caseSensitiveLiterals bool
commitToPath bool
inputState LexerSharedInputState
literals System.Collections.Hashtable
returnToken_ IToken
saveConsumedInput bool
tabsize int
text System.Text.StringBuilder
tokenCreator TokenCreator
traceDepth int

Public Methods

Method Description
CharScanner ( ) : System
CharScanner ( InputBuffer cb ) : System
CharScanner ( LexerSharedInputState sharedState ) : System
LA ( int i ) : char
append ( char c ) : void
append ( string s ) : void
commit ( ) : void
consume ( ) : void
consumeUntil ( Spring.Expressions.Parser.antlr.collections.impl.BitSet bset ) : void
consumeUntil ( int c ) : void
getCaseSensitive ( ) : bool
getCaseSensitiveLiterals ( ) : bool
getColumn ( ) : int
getCommitToPath ( ) : bool
getFilename ( ) : string
getInputBuffer ( ) : InputBuffer
getInputState ( ) : LexerSharedInputState
getLine ( ) : int
getTabSize ( ) : int
getText ( ) : string
getTokenObject ( ) : IToken
mark ( ) : int
match ( Spring.Expressions.Parser.antlr.collections.impl.BitSet b ) : void
match ( char c ) : void
match ( int c ) : void
match ( string s ) : void
matchNot ( char c ) : void
matchNot ( int c ) : void
matchRange ( char c1, char c2 ) : void
matchRange ( int c1, int c2 ) : void
newline ( ) : void
nextToken ( ) : IToken
panic ( ) : void
panic ( string s ) : void

This method is executed by ANTLR internally when it detected an illegal state that cannot be recovered from. The previous implementation of this method called Environment.Exit and writes directly to Console.Error, which is usually not appropriate when a translator is embedded into a larger application.

recover ( Spring.Expressions.Parser.antlr.RecognitionException ex, Spring.Expressions.Parser.antlr.collections.impl.BitSet tokenSet ) : void
refresh ( ) : void
reportError ( Spring.Expressions.Parser.antlr.RecognitionException ex ) : void
reportError ( string s ) : void
reportWarning ( string s ) : void
resetState ( InputBuffer ib ) : void
resetState ( System.IO.Stream s ) : void
resetState ( System.IO.TextReader tr ) : void
resetText ( ) : void
rewind ( int pos ) : void
setCaseSensitive ( bool t ) : void
setColumn ( int c ) : void
setCommitToPath ( bool commit ) : void
setFilename ( string f ) : void
setInputState ( LexerSharedInputState state ) : void
setLine ( int line ) : void
setTabSize ( int size ) : void
setText ( string s ) : void
setTokenCreator ( TokenCreator tokenCreator ) : void
setTokenObjectClass ( string cl ) : void
tab ( ) : void
testLiteralsTable ( int ttype ) : int
testLiteralsTable ( string someText, int ttype ) : int
toLower ( int c ) : char
traceIn ( string rname ) : void
traceIndent ( ) : void
traceOut ( string rname ) : void
uponEOF ( ) : void

Protected Methods

Method Description
makeToken ( int t ) : IToken

Method Details

CharScanner() public method

public CharScanner ( ) : System
return System

CharScanner() public method

public CharScanner ( InputBuffer cb ) : System
cb InputBuffer
return System

CharScanner() public method

public CharScanner ( LexerSharedInputState sharedState ) : System
sharedState LexerSharedInputState
return System

LA() public method

public LA ( int i ) : char
i int
return char

append() public method

public append ( char c ) : void
c char
return void

append() public method

public append ( string s ) : void
s string
return void

commit() public method

public commit ( ) : void
return void

consume() public method

public consume ( ) : void
return void

consumeUntil() public method

public consumeUntil ( Spring.Expressions.Parser.antlr.collections.impl.BitSet bset ) : void
bset Spring.Expressions.Parser.antlr.collections.impl.BitSet
return void

consumeUntil() public method

public consumeUntil ( int c ) : void
c int
return void

getCaseSensitive() public method

public getCaseSensitive ( ) : bool
return bool

getCaseSensitiveLiterals() public method

public getCaseSensitiveLiterals ( ) : bool
return bool

getColumn() public method

public getColumn ( ) : int
return int

getCommitToPath() public method

public getCommitToPath ( ) : bool
return bool

getFilename() public method

public getFilename ( ) : string
return string

getInputBuffer() public method

public getInputBuffer ( ) : InputBuffer
return InputBuffer

getInputState() public method

public getInputState ( ) : LexerSharedInputState
return LexerSharedInputState

getLine() public method

public getLine ( ) : int
return int

getTabSize() public method

public getTabSize ( ) : int
return int

getText() public method

public getText ( ) : string
return string

getTokenObject() public method

public getTokenObject ( ) : IToken
return IToken

makeToken() protected method

protected makeToken ( int t ) : IToken
t int
return IToken

mark() public method

public mark ( ) : int
return int

match() public method

public match ( Spring.Expressions.Parser.antlr.collections.impl.BitSet b ) : void
b Spring.Expressions.Parser.antlr.collections.impl.BitSet
return void

match() public method

public match ( char c ) : void
c char
return void

match() public method

public match ( int c ) : void
c int
return void

match() public method

public match ( string s ) : void
s string
return void

matchNot() public method

public matchNot ( char c ) : void
c char
return void

matchNot() public method

public matchNot ( int c ) : void
c int
return void

matchRange() public method

public matchRange ( char c1, char c2 ) : void
c1 char
c2 char
return void

matchRange() public method

public matchRange ( int c1, int c2 ) : void
c1 int
c2 int
return void

newline() public method

public newline ( ) : void
return void

nextToken() public method

public nextToken ( ) : IToken
return IToken

panic() public method

public panic ( ) : void
return void

panic() public method

This method is executed by ANTLR internally when it detected an illegal state that cannot be recovered from. The previous implementation of this method called Environment.Exit and writes directly to Console.Error, which is usually not appropriate when a translator is embedded into a larger application.
public panic ( string s ) : void
s string Error message.
return void

recover() public method

public recover ( Spring.Expressions.Parser.antlr.RecognitionException ex, Spring.Expressions.Parser.antlr.collections.impl.BitSet tokenSet ) : void
ex Spring.Expressions.Parser.antlr.RecognitionException
tokenSet Spring.Expressions.Parser.antlr.collections.impl.BitSet
return void

refresh() public method

public refresh ( ) : void
return void

reportError() public method

public reportError ( Spring.Expressions.Parser.antlr.RecognitionException ex ) : void
ex Spring.Expressions.Parser.antlr.RecognitionException
return void

reportError() public method

public reportError ( string s ) : void
s string
return void

reportWarning() public method

public reportWarning ( string s ) : void
s string
return void

resetState() public method

public resetState ( InputBuffer ib ) : void
ib InputBuffer
return void

resetState() public method

public resetState ( System.IO.Stream s ) : void
s System.IO.Stream
return void

resetState() public method

public resetState ( System.IO.TextReader tr ) : void
tr System.IO.TextReader
return void

resetText() public method

public resetText ( ) : void
return void

rewind() public method

public rewind ( int pos ) : void
pos int
return void

setCaseSensitive() public method

public setCaseSensitive ( bool t ) : void
t bool
return void

setColumn() public method

public setColumn ( int c ) : void
c int
return void

setCommitToPath() public method

public setCommitToPath ( bool commit ) : void
commit bool
return void

setFilename() public method

public setFilename ( string f ) : void
f string
return void

setInputState() public method

public setInputState ( LexerSharedInputState state ) : void
state LexerSharedInputState
return void

setLine() public method

public setLine ( int line ) : void
line int
return void

setTabSize() public method

public setTabSize ( int size ) : void
size int
return void

setText() public method

public setText ( string s ) : void
s string
return void

setTokenCreator() public method

public setTokenCreator ( TokenCreator tokenCreator ) : void
tokenCreator TokenCreator
return void

setTokenObjectClass() public method

public setTokenObjectClass ( string cl ) : void
cl string
return void

tab() public method

public tab ( ) : void
return void

testLiteralsTable() public method

public testLiteralsTable ( int ttype ) : int
ttype int
return int

testLiteralsTable() public method

public testLiteralsTable ( string someText, int ttype ) : int
someText string
ttype int
return int

toLower() public method

public toLower ( int c ) : char
c int
return char

traceIn() public method

public traceIn ( string rname ) : void
rname string
return void

traceIndent() public method

public traceIndent ( ) : void
return void

traceOut() public method

public traceOut ( string rname ) : void
rname string
return void

uponEOF() public method

public uponEOF ( ) : void
return void

Property Details

EOF_CHAR public static property

public static char EOF_CHAR
return char

cached_LA1 protected property

Used for caching lookahead characters.
protected char cached_LA1
return char

cached_LA2 protected property

protected char cached_LA2
return char

caseSensitive protected property

protected bool caseSensitive
return bool

caseSensitiveLiterals protected property

protected bool caseSensitiveLiterals
return bool

commitToPath protected property

protected bool commitToPath
return bool

inputState protected property

protected LexerSharedInputState,Spring.Expressions.Parser.antlr inputState
return LexerSharedInputState

literals protected property

protected System.Collections.Hashtable literals
return System.Collections.Hashtable

returnToken_ protected property

protected IToken returnToken_
return IToken

saveConsumedInput protected property

protected bool saveConsumedInput
return bool

tabsize protected property

protected int tabsize
return int

text protected property

protected System.Text.StringBuilder text
return System.Text.StringBuilder

tokenCreator protected property

Used for creating Token instances.
protected TokenCreator,Spring.Expressions.Parser.antlr tokenCreator
return TokenCreator

traceDepth protected property

protected int traceDepth
return int