congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Parser
Code IndexAdd Tabnine to your IDE (free)

How to use
Parser
in
ch.qos.logback.core.subst

Best Java code snippets using ch.qos.logback.core.subst.Parser (Showing top 20 results out of 315)

origin: camunda/camunda-bpm-platform

private static Node tokenizeAndParseString(String value) throws ScanException {
 Tokenizer tokenizer = new Tokenizer(value);
 List<Token> tokens = tokenizer.tokenize();
 Parser parser = new Parser(tokens);
 return parser.parse();
}
origin: camunda/camunda-bpm-platform

private Node V() throws ScanException {
 Node e = E();
 Node variable = new Node(Node.Type.VARIABLE, e);
 Token t = peekAtCurentToken();
 if (isDefaultToken(t)) {
  advanceTokenPointer();
  Node def = E();
  variable.defaultPart = def;
 }
 return variable;
}
origin: camunda/camunda-bpm-platform

private Node E() throws ScanException {
 Node t = T();
 if (t == null) {
  return null;
 }
 Node eOpt = Eopt();
 if (eOpt != null) {
  t.append(eOpt);
 }
 return t;
}
origin: camunda/camunda-bpm-platform

private Node Eopt() throws ScanException {
 Token next = peekAtCurentToken();
 if (next == null) {
  return null;
 } else {
  return E();
 }
}
origin: camunda/camunda-bpm-platform

private Node T() throws ScanException {
 Token t = peekAtCurentToken();
 switch (t.type) {
  case LITERAL:
   advanceTokenPointer();
   return makeNewLiteralNode(t.payload);
  case CURLY_LEFT:
   advanceTokenPointer();
   Node innerNode = C();
   Token right = peekAtCurentToken();
   expectCurlyRight(right);
   advanceTokenPointer();
   Node curlyLeft = makeNewLiteralNode(CoreConstants.LEFT_ACCOLADE);
   curlyLeft.append(innerNode);
   curlyLeft.append(makeNewLiteralNode(CoreConstants.RIGHT_ACCOLADE));
   return curlyLeft;
  case START:
   advanceTokenPointer();
   Node v = V();
   Token w = peekAtCurentToken();
   expectCurlyRight(w);
   advanceTokenPointer();
   return v;
  default:
   return null;
 }
}
origin: ch.qos.logback/core

