Package ucar.units
Class StandardUnitFormatTokenManager
- java.lang.Object
-
- ucar.units.StandardUnitFormatTokenManager
-
- All Implemented Interfaces:
StandardUnitFormatConstants
public class StandardUnitFormatTokenManager extends Object implements StandardUnitFormatConstants
Token Manager.
-
-
Field Summary
Fields Modifier and Type Field Description protected char
curChar
PrintStream
debugStream
Debug output.protected SimpleCharStream
input_stream
static String[]
jjstrLiteralImages
Token literal values.static String[]
lexStateNames
Lexer state names.
-
Constructor Summary
Constructors Constructor Description StandardUnitFormatTokenManager(SimpleCharStream stream)
Constructor.StandardUnitFormatTokenManager(SimpleCharStream stream, int lexState)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Token
getNextToken()
Get the next Token.protected Token
jjFillToken()
void
ReInit(SimpleCharStream stream)
Reinitialise parser.void
ReInit(SimpleCharStream stream, int lexState)
Reinitialise parser.void
setDebugStream(PrintStream ds)
Set debug output.void
SwitchTo(int lexState)
Switch to specified lex state.
-
-
-
Field Detail
-
debugStream
public PrintStream debugStream
Debug output.
-
jjstrLiteralImages
public static final String[] jjstrLiteralImages
Token literal values.
-
lexStateNames
public static final String[] lexStateNames
Lexer state names.
-
input_stream
protected SimpleCharStream input_stream
-
curChar
protected char curChar
-
-
Constructor Detail
-
StandardUnitFormatTokenManager
public StandardUnitFormatTokenManager(SimpleCharStream stream)
Constructor.
-
StandardUnitFormatTokenManager
public StandardUnitFormatTokenManager(SimpleCharStream stream, int lexState)
Constructor.
-
-
Method Detail
-
setDebugStream
public void setDebugStream(PrintStream ds)
Set debug output.
-
ReInit
public void ReInit(SimpleCharStream stream)
Reinitialise parser.
-
ReInit
public void ReInit(SimpleCharStream stream, int lexState)
Reinitialise parser.
-
SwitchTo
public void SwitchTo(int lexState)
Switch to specified lex state.
-
jjFillToken
protected Token jjFillToken()
-
getNextToken
public Token getNextToken()
Get the next Token.
-
-