|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjfun.parsec.IsToken
public final class IsToken
Tests if the token is the same token expected.
Method Summary | |
---|---|
Tok |
fromToken(Tok tok)
return the token if the token is the same object that we are expecting. |
static FromToken<Tok> |
instance(java.lang.Object t)
Creates a FromToken instance using the given expected token t. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Tok fromToken(Tok tok)
fromToken
in interface FromToken<Tok>
tok
- the token
public static FromToken<Tok> instance(java.lang.Object t)
t
- the expected token object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |