public final class TapElementFactory extends Object
TapElement
s from given textual source.Modifier and Type | Method and Description |
---|---|
static void |
addComment(TapElement element,
String comment)
Add a comment to a
TapElement , as long as the comment is not empty. |
static TapElement |
createTapElement(String tapLine)
Create a
TapElement given a TAP stream line. |
static Text |
createTextElement(String tapLine)
Create a text element.
|
public static Text createTextElement(String tapLine)
tapLine
- TAP stream lineText
TAP elementpublic static TapElement createTapElement(String tapLine)
TapElement
given a TAP stream line. If any TAP element matches the line, it is returned,
null
is returned otherwise.tapLine
- TAP stream lineTapElement
created with from the given TAP stream line, or null
if not a valid tokenpublic static void addComment(TapElement element, String comment)
TapElement
, as long as the comment is not empty.element
- TAP elementcomment
- a commentCopyright © 2010–2019 TupiLabs. All rights reserved.