Package com.sun.tools.corba.ee.idl
Class Scanner
java.lang.Object
com.sun.tools.corba.ee.idl.Scanner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate floatprivate ScannerDataprivate Stackprivate boolean(package private) static final intprivate boolean(package private) boolean(package private) static final int(package private) static final int(package private) static final intprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionScanner(IncludeEntry file, String[] keywords, boolean vbose, boolean emitAllIncludes, float cLevel, boolean debug) -
Method Summary
Modifier and TypeMethodDescriptionprivate StringappendToString(String string, boolean allowQuote, boolean allowCharLit, boolean allowComment) private StringblankOutMatch(String string, int start, int length) (package private) String(package private) int(package private) int(package private) IncludeEntry(package private) Stringfilename()private intprivate StringExtract a block comment from the input buffer.private TokengetCharacterToken(boolean isWide) private Tokenprivate TokengetExponent(String string) private TokengetFraction(String string) private Tokenprivate TokengetHexNumber(String string) private StringgetIdentifier(String string) private Tokenprivate StringExtract a line comment from the input buffer.private intgetNDigitHexNumber(int n) private Tokenprivate Tokenprivate Token(package private) String(package private) TokengetToken()(package private) StringgetUntil(char c) (package private) StringgetUntil(char c, boolean allowQuote, boolean allowCharLit, boolean allowComment) (package private) StringgetUntil(char c1, char c2) private StringStarting at a quote, reads a string with possible unicode or octal values until an end quote.private booleanisHexChar(char hex) private TokenisItHex()(package private) String(package private) int(package private) intprivate booleanmatchesClosedWildKeyword(String string) private StringmatchesOpenWildcard(String string) (package private) voidreadChar()(package private) voidreadFile(IncludeEntry file) (package private) voidreadFile(IncludeEntry file, String filename) private Token(package private) voidscanIncludedFile(IncludeEntry file, String filename, boolean includeIsImport) (package private) voidscanString(String string) private TokensingleCharEscapeSequence(boolean isWide) private void(package private) void(package private) TokenskipUntil(char c) (package private) void(package private) voidsortKeywords(String[] keywords) private voidunread(char ch) private booleanwildcardAtEitherEnd(String string) private booleanwildcardsInside(String string)
-
Field Details
-
Star
static final int Star- See Also:
-
Plus
static final int Plus- See Also:
-
Dot
static final int Dot- See Also:
-
None
static final int None- See Also:
-
BOL
private int BOL -
data
-
dataStack
-
keywords
-
openEndedKeywords
-
wildcardKeywords
-
verbose
private boolean verbose -
escapedOK
boolean escapedOK -
emitAll
private boolean emitAll -
corbaLevel
private float corbaLevel -
debug
private boolean debug
-
-
Constructor Details
-
Scanner
Scanner(IncludeEntry file, String[] keywords, boolean vbose, boolean emitAllIncludes, float cLevel, boolean debug) throws IOException - Throws:
IOException
-
-
Method Details
-
sortKeywords
-
wildcardAtEitherEnd
-
wildcardsInside
-
readFile
- Throws:
IOException
-
readFile
- Throws:
IOException
-
getToken
- Throws:
IOException
-
scanString
-
scanIncludedFile
void scanIncludedFile(IncludeEntry file, String filename, boolean includeIsImport) throws IOException - Throws:
IOException
-
unread
private void unread(char ch) -
readChar
- Throws:
IOException
-
getWString
Starting at a quote, reads a string with possible unicode or octal values until an end quote. Doesn't handle line feeds or comments.- Throws:
IOException
-
getCharacterToken
- Throws:
IOException
-
singleCharEscapeSequence
- Throws:
IOException
-
getString
- Throws:
IOException
-
matchesClosedWildKeyword
-
matchesOpenWildcard
-
blankOutMatch
-
getIdentifier
-
getDirective
- Throws:
IOException
-
getNumber
- Throws:
IOException
-
getFractionNoInteger
- Throws:
IOException
-
getFraction
- Throws:
IOException
-
getExponent
- Throws:
IOException
-
isItHex
- Throws:
IOException
-
getOctalNumber
- Throws:
IOException
-
getHexNumber
- Throws:
IOException
-
getNDigitHexNumber
- Throws:
IOException
-
isHexChar
private boolean isHexChar(char hex) -
get3DigitOctalNumber
- Throws:
IOException
-
getInteger
- Throws:
IOException
-
replaceTrigraph
- Throws:
IOException
-
skipWhiteSpace
- Throws:
IOException
-
skipBlockComment
- Throws:
IOException
-
skipLineComment
- Throws:
IOException
-
getLineComment
Extract a line comment from the input buffer.- Throws:
IOException
-
getBlockComment
Extract a block comment from the input buffer.- Throws:
IOException
-
skipUntil
- Throws:
IOException
-
getUntil
- Throws:
IOException
-
getUntil
String getUntil(char c, boolean allowQuote, boolean allowCharLit, boolean allowComment) throws IOException - Throws:
IOException
-
getUntil
- Throws:
IOException
-
appendToString
private String appendToString(String string, boolean allowQuote, boolean allowCharLit, boolean allowComment) throws IOException - Throws:
IOException
-
getStringToEOL
- Throws:
IOException
-
filename
String filename() -
fileEntry
IncludeEntry fileEntry() -
currentLineNumber
int currentLineNumber() -
lastTokenLineNumber
int lastTokenLineNumber() -
currentLine
String currentLine() -
lastTokenLine
String lastTokenLine() -
currentLinePosition
int currentLinePosition() -
lastTokenLinePosition
int lastTokenLinePosition()
-