public class Comment extends Object
FileTokenizer keeping
its specifics.| Constructor and Description |
|---|
Comment(NodeSettingsRO settings)
Creates a new
Comment object and sets its parameters from
the config object. |
Comment(String left,
String right,
boolean returnAsToken,
boolean includeInToken)
Creates a new Comment object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBegin() |
String |
getEnd() |
char |
getFirstCharOfBegin() |
boolean |
includeInToken() |
boolean |
returnAsSeparateToken() |
(package private) void |
saveToConfig(NodeSettingsWO cfg)
Writes the object into a
NodeSettings object. |
String |
toString()
Returns "[begin]...[end], i, r" for block comments, or "[begin] SL, i, r"
for single line comments, with 'i' only printed when flag
"indcludeInToken" is set, and 'r' only printed when flag
"returnAsSeparateToken is set.
|
public Comment(String left, String right, boolean returnAsToken, boolean includeInToken)
FileTokenizerSettings class.left - The comment start pattern.right - The comment end pattern.returnAsToken - boolean flag.includeInToken - boolean flag.TokenizerSettingsComment(NodeSettingsRO settings) throws InvalidSettingsException
Comment object and sets its parameters from
the config object. If config doesn't contain all necessary
parameters or contains inconsistent settings it will throw an
IllegalArguments exceptionsettings - an object the parameters are read from.InvalidSettingsException - if the config is not valid. Huh.void saveToConfig(NodeSettingsWO cfg)
NodeSettings object. If this config
object is then used to construct a new Comment this and
the new object should be identical.cfg - a config object the internal values of this object will be
stored into.public String getBegin()
public String getEnd()
public char getFirstCharOfBegin()
public boolean includeInToken()
true if this comment will be included in the
current token.public boolean returnAsSeparateToken()
true if this comment will be returned as separate
token.
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.