Package com.adbs.ast
Class BaseScanner
- java.lang.Object
 - 
- com.adbs.ast.BaseScanner
 
 
- 
public abstract class BaseScanner extends java.lang.Object 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected booleanallowCommentsprotected booleanallowSpacesprotected Bufferbufferprotected intchprotected java.util.BitSetignoreprotected intlineprotected intlineStartprotected intoldEolsprotected intposprotected StartTablestartprotected charvalCh 
- 
Constructor Summary
Constructors Constructor Description BaseScanner() 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidcheckLiteral(Token t)booleangetAllowComments()booleangetAllowSpaces()intgetCount()TokengetToken(int i)voidinit(java.lang.String s)abstract voidinitInternal()protected voidnextCh()abstract TokennextToken()voidsetAllowComments(boolean value)voidsetAllowSpaces(boolean value) 
 - 
 
- 
- 
Field Detail
- 
buffer
protected Buffer buffer
 
- 
ch
protected int ch
 
- 
valCh
protected char valCh
 
- 
pos
protected int pos
 
- 
line
protected int line
 
- 
lineStart
protected int lineStart
 
- 
oldEols
protected int oldEols
 
- 
ignore
protected java.util.BitSet ignore
 
- 
allowComments
protected boolean allowComments
 
- 
allowSpaces
protected boolean allowSpaces
 
- 
start
protected StartTable start
 
 - 
 
- 
Method Detail
- 
getCount
public int getCount()
 
- 
getAllowComments
public boolean getAllowComments()
 
- 
setAllowComments
public void setAllowComments(boolean value)
 
- 
getAllowSpaces
public boolean getAllowSpaces()
 
- 
setAllowSpaces
public void setAllowSpaces(boolean value)
 
- 
init
public void init(java.lang.String s)
 
- 
getToken
public Token getToken(int i)
 
- 
nextCh
protected void nextCh()
 
- 
checkLiteral
public abstract void checkLiteral(Token t)
 
- 
nextToken
public abstract Token nextToken()
 
- 
initInternal
public abstract void initInternal()
 
 - 
 
 -