Class UnitFormatParser
- java.lang.Object
-
- tech.units.indriya.internal.format.UnitFormatParser
-
public final class UnitFormatParser extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intASTERISKRegularExpression Id.static intCARETRegularExpression Id.static intCLOSE_PARENRegularExpression Id.static intCOLONRegularExpression Id.static intDEFAULTLexical state.static intDIGITRegularExpression Id.static intERegularExpression Id.static intEOFEnd of File.static intEXTENDED_CHARRegularExpression Id.static intFLOATING_POINTRegularExpression Id.static intINITIAL_CHARRegularExpression Id.static intINTEGERRegularExpression Id.static intLOGRegularExpression Id.static intMIDDLE_DOTRegularExpression Id.static intMINUSRegularExpression Id.static intNAT_LOGRegularExpression Id.static intOPEN_PARENRegularExpression Id.static intPLUSRegularExpression Id.static intSOLIDUSRegularExpression Id.static intSUPERSCRIPT_DIGITRegularExpression Id.static intSUPERSCRIPT_INTEGERRegularExpression Id.static String[]tokenImageLiteral token values.static intUNIT_IDENTIFIERRegularExpression Id.
-
Constructor Summary
Constructors Constructor Description UnitFormatParser(SymbolMap symbols, Reader in)
-
-
-
Field Detail
-
EOF
public static final int EOF
End of File.- See Also:
- Constant Field Values
-
DIGIT
public static final int DIGIT
RegularExpression Id.- See Also:
- Constant Field Values
-
SUPERSCRIPT_DIGIT
public static final int SUPERSCRIPT_DIGIT
RegularExpression Id.- See Also:
- Constant Field Values
-
INITIAL_CHAR
public static final int INITIAL_CHAR
RegularExpression Id.- See Also:
- Constant Field Values
-
EXTENDED_CHAR
public static final int EXTENDED_CHAR
RegularExpression Id.- See Also:
- Constant Field Values
-
PLUS
public static final int PLUS
RegularExpression Id.- See Also:
- Constant Field Values
-
MINUS
public static final int MINUS
RegularExpression Id.- See Also:
- Constant Field Values
-
ASTERISK
public static final int ASTERISK
RegularExpression Id.- See Also:
- Constant Field Values
-
MIDDLE_DOT
public static final int MIDDLE_DOT
RegularExpression Id.- See Also:
- Constant Field Values
-
SOLIDUS
public static final int SOLIDUS
RegularExpression Id.- See Also:
- Constant Field Values
-
CARET
public static final int CARET
RegularExpression Id.- See Also:
- Constant Field Values
-
COLON
public static final int COLON
RegularExpression Id.- See Also:
- Constant Field Values
-
OPEN_PAREN
public static final int OPEN_PAREN
RegularExpression Id.- See Also:
- Constant Field Values
-
CLOSE_PAREN
public static final int CLOSE_PAREN
RegularExpression Id.- See Also:
- Constant Field Values
-
INTEGER
public static final int INTEGER
RegularExpression Id.- See Also:
- Constant Field Values
-
SUPERSCRIPT_INTEGER
public static final int SUPERSCRIPT_INTEGER
RegularExpression Id.- See Also:
- Constant Field Values
-
FLOATING_POINT
public static final int FLOATING_POINT
RegularExpression Id.- See Also:
- Constant Field Values
-
LOG
public static final int LOG
RegularExpression Id.- See Also:
- Constant Field Values
-
NAT_LOG
public static final int NAT_LOG
RegularExpression Id.- See Also:
- Constant Field Values
-
E
public static final int E
RegularExpression Id.- See Also:
- Constant Field Values
-
UNIT_IDENTIFIER
public static final int UNIT_IDENTIFIER
RegularExpression Id.- See Also:
- Constant Field Values
-
DEFAULT
public static final int DEFAULT
Lexical state.- See Also:
- Constant Field Values
-
tokenImage
public static final String[] tokenImage
Literal token values.
-
-
Constructor Detail
-
UnitFormatParser
public UnitFormatParser(SymbolMap symbols, Reader in)
-
-
Method Detail
-
parseUnit
public javax.measure.Unit<?> parseUnit() throws TokenException
- Throws:
TokenException
-
-