Scanner
C D E F G I J K L N O P R S T U V Y

C

close() - Method in interface edu.tum.cs.scanner.IScanner
Close scanner and any underlying readers.
CobolToken - Class in edu.tum.cs.scanner
Class for Cobol tokens generated by the Cobol scanner.
CobolToken(ETokenType, int, int, String, Object) - Constructor for class edu.tum.cs.scanner.CobolToken
Create new Cobol token.
COMMENTS - Static variable in enum edu.tum.cs.scanner.ETokenType
An enum set containing all comments.
CPPToken - Class in edu.tum.cs.scanner
Class for C/C++ tokens generated by the C/C++ scanner.
CPPToken(ETokenType, int, int, String, Object) - Constructor for class edu.tum.cs.scanner.CPPToken
Create new C/C++ token.
CSToken - Class in edu.tum.cs.scanner
Class for C# (CS) tokens generated by the CsScanner.
CSToken(ETokenType, int, int, String, Object) - Constructor for class edu.tum.cs.scanner.CSToken
Create new C# token.

D

DELIMITERS - Static variable in enum edu.tum.cs.scanner.ETokenType
An enum set containing all delimiters.
description - Variable in enum edu.tum.cs.scanner.ScannerException.EExceptionType
Error type description.

E

edu.tum.cs.scanner - package edu.tum.cs.scanner
Provides scanners for several languages.
ELanguage - Enum in edu.tum.cs.scanner
Enumeration class for the languages support by the scanner framework.
ELanguage() - Constructor for enum edu.tum.cs.scanner.ELanguage
 
ETokenType - Enum in edu.tum.cs.scanner
This enumeration describes the type of a token.
ETokenType(ETokenType.ETokenClass) - Constructor for enum edu.tum.cs.scanner.ETokenType
Create new token type.
ETokenType.ETokenClass - Enum in edu.tum.cs.scanner
Enumeration describing the classes token types belong to.
ETokenType.ETokenClass() - Constructor for enum edu.tum.cs.scanner.ETokenType.ETokenClass
 

F

fromFileExtension(String) - Static method in enum edu.tum.cs.scanner.ELanguage
Gets the ELanguage value corresonding to a file extension

G

getDescription() - Method in enum edu.tum.cs.scanner.ScannerException.EExceptionType
Obtain description.
getLanguage() - Method in class edu.tum.cs.scanner.CobolToken
Obtain language.
getLanguage() - Method in class edu.tum.cs.scanner.CPPToken
Obtain language.
getLanguage() - Method in class edu.tum.cs.scanner.CSToken
Obtain language.
getLanguage() - Method in interface edu.tum.cs.scanner.IToken
Obtain language.
getLanguage() - Method in class edu.tum.cs.scanner.JavaToken
Obtain language.
getLanguage() - Method in class edu.tum.cs.scanner.PL1Token
Obtain language.
getLanguage() - Method in class edu.tum.cs.scanner.VBToken
Obtain language.
getLineNumber() - Method in interface edu.tum.cs.scanner.IToken
Obtain number of line this token was found at.
getLineNumber() - Method in class edu.tum.cs.scanner.Token
Obtain number of line this token was found at.
getMessage() - Method in exception edu.tum.cs.scanner.ScannerException
Get an error message.
getNextToken() - Method in interface edu.tum.cs.scanner.IScanner
Returns the next token.
getOffset() - Method in interface edu.tum.cs.scanner.IToken
Get the number of characters before this token in the text
getOffset() - Method in class edu.tum.cs.scanner.Token
Get the number of characters before this token in the text
getOrigin() - Method in interface edu.tum.cs.scanner.IToken
Tokens carry an origin identifier to distinguish token from different sources.
getOrigin() - Method in class edu.tum.cs.scanner.Token
Tokens carry an origin identifier to distinguish token from different sources.
getText() - Method in interface edu.tum.cs.scanner.IToken
Obtain the original input text for a token (copied verbatim from the source).
getText() - Method in class edu.tum.cs.scanner.Token
Obtain the original input text for a token (copied verbatim from the source).
getTokenClassNames() - Static method in enum edu.tum.cs.scanner.ETokenType.ETokenClass
Convenience method that gets an array of the token class names
getTokenTypesByClass(ETokenType.ETokenClass) - Static method in enum edu.tum.cs.scanner.ETokenType
Obtain all token types that belong to a specific token class.
getType() - Method in interface edu.tum.cs.scanner.IToken
Obtain type of token.
getType() - Method in class edu.tum.cs.scanner.Token
Obtain type of token.

I

IDENTIFIERS - Static variable in enum edu.tum.cs.scanner.ETokenType
An enum set containing all identifiers.
IScanner - Interface in edu.tum.cs.scanner
Common interface for all scanners.
isDelimiter() - Method in enum edu.tum.cs.scanner.ETokenType
Is this token type a delimiter?
isIdentifier() - Method in enum edu.tum.cs.scanner.ETokenType
Is this token type an identifier?
isKeyword() - Method in enum edu.tum.cs.scanner.ETokenType
Is this token type a keyword?
isLiteral() - Method in enum edu.tum.cs.scanner.ETokenType
Is this token type a literal?
isOperator() - Method in enum edu.tum.cs.scanner.ETokenType
Is this token type an operator?
isSpecial() - Method in enum edu.tum.cs.scanner.ETokenType
Is this a special token type?
IToken - Interface in edu.tum.cs.scanner
Object of type IToken are returned by the scanners.

J

JavaToken - Class in edu.tum.cs.scanner
Class for Java tokens generated by the Java scanner.
JavaToken(ETokenType, int, int, String, Object) - Constructor for class edu.tum.cs.scanner.JavaToken
Create new java token.

