public final class SourceCodeTokenizerInternal extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
_bUnterminatedComment |
boolean |
_bUnterminatedString |
int |
_iInvalidCharPos |
int |
_iType |
Keyword |
_keyword |
String |
_strValue |
protected static int |
CT_ALPHA |
protected static int |
CT_BITSHIFT_OPERATOR |
protected static int |
CT_CHARQUOTE |
protected static int |
CT_COMMENT |
protected static int |
CT_DIGIT |
protected static int |
CT_OPERATOR |
protected static int |
CT_QUOTE |
protected static int |
CT_WHITESPACE |
Constructor and Description |
---|
SourceCodeTokenizerInternal(CharSequence sourceCode) |
SourceCodeTokenizerInternal(Reader reader) |
SourceCodeTokenizerInternal(SourceCodeReader reader) |
SourceCodeTokenizerInternal(SourceCodeReader reader,
ITokenizerInstructor instructor) |
protected static final int CT_WHITESPACE
protected static final int CT_DIGIT
protected static final int CT_ALPHA
protected static final int CT_QUOTE
protected static final int CT_COMMENT
protected static final int CT_OPERATOR
protected static final int CT_BITSHIFT_OPERATOR
protected static final int CT_CHARQUOTE
public int _iType
public Keyword _keyword
public String _strValue
public int _iInvalidCharPos
public boolean _bUnterminatedString
public boolean _bUnterminatedComment
public SourceCodeTokenizerInternal(CharSequence sourceCode)
public SourceCodeTokenizerInternal(Reader reader)
public SourceCodeTokenizerInternal(SourceCodeReader reader)
public SourceCodeTokenizerInternal(SourceCodeReader reader, ITokenizerInstructor instructor)
public Token copy()
public void reset()
public void reset(Reader reader)
public void reset(SourceCodeReader reader)
public SourceCodeReader getReader()
public String getSource()
public ITokenizerInstructor getInstructor()
public void setInstructor(ITokenizerInstructor instructor)
public boolean isWhitespaceSignificant()
public void setWhitespaceSignificant(boolean bWhitespaceSignificant)
public boolean isCommentsSignificant()
public void setCommentsSignificant(boolean bCommentsSignificant)
public int getLineNumber()
public int getLineOffset()
protected void incrementLineNumber()
public int getTokenColumn()
public void wordChars(int iLow, int iHigh)
public void whitespaceChars(int iLow, int iHigh)
public void ordinaryChars(int iLow, int iHigh)
public void ordinaryChar(int ch)
public static String[] getDefaultOperators()
public static String[] getBitshiftOperators()
public void operators(String[] astrOperators)
public void operatorChars(int iLow, int iHigh)
public void bitshiftOperatorChars(int iLow, int iHigh)
public boolean isOperator(String strOperator)
public void commentChar(int ch)
public void quoteChar(int ch)
public void charQuoteChar(int ch)
public void parseNumbers()
public void eolIsSignificant(boolean bFlag)
public void lowerCaseMode(boolean bLowerCaseMode)
public boolean isUnterminatedString()
public boolean isUnterminatedComment()
public void setParseDotsAsOperators(boolean parseDotsAsOperators)
public boolean isParseDotsAsOperators()
public DocCommentBlock popLastComment()
public int getTokenStart()
public int getTokenEnd()
protected int readWithInstructions(int c) throws IOException
IOException
public boolean isAnalyzingSeparately()
public boolean isAnalyzingDirective()
public int nextToken() throws IOException
IOException
public int getType()
public boolean isEOF()
public boolean isNOTHING()
public Token getEofToken()
public boolean isSupportsKeywords()
public void setSupportsKeywords(boolean supportsKeywords)
Copyright © 2016. All rights reserved.