Class PSystemBuilderJs
java.lang.Object
net.sourceforge.plantuml.teavm.js.PSystemBuilderJs
-
Method Summary
Modifier and TypeMethodDescriptioncreateDiagram(String[] split) createDiagramFromPreprocessed(List<StringLocated> source, PreprocessingArtifact preprocessing) explain(List<StringLocated> source, PreprocessingArtifact preprocessing) Explains, line by line, how the given preprocessed source is parsed.static PSystemBuilderJsvoidreset()
-
Method Details
-
getInstance
-
reset
public void reset() -
createDiagram
-
createDiagramFromPreprocessed
public Diagram createDiagramFromPreprocessed(List<StringLocated> source, PreprocessingArtifact preprocessing) -
explain
Explains, line by line, how the given preprocessed source is parsed.TeaVM counterpart of
PSystemBuilder.explain(net.sourceforge.plantuml.nio.PathSystem, java.util.List<net.sourceforge.plantuml.text.StringLocated>, java.util.List<net.sourceforge.plantuml.text.StringLocated>, net.sourceforge.plantuml.Previous, net.sourceforge.plantuml.preproc.PreprocessingArtifact). It builds theUmlSourcethe same way ascreateDiagramFromPreprocessed(List, PreprocessingArtifact), finds the first factory that produces a valid diagram for the detected type, and delegates to itsexplain.pathSystemandpreviousarenullhere, as everywhere else in this builder.- Parameters:
source- the preprocessed source linespreprocessing- the preprocessing artifact- Returns:
- the list of explanations, or
nullif no factory matched
-