Package ch.qos.logback.core.subst
Class Parser
- java.lang.Object
-
- ch.qos.logback.core.subst.Parser
-
public class Parser extends java.lang.ObjectParse a token list returning a node chain.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidadvanceTokenPointer()private NodeC()private NodeE()private NodeEopt()(package private) voidexpectCurlyRight(Token t)(package private) voidexpectNotNull(Token t, java.lang.String expected)private booleanisDefaultToken(Token t)private NodemakeNewLiteralNode(java.lang.String s)Nodeparse()(package private) TokenpeekAtCurentToken()private NodeT()private NodeV()
-
-
-
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()
-
-