congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Node.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
ch.qos.logback.core.subst.Node
constructor

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

origin: camunda/camunda-bpm-platform

private Node makeNewLiteralNode(String s) {
 return new Node(Node.Type.LITERAL, s);
}
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: io.virtdata/virtdata-lib-realer

private Node makeNewLiteralNode(String s) {
  return new Node(Node.Type.LITERAL, s);
}
origin: tony19/logback-android

private Node makeNewLiteralNode(String s) {
 return new Node(Node.Type.LITERAL, s);
}
origin: com.hynnet/logback-core

private Node makeNewLiteralNode(String s) {
 return new Node(Node.Type.LITERAL, s);
}
origin: tony19/logback-android

@Test
public void literalVariableLiteral() throws ScanException {
 Tokenizer tokenizer = new Tokenizer("a${b}c");
 Parser parser = new Parser(tokenizer.tokenize());
 Node node = parser.parse();
 Node witness = new Node(Node.Type.LITERAL, "a");
 witness.next = new Node(Node.Type.VARIABLE, new Node(Node.Type.LITERAL, "b"));
 witness.next.next = new Node(Node.Type.LITERAL, "c");
 assertEquals(witness, node);
}
origin: tony19/logback-android

@Test
public void withColon() throws ScanException {
 Tokenizer tokenizer = new Tokenizer("a:${b}");
 Parser parser = new Parser(tokenizer.tokenize());
 Node node = parser.parse();
 Node witness = new Node(Node.Type.LITERAL, "a");
 Node t = witness.next = new Node(Node.Type.LITERAL, ":");
 t.next = new Node(Node.Type.VARIABLE, new Node(Node.Type.LITERAL, "b"));
 assertEquals(witness, node);
}
origin: tony19/logback-android

@Test
public void withDefault() throws ScanException {
 Tokenizer tokenizer = new Tokenizer("${b:-c}");
 Parser parser = new Parser(tokenizer.tokenize());
 Node node = parser.parse();
 Node witness = new Node(Node.Type.VARIABLE, new Node(Node.Type.LITERAL, "b"));
 witness.defaultPart = new Node(Node.Type.LITERAL, "c");
 assertEquals(witness, node);
}
origin: tony19/logback-android

@Test
public void literalWithAccolade1() throws ScanException {
 Tokenizer tokenizer = new Tokenizer("%x{a}");
 Parser parser = new Parser(tokenizer.tokenize());
 Node node = parser.parse();
 Node witness = new Node(Node.Type.LITERAL, "%x");
 Node t = witness.next = new Node(Node.Type.LITERAL, "{");
 t.next = new Node(Node.Type.LITERAL, "a");
 t = t.next;
 t.next = new Node(Node.Type.LITERAL, "}");
 assertEquals(witness, node);
}
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: 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: tony19/logback-android

@Test
public void defaultSeparatorOutsideOfAVariable() throws ScanException {
 Tokenizer tokenizer = new Tokenizer("{a:-b}");
 Parser parser = new Parser(tokenizer.tokenize());
 Node node = parser.parse();
 dump(node);
 Node witness = new Node(Node.Type.LITERAL, "{");
 Node t = witness.next = new Node(Node.Type.LITERAL, "a");
 t.next = new Node(Node.Type.LITERAL, ":-");
 t = t.next;
 t.next = new Node(Node.Type.LITERAL, "b");
 t = t.next;
 t.next = new Node(Node.Type.LITERAL, "}");
 assertEquals(witness, node);
}
origin: io.virtdata/virtdata-lib-realer

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: tony19/logback-android

@Test
public void variable() throws ScanException {
 Tokenizer tokenizer = new Tokenizer("${abc}");
 Parser parser = new Parser(tokenizer.tokenize());
 Node node = parser.parse();
 Node witness = new Node(Node.Type.VARIABLE, new Node(Node.Type.LITERAL, "abc"));
 assertEquals(witness, node);
}
origin: tony19/logback-android

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: com.impetus.fabric/fabric-jdbc-driver-shaded

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: com.hynnet/logback-core

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: Nextdoor/bender

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: tony19/logback-android

@Test
public void literalWithAccolade0() throws ScanException {
 Tokenizer tokenizer = new Tokenizer("{}");
 Parser parser = new Parser(tokenizer.tokenize());
 Node node = parser.parse();
 Node witness = new Node(Node.Type.LITERAL, "{");
 witness.next = new Node(Node.Type.LITERAL, "}");
 assertEquals(witness, node);
}
origin: tony19/logback-android

@Test
public void literal() throws ScanException {
 Tokenizer tokenizer = new Tokenizer("abc");
 Parser parser = new Parser(tokenizer.tokenize());
 Node node = parser.parse();
 Node witness = new Node(Node.Type.LITERAL, "abc");
 assertEquals(witness, node);
}
ch.qos.logback.core.substNode<init>

Popular methods of Node

  • dump
  • toString
  • equals
  • hashCode
  • recursive
  • append

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • findViewById (Activity)
  • putExtra (Intent)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Table (org.hibernate.mapping)
    A relational table
  • Top plugins for Android Studio
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