private Node T() throws ScanException {
 Token t = getCurentToken();
   advanceTokenPointer();
   return new Node(Node.Type.LITERAL, t.payload);
  case CURLY_LEFT:
   advanceTokenPointer();
   Node inner = E();
   Token right = getCurentToken();
   expectCurlyRight(right);
   advanceTokenPointer();
   Node curlyLeft = new Node(Node.Type.LITERAL, CoreConstants.LEFT_ACCOLADE);
   curlyLeft.next = inner;
    curlyLeft.next = curlyRightNode;
   else
    appendNode(inner, curlyRightNode);
   return curlyLeft;
  case START:
   advanceTokenPointer();
   Node v = V();
   Token w = getCurentToken();
   expectCurlyRight(w);
   advanceTokenPointer();
   return v;
  default:
origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.core

private Node E() throws ScanException {
 Node t = T();
 if (t == null) {
  return null;
 }
 Node eOpt = Eopt();
 if (eOpt != null) {
  appendNode(t, eOpt);
 }
 return t;
}
origin: ch.qos.logback/core

private Node V() throws ScanException {
 Node e = E();
 Node variable = new Node(Node.Type.VARIABLE, e);
 Token t = getCurentToken();
 if (t != null && t.type == Token.Type.DEFAULT) {
  advanceTokenPointer();
  Node def = E();
  variable.defaultPart = def;
 }
 return variable;
}
origin: camunda/camunda-bpm-platform

public Node parse() throws ScanException {
 if(tokenList == null || tokenList.isEmpty())
  return null;
 return E();
}
origin: camunda/camunda-bpm-platform

void expectCurlyRight(Token t) throws ScanException {
 expectNotNull(t, "}");
 if (t.type != Token.Type.CURLY_RIGHT) {
  throw new ScanException("Expecting }");
 }
}
origin: ch.qos.logback/core

private Node Eopt() throws ScanException {
 Token next = getCurentToken();
 // System.out.println("Current token is " + next);
 if (next == null) {
  return null;
 } else {
  return E();
 }
}
origin: tony19/logback-android

private Node T() throws ScanException {
 Token t = peekAtCurentToken();
 switch (t.type) {
  case LITERAL:
   advanceTokenPointer();
   return makeNewLiteralNode(t.payload);
  case CURLY_LEFT:
   advanceTokenPointer();
   Node innerNode = C();
   Token right = peekAtCurentToken();
   expectCurlyRight(right);
   advanceTokenPointer();
   Node curlyLeft = makeNewLiteralNode(CoreConstants.LEFT_ACCOLADE);
   curlyLeft.append(innerNode);
   curlyLeft.append(makeNewLiteralNode(CoreConstants.RIGHT_ACCOLADE));
   return curlyLeft;
  case START:
   advanceTokenPointer();
   Node v = V();
   Token w = peekAtCurentToken();
   expectCurlyRight(w);
   advanceTokenPointer();
   return v;
  default:
   return null;
 }
}
origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.core

private Node T() throws ScanException {
 Token t = getCurentToken();
   advanceTokenPointer();
   return new Node(Node.Type.LITERAL, t.payload);
  case CURLY_LEFT:
   advanceTokenPointer();
   Node inner = E();
   Token right = getCurentToken();
   expectCurlyRight(right);
   advanceTokenPointer();
   Node curlyLeft = new Node(Node.Type.LITERAL, CoreConstants.LEFT_ACCOLADE);
   curlyLeft.next = inner;
    curlyLeft.next = curlyRightNode;
   else
    appendNode(inner, curlyRightNode);
   return curlyLeft;
  case START:
   advanceTokenPointer();
   Node v = V();
   Token w = getCurentToken();
   expectCurlyRight(w);
   advanceTokenPointer();
   return v;
  default:
origin: tony19/logback-android

private Node Eopt() throws ScanException {
 Token next = peekAtCurentToken();
 if (next == null) {
  return null;
 } else {
  return E();
 }
}
origin: ch.qos.logback/core

private Node E() throws ScanException {
 Node t = T();
 if (t == null) {
  return null;
 }
 Node eOpt = Eopt();
 if (eOpt != null) {
  appendNode(t, eOpt);
 }
 return t;
}
origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.core

private Node V() throws ScanException {
 Node e = E();
 Node variable = new Node(Node.Type.VARIABLE, e);
 Token t = getCurentToken();
 if (t != null && t.type == Token.Type.DEFAULT) {
  advanceTokenPointer();
  Node def = E();
  variable.defaultPart = def;
 }
 return variable;
}
origin: ch.qos.logback/core

public Node parse() throws ScanException {
 return E();
}
origin: tony19/logback-android

void expectCurlyRight(Token t) throws ScanException {
 expectNotNull(t, "}");
 if (t.type != Token.Type.CURLY_RIGHT) {
  throw new ScanException("Expecting }");
 }
}
origin: at.bestsolution.efxclipse.eclipse/ch.qos.logback.core

private Node Eopt() throws ScanException {
 Token next = getCurentToken();
 // System.out.println("Current token is " + next);
 if (next == null) {
  return null;
 } else {
  return E();
 }
}
origin: camunda/camunda-bpm-platform

private Node C() throws ScanException {
 Node e0 = E();
 Token t = peekAtCurentToken();
 if (isDefaultToken(t)) {
  advanceTokenPointer();
  Node literal = makeNewLiteralNode(CoreConstants.DEFAULT_VALUE_SEPARATOR);
  e0.append(literal);
  Node e1 = E();
  e0.append(e1);
 }
 return e0;
}
ch.qos.logback.core.substParser

Javadoc

Parse a token list returning a node chain.

Most used methods

  • <init>
  • parse
  • E
  • Eopt
  • T
  • V
  • advanceTokenPointer
  • expectCurlyRight
  • expectNotNull
  • C
  • isDefaultToken
  • makeNewLiteralNode
  • isDefaultToken,
  • makeNewLiteralNode,
  • peekAtCurentToken,
  • appendNode,
  • getCurentToken

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • getSystemService (Context)
  • getResourceAsStream (ClassLoader)
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JCheckBox (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Table (org.hibernate.mapping)
    A relational table
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now