Package ch.qos.logback.core.subst
Class Parser
- java.lang.Object
-
- ch.qos.logback.core.subst.Parser
-
public class Parser extends java.lang.Object
Parse a token list returning a node chain.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
advanceTokenPointer()
private Node
C()
private Node
E()
private Node
Eopt()
(package private) void
expectCurlyRight(Token t)
(package private) void
expectNotNull(Token t, java.lang.String expected)
private boolean
isDefaultToken(Token t)
private Node
makeNewLiteralNode(java.lang.String s)
Node
parse()
(package private) Token
peekAtCurentToken()
private Node
T()
private Node
V()
-
-
-
Field Detail
-
tokenList
final java.util.List<Token> tokenList
-
pointer
int pointer
-
-
Constructor Detail
-
Parser
public Parser(java.util.List<Token> tokenList)
-
-
Method Detail
-
parse
public Node parse() throws ScanException
- Throws:
ScanException
-
E
private Node E() throws ScanException
- Throws:
ScanException
-
Eopt
private Node Eopt() throws ScanException
- Throws:
ScanException
-
T
private Node T() throws ScanException
- Throws:
ScanException
-
makeNewLiteralNode
private Node makeNewLiteralNode(java.lang.String s)
-
V
private Node V() throws ScanException
- Throws:
ScanException
-
C
private Node C() throws ScanException
- Throws:
ScanException
-
isDefaultToken
private boolean isDefaultToken(Token t)
-
advanceTokenPointer
void advanceTokenPointer()
-
expectNotNull
void expectNotNull(Token t, java.lang.String expected)
-
expectCurlyRight
void expectCurlyRight(Token t) throws ScanException
- Throws:
ScanException
-
peekAtCurentToken
Token peekAtCurentToken()
-
-