C# 클래스 Spring.Expressions.Parser.antlr.InputBuffer

Represents a stream of characters fed to the lexer from that can be rewound via mark()/rewind() methods.

A dynamic array is used to buffer up all the input characters. Normally, "k" characters are stored in the buffer. More characters may be stored during guess mode (testing syntactic predicate), or when LT(i>k) is referenced. Consumption of characters is deferred. In other words, reading the next character is not done by conume(), but deferred until needed by LA or LT.

파일 보기 프로젝트 열기: spring-projects/spring-net 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
markerOffset int
nMarkers int
numToConsume int
queue System.Collections.ArrayList

공개 메소드들

메소드 설명
InputBuffer ( )
LA ( int i ) : char
commit ( ) : void
consume ( ) : char
fill ( int amount ) : void
getLAChars ( ) : string
getMarkedChars ( ) : string
isMarked ( ) : bool
mark ( ) : int
reset ( ) : void
rewind ( int mark ) : void

보호된 메소드들

메소드 설명
syncConsume ( ) : void

메소드 상세

InputBuffer() 공개 메소드

public InputBuffer ( )

LA() 공개 메소드

public LA ( int i ) : char
i int
리턴 char

commit() 공개 메소드

public commit ( ) : void
리턴 void

consume() 공개 메소드

public consume ( ) : char
리턴 char

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

public abstract fill ( int amount ) : void
amount int
리턴 void

getLAChars() 공개 메소드

public getLAChars ( ) : string
리턴 string

getMarkedChars() 공개 메소드

public getMarkedChars ( ) : string
리턴 string

isMarked() 공개 메소드

public isMarked ( ) : bool
리턴 bool

mark() 공개 메소드

public mark ( ) : int
리턴 int

reset() 공개 메소드

public reset ( ) : void
리턴 void

rewind() 공개 메소드

public rewind ( int mark ) : void
mark int
리턴 void

syncConsume() 보호된 메소드

protected syncConsume ( ) : void
리턴 void

프로퍼티 상세

markerOffset 보호되어 있는 프로퍼티

protected int markerOffset
리턴 int

nMarkers 보호되어 있는 프로퍼티

protected int nMarkers
리턴 int

numToConsume 보호되어 있는 프로퍼티

protected int numToConsume
리턴 int

queue 보호되어 있는 프로퍼티

protected System.Collections.ArrayList queue
리턴 System.Collections.ArrayList