Scanner

edu.tum.cs.scanner
Class CSToken

java.lang.Object
  extended by edu.tum.cs.scanner.Token
      extended by edu.tum.cs.scanner.CSToken
All Implemented Interfaces:
IToken

public class CSToken
extends Token

Class for C# (CS) tokens generated by the CsScanner.

This only adds the language identification to the base class.

Version:
$Revision: 11100 $
Author:
Florian Deissenboeck, Elmar Juergens, $Author: juergens $
See Also:
Token, CSScanner
Rating:
GREEN Rev: 11100

Field Summary
 
Fields inherited from class edu.tum.cs.scanner.Token
lineNumber, offset, origin, text, type
 
Constructor Summary
CSToken(ETokenType type, int offset, int lineNumber, String text, Object origin)
          Create new C# token.
 
Method Summary
 ELanguage getLanguage()
          Obtain language.
 
Methods inherited from class edu.tum.cs.scanner.Token
getLineNumber, getOffset, getOrigin, getText, getType, setOrigin, setType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CSToken

CSToken(ETokenType type,
        int offset,
        int lineNumber,
        String text,
        Object origin)
Create new C# token.

Parameters:
type - token type
offset - number of characters before token in input file/string
lineNumber - line number
text - original text
origin - origin identifier
Method Detail

getLanguage

public ELanguage getLanguage()
Obtain language.


Scanner

Scanner - 1.2