Class ParseRes<T>
java.lang.Object
me.topchetoeu.j2s.compilation.parsing.ParseRes<T>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String
final me.topchetoeu.j2s.common.Location
final int
final T
final ParseRes.State
-
Method Summary
Modifier and TypeMethodDescriptionaddN
(int n) <T2> ParseRes<T2>
<T2> ParseRes<T2>
chainError
(me.topchetoeu.j2s.common.Location loc, String error) <T2> ParseRes<T2>
chainError
(ParseRes<?> other) static <T> ParseRes<T>
static <T> ParseRes<T>
failed()
static <T> ParseRes<T>
boolean
isError()
boolean
isFailed()
boolean
static <T> ParseRes<T>
res
(T val, int i) setN
(int i)
-
Field Details
-
state
-
errorLocation
public final me.topchetoeu.j2s.common.Location errorLocation -
error
-
result
-
n
public final int n
-
-
Method Details
-
setN
-
addN
-
chainError
-
chainError
-
chainError
-
isSuccess
public boolean isSuccess() -
isFailed
public boolean isFailed() -
isError
public boolean isError() -
failed
-
error
-
res
-
first
-