Top Inners Fields Constructors Methods
tech.units.indriya.internal.format

public final Class UnitFormatParser

extends Object
implements UnitTokenConstants
Class Inheritance
All Implemented Interfaces
tech.units.indriya.internal.format.UnitTokenConstants
Annotations
@API
status:INTERNAL
Static Imports
org.apiguardian.api.API.Status.INTERNAL

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
pack-priv static class
private static class

Field Summary

Modifier and TypeField and Description
private final UnitFormatParser.JJCalls[]
private int
private final List<int[]>
private int[]
private int
private int
private DefaultCharStream
private int
private int
private final int[]
private static int[]
private Token
private int[]
private final UnitFormatParser.LookaheadSuccess
private Token
jj_nt

Next token.

private int
private boolean
private Token
private SymbolMap
private Token
token

Current token.

private UnitTokenManager
token_source

Generated Token Manager.

Constructor Summary

AccessConstructor and Description
public
pack-priv
UnitFormatParser(InputStream stream)

Constructor with InputStream.

pack-priv
UnitFormatParser(InputStream stream, String encoding)

Constructor with InputStream and supplied encoding

pack-priv
UnitFormatParser(Reader stream)

Constructor.

pack-priv
UnitFormatParser(UnitTokenManager tm)

Constructor with generated Token Manager.

Method Summary

Modifier and TypeMethod and Description
pack-priv Unit<?>
pack-priv Unit<?>
pack-priv final void
disable_tracing()

Disable tracing.

pack-priv final void
enable_tracing()

Enable tracing.

pack-priv UnitFormatParser.Exponent
exp()

pack-priv Unit<?>
pack-priv TokenException
generateParseException()

Generate TokenException.

pack-priv final Token
getNextToken()

Get the next Token.

pack-priv final Token
getToken(int index)

Get the specific Token.

private boolean
jj_2_1(int xla)

private boolean
jj_2_2(int xla)

private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private void
jj_add_error_token(int kind, int pos)

private Token
jj_consume_token(int kind)

Reinitialise.

private static void
private int
private void
private void
jj_save(int index, int xla)

private boolean
jj_scan_token(int kind)

pack-priv Unit<?>
pack-priv Unit<?>
pack-priv Number
public Unit<?>
pack-priv Token
sign()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

jj_2_rtnsback to summary
private final UnitFormatParser.JJCalls[] jj_2_rtns
jj_endposback to summary
private int jj_endpos
jj_expentriesback to summary
private final List<int[]> jj_expentries
jj_expentryback to summary
private int[] jj_expentry
jj_gcback to summary
private int jj_gc
jj_genback to summary
private int jj_gen
jj_input_streamback to summary
private DefaultCharStream jj_input_stream
jj_kindback to summary
private int jj_kind
jj_laback to summary
private int jj_la
jj_la1back to summary
private final int[] jj_la1
jj_la1_0back to summary
private static int[] jj_la1_0
jj_lastposback to summary
private Token jj_lastpos
jj_lasttokensback to summary
private int[] jj_lasttokens
jj_lsback to summary
private final UnitFormatParser.LookaheadSuccess jj_ls
jj_ntback to summary
private Token jj_nt

Next token.

jj_ntkback to summary
private int jj_ntk
jj_rescanback to summary
private boolean jj_rescan
jj_scanposback to summary
private Token jj_scanpos
symbolsback to summary
private SymbolMap symbols
tokenback to summary
private Token token

Current token.

token_sourceback to summary
private UnitTokenManager token_source

Generated Token Manager.

Constructor Detail

UnitFormatParserback to summary
public UnitFormatParser(SymbolMap symbols, Reader in)
UnitFormatParserback to summary
pack-priv UnitFormatParser(InputStream stream)

Constructor with InputStream.

UnitFormatParserback to summary
pack-priv UnitFormatParser(InputStream stream, String encoding)

Constructor with InputStream and supplied encoding

UnitFormatParserback to summary
pack-priv UnitFormatParser(Reader stream)

Constructor.

UnitFormatParserback to summary
pack-priv UnitFormatParser(UnitTokenManager tm)

Constructor with generated Token Manager.

Method Detail

addExprback to summary
pack-priv Unit<?> addExpr() throws TokenException
Annotations
@SuppressWarnings:unused
atomicExprback to summary
pack-priv Unit<?> atomicExpr() throws TokenException
disable_tracingback to summary
pack-priv final void disable_tracing()

Disable tracing.

enable_tracingback to summary
pack-priv final void enable_tracing()

Enable tracing.

expback to summary
pack-priv UnitFormatParser.Exponent exp() throws TokenException
exponentExprback to summary
pack-priv Unit<?> exponentExpr() throws TokenException
Annotations
@SuppressWarnings:unused
generateParseExceptionback to summary
pack-priv TokenException generateParseException()

Generate TokenException.

getNextTokenback to summary
pack-priv final Token getNextToken()

Get the next Token.

getTokenback to summary
pack-priv final Token getToken(int index)

Get the specific Token.

jj_2_1back to summary
private boolean jj_2_1(int xla)
jj_2_2back to summary
private boolean jj_2_2(int xla)
jj_3_1back to summary
private boolean jj_3_1()
jj_3_2back to summary
private boolean jj_3_2()
jj_3R_3back to summary
private boolean jj_3R_3()
jj_3R_4back to summary
private boolean jj_3R_4()
jj_3R_5back to summary
private boolean jj_3R_5()
jj_3R_6back to summary
private boolean jj_3R_6()
jj_add_error_tokenback to summary
private void jj_add_error_token(int kind, int pos)
jj_consume_tokenback to summary
private Token jj_consume_token(int kind) throws TokenException

Reinitialise.

jj_la1_init_0back to summary
private static void jj_la1_init_0()
jj_ntkback to summary
private int jj_ntk()
jj_rescan_tokenback to summary
private void jj_rescan_token()
jj_saveback to summary
private void jj_save(int index, int xla)
jj_scan_tokenback to summary
private boolean jj_scan_token(int kind)
mixExprback to summary
pack-priv Unit<?> mixExpr() throws TokenException
Annotations
@SuppressWarnings:unused
mulExprback to summary
pack-priv Unit<?> mulExpr() throws TokenException
numberExprback to summary
pack-priv Number numberExpr() throws TokenException
parseUnitback to summary
public Unit<?> parseUnit() throws TokenException
Annotations
@SuppressWarnings:unused
signback to summary
pack-priv Token sign() throws TokenException
Annotations
@SuppressWarnings:unused
tech.units.indriya.internal.format back to summary

private Class UnitFormatParser.Exponent

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final int
pack-priv final int

Constructor Summary

AccessConstructor and Description
public
Exponent(int pow, int root)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

powback to summary
pack-priv final int pow
rootback to summary
pack-priv final int root

Constructor Detail

Exponentback to summary
public Exponent(int pow, int root)
tech.units.indriya.internal.format back to summary

pack-priv final Class UnitFormatParser.JJCalls

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv Token
pack-priv int
pack-priv UnitFormatParser.JJCalls

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

argback to summary
pack-priv int arg
firstback to summary
pack-priv Token first
genback to summary
pack-priv int gen
nextback to summary
pack-priv UnitFormatParser.JJCalls next

Constructor Detail

JJCallsback to summary
pack-priv JJCalls()
tech.units.indriya.internal.format back to summary

private final Class UnitFormatParser.LookaheadSuccess

extends Error
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
private

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Error.serialVersionUID.

Constructor Detail

LookaheadSuccessback to summary
private LookaheadSuccess()