K

KEYWORDS - Static variable in enum edu.tum.cs.scanner.ETokenType
An enum set containing all keywords.

L

lineNumber - Variable in class edu.tum.cs.scanner.Token
Line number token was found at.
LITERALS - Static variable in enum edu.tum.cs.scanner.ETokenType
An enum set containing all literals.

N

newScanner(ELanguage, String) - Static method in class edu.tum.cs.scanner.ScannerFactory
Create a new scanner for a file.
newScanner(ELanguage, File) - Static method in class edu.tum.cs.scanner.ScannerFactory
Create a new scanner for a file.
newScanner(ELanguage, String, Object) - Static method in class edu.tum.cs.scanner.ScannerFactory
Create a new scanner that scans a string.
newScanner(ELanguage, Reader, Object) - Static method in class edu.tum.cs.scanner.ScannerFactory
Create a new scanner to uses the specified reader.Origin identifier objects needs to be specified.

O

offset - Variable in class edu.tum.cs.scanner.Token
Number of characters before token in the source file/string
OPERATORS - Static variable in enum edu.tum.cs.scanner.ETokenType
An enum set containing all operators.
origin - Variable in class edu.tum.cs.scanner.Token
Origin identifier.

P

PL1Token - Class in edu.tum.cs.scanner
Class for Cobol tokens generated by the Cobol scanner.
PL1Token(ETokenType, int, int, String, Object) - Constructor for class edu.tum.cs.scanner.PL1Token
Create new PLI token.
position - Variable in exception edu.tum.cs.scanner.ScannerException
The line number where the problem occured.

R

readTokens(IScanner, List<IToken>, List<ScannerException>) - Static method in class edu.tum.cs.scanner.ScannerUtils
Read tokens from scanner and store them in a list.
reset(Reader, Object) - Method in interface edu.tum.cs.scanner.IScanner
Reset the scanner.

S

ScannerException - Exception in edu.tum.cs.scanner
Generated scanners throw exceptions of this type to signal scanning problems.
ScannerException(ScannerException.EExceptionType, String, int) - Constructor for exception edu.tum.cs.scanner.ScannerException
Create a new ScannerException.
ScannerException.EExceptionType - Enum in edu.tum.cs.scanner
Enum type for different exceptions .
ScannerException.EExceptionType(String) - Constructor for enum edu.tum.cs.scanner.ScannerException.EExceptionType
Create enum constant.
ScannerFactory - Class in edu.tum.cs.scanner
This factory class is the central access point to the scanner framework.
ScannerFactory() - Constructor for class edu.tum.cs.scanner.ScannerFactory
prevent instantiaton
ScannerUtils - Class in edu.tum.cs.scanner
This class offers utility methods for scanners.
ScannerUtils() - Constructor for class edu.tum.cs.scanner.ScannerUtils
 
setOrigin(Object) - Method in interface edu.tum.cs.scanner.IToken
Sets the origin of the token
setOrigin(Object) - Method in class edu.tum.cs.scanner.Token
Sets the origin of the token
setType(ETokenType) - Method in interface edu.tum.cs.scanner.IToken
Set new type of token TODO (FD): As discussed, this should still be immutable.
setType(ETokenType) - Method in class edu.tum.cs.scanner.Token
Set new type of token TODO (FD): As discussed, this should still be immutable.
SPECIALS - Static variable in enum edu.tum.cs.scanner.ETokenType
An enum set containing all special token types..

T

text - Variable in class edu.tum.cs.scanner.Token
Verbatim copy of the text found.
Token - Class in edu.tum.cs.scanner
Base class for implementations of the token interface.
Token(ETokenType, int, int, String, Object) - Constructor for class edu.tum.cs.scanner.Token
Create new token.
tokenClass - Variable in enum edu.tum.cs.scanner.ETokenType
The token class of this token type.
toString() - Method in class edu.tum.cs.scanner.Token
Obtain string representation of this token.
type - Variable in exception edu.tum.cs.scanner.ScannerException
Exceptiont type.
type - Variable in class edu.tum.cs.scanner.Token
Token type.

U

UnicodeEscapeException - Exception in edu.tum.cs.scanner
Exception class that gets thrown when an illegal unicode escape sequence is encountered This class does not extend ScannerException, since the UnicodeEscapes scanner is no stand alone scanner, but extends FilterReader.
UnicodeEscapeException(String) - Constructor for exception edu.tum.cs.scanner.UnicodeEscapeException
Constructor

V

valueOf(String) - Static method in enum edu.tum.cs.scanner.ELanguage
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum edu.tum.cs.scanner.ETokenType.ETokenClass
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum edu.tum.cs.scanner.ETokenType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum edu.tum.cs.scanner.ScannerException.EExceptionType
Returns the enum constant of this type with the specified name.
values() - Static method in enum edu.tum.cs.scanner.ELanguage
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum edu.tum.cs.scanner.ETokenType.ETokenClass
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum edu.tum.cs.scanner.ETokenType
Returns an array containing the constants of this enum type, in the order they're declared.
values() - Static method in enum edu.tum.cs.scanner.ScannerException.EExceptionType
Returns an array containing the constants of this enum type, in the order they're declared.
VBToken - Class in edu.tum.cs.scanner
Class for visual basic tokens generated by the VB scanner.
VBToken(ETokenType, int, int, String, Object) - Constructor for class edu.tum.cs.scanner.VBToken
Create new VB token.

Y

yyText - Variable in exception edu.tum.cs.scanner.ScannerException
A verbatim copy of the scanned text.

C D E F G I J K L N O P R S T U V Y
Scanner

Scanner - 1.2