Top Fields Constructors Methods
javassist.compiler

public Class Lex

Additional top-level class in compilation unit: Token.

extends Object
implements TokenId
Class Inheritance
All Implemented Interfaces
javassist.compiler.TokenId

Field Summary

Modifier and TypeField and Description
private Token
private static final int[]
private String
private static final KeywordTable
private int
private int
private Token
private int
private int
private StringBuilder

Constructor Summary

AccessConstructor and Description
public
Lex(String s)

Constructs a lexical analyzer.

Method Summary

Modifier and TypeMethod and Description
public int
get()

private int
get(Token token)

private int
getc()

public double
public long
private int
public String
public String
private static boolean
isBlank(int c)

private static boolean
isDigit(int c)

public int
lookAhead()

Looks at the next token.

public int
lookAhead(int i)

private int
private int
readDouble(StringBuilder sbuf, int c, Token token)

private int
private int
readIdentifier(int c, Token token)

private int
readLine(Token token)

private int
readNumber(int c, Token token)

private int
private int
private void
ungetc(int c)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

currentTokenback to summary
private Token currentToken
equalOpsback to summary
private static final int[] equalOps
inputback to summary
private String input
ktableback to summary
private static final KeywordTable ktable
lastCharback to summary
private int lastChar
lineNumberback to summary
private int lineNumber
Annotations
@SuppressWarnings:unused
lookAheadTokensback to summary
private Token lookAheadTokens
maxlenback to summary
private int maxlen
Annotations
@SuppressWarnings:unused
positionback to summary
private int position
Annotations
@SuppressWarnings:unused
textBufferback to summary
private StringBuilder textBuffer

Constructor Detail

Lexback to summary
public Lex(String s)

Constructs a lexical analyzer.

Method Detail

getback to summary
public int get()
getback to summary
private int get(Token token)
getcback to summary
private int getc()
getDoubleback to summary
public double getDouble()
getLongback to summary
public long getLong()
getNextNonWhiteCharback to summary
private int getNextNonWhiteChar()
getStringback to summary
public String getString()
getTextAroundback to summary
public String getTextAround()
isBlankback to summary
private static boolean isBlank(int c)
isDigitback to summary
private static boolean isDigit(int c)
Annotations
@SuppressWarnings:unused
lookAheadback to summary
public int lookAhead()

Looks at the next token.

lookAheadback to summary
public int lookAhead(int i)
readCharConstback to summary
private int readCharConst(Token token)
readDoubleback to summary
private int readDouble(StringBuilder sbuf, int c, Token token)
readEscapeCharback to summary
private int readEscapeChar()
readIdentifierback to summary
private int readIdentifier(int c, Token token)
readLineback to summary
private int readLine(Token token)
readNumberback to summary
private int readNumber(int c, Token token)
readSeparatorback to summary
private int readSeparator(int c)
readStringLback to summary
private int readStringL(Token token)
ungetcback to summary
private void ungetc(int c)