Package snap.util
Class KeyChainParser
java.lang.Object
snap.parse.Parser
snap.util.KeyChainParser
A Parser subclass to parse strings to KeyChains.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AdditiveExpr Handler: AdditiveExpr { MultiplicativeExpr (("+" | "-") MultiplicativeExpr)* }static class
ArgList Handler: ArgList { Expression ("," Expression)* }static class
BinaryExpr Handler.static class
ComparativeExpr Handler: ComparativeExpr { AdditiveExpr ((">" | "<" | ">=" | "<=") AdditiveExpr)* }static class
EqualityExpr Handler: EqualityExpr { ComparativeExpr (("==" | "!=") ComparativeExpr)* }static class
Expression Handler: Expression { LogicalOrExpr (LookAhead(2) "?" Expression (LookAhead(2) ":" Expression)?)? }static class
KeyChain Handler: KeyChain { Object ("." Object)* }static class
LogicalAndExpr Handler: LogicalAndExpr { EqualityExpr ("&&" EqualityExpr)* }static class
LogicalOrExpr Handler: LogicalOrExpr { LogicalAndExpr ("||" LogicalAndExpr)* }static class
MultiplicativeExpr Handler: MultiplicativeExpr { UnaryExpr (("*" | "/" | "%") UnaryExpr)* }static class
Object Handler: LookAhead(3) KEY "(" ArgList? ")" | LookAhead(2) KEY "[" Expression "]" | LookAhead(3) KEY | INT | FLOAT | STRING | "(" Expression ")"static class
Statement Handler: Statement { LookAhead(2) KEY ("=" | "+=") Expression | Expression }static class
UnaryExpr Handler: UnaryExpr { "-" KeyChain | "!" KeyChain | KeyChain }Nested classes/interfaces inherited from class snap.parse.Parser
Parser.HandlerRef
-
Constructor Summary
-
Method Summary
Methods inherited from class snap.parse.Parser
clearTokens, createNode, createRule, createTokenizer, getCharIndex, getInput, getLastValidToken, getLookAheadToken, getNextToken, getRule, getRule, getToken, getTokenizer, lookAhead, parse, parse, parse, parse, parseCustom, parseCustom, parseCustom, parseFailed, setCharIndex, setInput, setRule, setTokenizer
-
Constructor Details
-
KeyChainParser
public KeyChainParser()
-
-
Method Details