@Test public void createContext() { ProcessingContextBuilder builder = ProcessingContext.builder(); new Inline(new Line(1, 2, "text"), 0, 1) { @Override public void emit(DocumentBuilder builder) { } }.createContext(builder); ProcessingContext context = builder.build(); assertTrue(context.isEmpty()); }
public void createContext(ProcessingContextBuilder contextBuilder) { }
Inline { public void createContext(ProcessingContextBuilder contextBuilder) { } }
Inline { public void createContext(ProcessingContextBuilder contextBuilder) { } Inline(Line line, int offset, int length); }
Inline { public void createContext(ProcessingContextBuilder contextBuilder) { } Inline(Line line, int offset, int length); int getOffset(); int getLength(); Line getLine(); Locator getLocator(); abstract void emit(DocumentBuilder builder); void apply(ProcessingContext context, List<Inline> inlines, Cursor cursor); void createContext(ProcessingContextBuilder contextBuilder); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
Inline { public void createContext(ProcessingContextBuilder contextBuilder) { } Inline(Line line, int offset, int length); int getOffset(); int getLength(); Line getLine(); Locator getLocator(); abstract void emit(DocumentBuilder builder); void apply(ProcessingContext context, List<Inline> inlines, Cursor cursor); void createContext(ProcessingContextBuilder contextBuilder); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }