public abstract class AbstractTokenizerProperties extends java.lang.Object implements TokenizerProperties
The class AbstractTokenizerProperties provides the skeleton for
implementations of the TokenizerProperties interface. It leaves only
the more general methods to these implementations. For instance, the simple
method addKeyword(String) can and should call the more complex
method #addKeyword(String, String) with the second parameter
null. That method in turn should call
#addKeyword(String, String, int) etc.
TokenizerProperties,
TokenizerDEFAULT_BLOCK_COMMENT_END, DEFAULT_BLOCK_COMMENT_START, DEFAULT_CHAR_END, DEFAULT_CHAR_ESCAPE, DEFAULT_CHAR_START, DEFAULT_LINE_COMMENT, DEFAULT_SEPARATORS, DEFAULT_STRING_END, DEFAULT_STRING_ESCAPE, DEFAULT_STRING_START, DEFAULT_WHITESPACES| Constructor and Description |
|---|
AbstractTokenizerProperties() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBlockComment(java.lang.String start,
java.lang.String end)
Registering a block comment.
|
void |
addBlockComment(java.lang.String start,
java.lang.String end,
java.lang.Object companion)
Registering a block comment.
|
void |
addBlockComment(java.lang.String start,
java.lang.String end,
java.lang.Object companion,
int flags)
Registering a block comment.
|
void |
addBlockComment(java.lang.String start,
java.lang.String end,
java.lang.Object companion,
int flags,
int flagMask)
Registering a block comment with a set of flags and an associated flag mask.
|
void |
addKeyword(java.lang.String keyword)
Registering a keyword.
|
void |
addKeyword(java.lang.String keyword,
java.lang.Object companion)
Registering a keyword.
|
void |
addKeyword(java.lang.String keyword,
java.lang.Object companion,
int flags)
Registering a keyword.
|
void |
addKeyword(java.lang.String keyword,
java.lang.Object companion,
int flags,
int flagMask)
Registering a keyword with a set of flags and an associated flag mask..
|
void |
addLineComment(java.lang.String lineComment)
Registering a the starting sequence of a line comment.
|
void |
addLineComment(java.lang.String lineComment,
java.lang.Object companion)
Registering a the starting sequence of a line comment.
|
void |
addLineComment(java.lang.String lineComment,
java.lang.Object companion,
int flags)
Registering a the starting sequence of a line comment.
|
void |
addLineComment(java.lang.String lineComment,
java.lang.Object companion,
int flags,
int flagMask)
Registering a line comment with a set of flags and an associated flag mask.
|
void |
addPattern(java.lang.String pattern)
Registering a pattern.
|
void |
addPattern(java.lang.String pattern,
java.lang.Object companion)
Registering a pattern with an associated object.
|
void |
addPattern(java.lang.String pattern,
java.lang.Object companion,
int flags)
Registering a pattern with an associated object.
|
void |
addPattern(java.lang.String pattern,
java.lang.Object companion,
int flags,
int flagMask)
Registering a pattern with an associated object and explicitely given flags.
|
void |
addProperty(TokenizerProperty property)
Registering a
TokenizerProperty. |
void |
addSeparators(java.lang.String separators)
Adding new separators to the existing set.
|
void |
addSpecialSequence(java.lang.String specSeq)
Registering a special sequence of characters.
|
void |
addSpecialSequence(java.lang.String specSeq,
java.lang.Object companion)
Registering a special sequence of characters.
|
void |
addSpecialSequence(java.lang.String specSeq,
java.lang.Object companion,
int flags)
Registering a special sequence of characters.
|
void |
addSpecialSequence(java.lang.String specSeq,
java.lang.Object companion,
int flags,
int flagMask)
Registering a special sequence with a set of flags and an associated flag mask.
|
void |
addString(java.lang.String start,
java.lang.String end,
java.lang.String escape)
Registering a string description.
|
void |
addString(java.lang.String start,
java.lang.String end,
java.lang.String escape,
java.lang.Object companion)
Registering a the sequences that are used for string-like text parts.
|
void |
addString(java.lang.String start,
java.lang.String end,
java.lang.String escape,
java.lang.Object companion,
int flags)
Registering a the sequences that are used for string-like text parts.
|
void |
addString(java.lang.String start,
java.lang.String end,
java.lang.String escape,
java.lang.Object companion,
int flags,
int flagMask)
Registering a string with a set of flags and an associated flag mask.
|
void |
addTokenizerPropertyListener(TokenizerPropertyListener listener)
Registering a new
TokenizerPropertyListener. |
void |
addWhitespaces(java.lang.String whitespaces)
Adding new whitespaces to the existing set.
|
boolean |
blockCommentExists(java.lang.String start)
Checks if the given block comment is known.
|
TokenizerProperty |
getBlockComment(java.lang.String start)
Get the full description of a block comment property.
|
java.lang.Object |
getBlockCommentCompanion(java.lang.String start)
Retrieving a certain block comment.
|
TokenizerProperty |
getKeyword(java.lang.String keyword)
Get the full description of a keyword property.
|
java.lang.Object |
getKeywordCompanion(java.lang.String keyword)
Retrieving the companion of the given keyword.
|
TokenizerProperty |
getLineComment(java.lang.String lineComment)
Get the full description of a line comment property.
|
java.lang.Object |
getLineCommentCompanion(java.lang.String lineComment)
Retrieving the associated object of a certain line comment.
|
int |
getParseFlags()
See the method description in
TokenizerProperties. |
TokenizerProperty |
getPattern(java.lang.String pattern)
Get the full description of a string property starting with the given
prefix.
|
java.lang.Object |
getPatternCompanion(java.lang.String pattern)
Retrieving the information associated with a given pattern.
|
TokenizerProperty |
getSpecialSequence(java.lang.String specSeq)
Get the full description of a special sequence property.
|
java.lang.Object |
getSpecialSequenceCompanion(java.lang.String specSeq)
Retrieving the companion of the given special sequence.
|
TokenizerProperty |
getString(java.lang.String start)
Get the full description of a string property.
|
java.lang.Object |
getStringCompanion(java.lang.String start)
Retrieving the information associated with a certain string.
|
boolean |
isFlagSet(int flag)
Returns
true if a given flag is set in the current parse flags. |
boolean |
isFlagSet(TokenizerProperty prop,
int flag)
Checks if a given flag (see the constants in
Flags) is set for the
given TokenizerProperty in the context of this TokenizerProperties
instance. |
boolean |
keywordExists(java.lang.String keyword)
Checks if the given keyword is known to the
Tokenizer. |
boolean |
lineCommentExists(java.lang.String lineComment)
Checks if the give line comment is known.
|
boolean |
patternExists(java.lang.String pattern)
Checks if the given pattern is known to the parser.
|
boolean |
propertyExists(TokenizerProperty property)
Checks if the given
TokenizerProperty is known. |
void |
removeBlockComment(java.lang.String start)
Removing a certain block comment.
|
void |
removeKeyword(java.lang.String keyword)
Deregistering a keyword.
|
void |
removeLineComment(java.lang.String lineComment)
Removing a certain line comment.
|
void |
removePattern(java.lang.String pattern)
Removing a pattern.
|
void |
removeProperty(TokenizerProperty property)
Deregistering a
TokenizerProperty from the store. |
void |
removeSeparators(java.lang.String separators)
Removing separators from the existing set.
|
void |
removeSpecialSequence(java.lang.String specSeq)
Deregistering a special sequence from the parser.
|
void |
removeString(java.lang.String start)
Removing a string description.
|
void |
removeTokenizerPropertyListener(TokenizerPropertyListener listener)
Removing a listener from the list of registered
TokenizerPropertyListener
instances. |
void |
removeWhitespaces(java.lang.String whitespaces)
Removing whitespaces from the existing set.
|
void |
setParseFlags(int flags)
See the method description in
TokenizerProperties. |
void |
setSeparators(java.lang.String separators)
Setting the separator character set of the tokenizer.
|
void |
setWhitespaces(java.lang.String whitespaces)
Setting the whitespace character set of the tokenizer.
|
boolean |
specialSequenceExists(java.lang.String specSeq)
Checks if the given special sequence is known to the
Tokenizer. |
boolean |
stringExists(java.lang.String start)
Checks if the given starting sequence of the string is known to the parser.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBlockComments, getKeywords, getLineComments, getPatterns, getProperties, getSeparators, getSpecialSequences, getStrings, getWhitespacespublic void setParseFlags(int flags)
TokenizerProperties.setParseFlags in interface TokenizerPropertiesflags - the parser control flagsgetParseFlags()public int getParseFlags()
TokenizerProperties.getParseFlags in interface TokenizerPropertiessetParseFlags(int)public boolean isFlagSet(int flag)
true if a given flag is set in the current parse flags.
If the parameter contains more than one bit the method returns only
true if all bits are set.isFlagSet in interface TokenizerPropertiesflag - the flag to testtrue if all bits in flag are set.setParseFlags(int)public boolean isFlagSet(TokenizerProperty prop, int flag) throws java.lang.NullPointerException
Flags) is set for the
given TokenizerProperty in the context of this TokenizerProperties
instance.isFlagSet in interface TokenizerPropertiesprop - the TokenizerProperty concernedflag - the flag to check (may contain more than one bit)true if the flag is set either explicit in the property
or globally for this TokenizerProperties object,
false otherwisejava.lang.NullPointerException - if no property is givenpublic void setWhitespaces(java.lang.String whitespaces)
TokenizerProperties.
doSetWhitespaces(java.lang.String). It guaranties
that the parameter passed to doSetWhitespaces is not null
(instead empty) and uppercase if the Flag Flags.F_NO_CASE
is set.setWhitespaces in interface TokenizerPropertieswhitespaces - the whitespace setTokenizerProperties.getWhitespaces(),
TokenizerProperties.addWhitespaces(java.lang.String),
TokenizerProperties.removeWhitespaces(java.lang.String)public void addWhitespaces(java.lang.String whitespaces)
throws java.lang.IllegalArgumentException
addWhitespaces in interface TokenizerPropertiesadditional - whitespaces for the whitespace setjava.lang.IllegalArgumentException - when null is passed or incomplete
ranges are specified (e.g. "a-")TokenizerProperties.getWhitespaces(),
TokenizerProperties.setWhitespaces(java.lang.String),
TokenizerProperties.removeWhitespaces(java.lang.String)public void removeWhitespaces(java.lang.String whitespaces)
throws java.lang.IllegalArgumentException
removeWhitespaces in interface TokenizerPropertieswhitespaces - whitespaces to remove from the whitespace setjava.lang.IllegalArgumentException - when null is passed or incomplete
ranges are specified (e.g. "a-")TokenizerProperties.getWhitespaces(),
TokenizerProperties.setWhitespaces(java.lang.String),
TokenizerProperties.addWhitespaces(java.lang.String)public void setSeparators(java.lang.String separators)
TokenizerProperties.
doSetSeparators(java.lang.String). It guaranties
that the parameter passed to doSetSeparators is not null
(instead empty) and uppercase if the Flag Flags.F_NO_CASE
is set.setSeparators in interface TokenizerPropertiesseparators - the separator setTokenizerProperties.getSeparators()public void addSeparators(java.lang.String separators)
throws java.lang.IllegalArgumentException
addSeparators in interface TokenizerPropertiesseparators - additional separators for the separator setjava.lang.IllegalArgumentException - when null is passed or incomplete
ranges are specified (e.g. "a-")TokenizerProperties.getSeparators(),
TokenizerProperties.setSeparators(java.lang.String),
TokenizerProperties.removeSeparators(java.lang.String)public void removeSeparators(java.lang.String separators)
throws java.lang.IllegalArgumentException
removeSeparators in interface TokenizerPropertiesseparators - separating characters to remove from the separator setjava.lang.IllegalArgumentException - when null is passed or incomplete
ranges are specified (e.g. "a-")TokenizerProperties.getSeparators(),
TokenizerProperties.setSeparators(java.lang.String),
TokenizerProperties.addSeparators(java.lang.String)public void addString(java.lang.String start,
java.lang.String end,
java.lang.String escape)
throws java.lang.IllegalArgumentException
TokenizerProperties.addString in interface TokenizerPropertiesstart - the starting sequence of a stringend - the finishing sequence of a stringescape - the escape sequence inside the stringjava.lang.IllegalArgumentException - when null or an empty string
is passed for start or endremoveString(java.lang.String),
addString(String, String, String, Object)public void addString(java.lang.String start,
java.lang.String end,
java.lang.String escape,
java.lang.Object companion)
throws java.lang.IllegalArgumentException
TokenizerProperties.addString in interface TokenizerPropertiesstart - the starting sequence of a stringend - the finishing sequence of a stringescape - the escape sequence inside the stringcompanion - the associated informationjava.lang.IllegalArgumentException - when null or an empty string is passed for start or endTokenizerProperties.addString(String, String, String),
TokenizerProperties.addString(String, String, String, Object, int),
TokenizerProperties.removeString(java.lang.String)public void addString(java.lang.String start,
java.lang.String end,
java.lang.String escape,
java.lang.Object companion,
int flags)
throws java.lang.IllegalArgumentException
TokenizerProperties.addString in interface TokenizerPropertiesstart - the starting sequence of a stringend - the finishing sequence of a stringescape - the escape sequence inside the stringcompanion - the associated informationflags - modification flagsjava.lang.IllegalArgumentException - when null or an empty string is passed for start or endTokenizerProperties.addString(String, String, String),
TokenizerProperties.addString(String, String, String, Object),
TokenizerProperties.addString(String, String, String, Object, int, int),
TokenizerProperties.removeString(java.lang.String)public void addString(java.lang.String start,
java.lang.String end,
java.lang.String escape,
java.lang.Object companion,
int flags,
int flagMask)
throws java.lang.IllegalArgumentException
addString in interface TokenizerPropertiesstart - the starting sequence of a stringend - the finishing sequence of a stringescape - the escape sequence inside the stringcompanion - the associated informationflags - modification flagsflagMask - flags that have valid values in the parameter flagsjava.lang.IllegalArgumentException - when null or an empty string
is passed for keywordTokenizerProperties.addString(String, String, String),
TokenizerProperties.addString(String, String, String, Object),
TokenizerProperties.addString(String, String, String, Object, int),
TokenizerProperties.removeString(java.lang.String)public void removeString(java.lang.String start)
throws java.lang.IllegalArgumentException
TokenizerProperties.removeString in interface TokenizerPropertiesstart - the starting sequence of a stringjava.lang.IllegalArgumentException - when null or an empty string is passed for startpublic java.lang.Object getStringCompanion(java.lang.String start)
throws java.lang.IllegalArgumentException
TokenizerProperties.getStringCompanion in interface TokenizerPropertiesstart - the starting sequence of a stringnulljava.lang.IllegalArgumentException - when null or an empty string is passed for startpublic boolean stringExists(java.lang.String start)
TokenizerProperties.stringExists in interface TokenizerPropertiesstart - the starting sequence of a stringtrue if the string is registered,
false otherwisepublic TokenizerProperty getString(java.lang.String start) throws java.lang.IllegalArgumentException
TokenizerProperties.getString in interface TokenizerPropertiesstart - the starting sequence of a stringnulljava.lang.IllegalArgumentException - if the given keyword is empty or nullpublic void addLineComment(java.lang.String lineComment)
throws java.lang.IllegalArgumentException
TokenizerProperties.addLineComment in interface TokenizerPropertieslineComment - the starting sequence of the line commentjava.lang.IllegalArgumentException - when null or an empty string is passed for start sequence of the line commentTokenizerProperties.addLineComment(String, Object),
TokenizerProperties.addLineComment(String, Object, int),
TokenizerProperties.removeLineComment(java.lang.String)public void addLineComment(java.lang.String lineComment,
java.lang.Object companion)
throws java.lang.IllegalArgumentException
TokenizerProperties.addLineComment in interface TokenizerPropertieslineComment - the starting sequence of a line commentcompanion - the associated informationjava.lang.IllegalArgumentException - when null or an empty string is passed for start sequence of the line commentTokenizerProperties.addLineComment(String),
TokenizerProperties.addLineComment(String, Object, int),
TokenizerProperties.removeLineComment(java.lang.String)public void addLineComment(java.lang.String lineComment,
java.lang.Object companion,
int flags)
throws java.lang.IllegalArgumentException
TokenizerProperties.addLineComment in interface TokenizerPropertieslineComment - the starting sequence of a line commentcompanion - the associated informationflags - modification flagsjava.lang.IllegalArgumentException - when null or an empty string
is passed for start sequence of the line commentTokenizerProperties.addLineComment(String),
TokenizerProperties.addLineComment(String, Object),
TokenizerProperties.addLineComment(String, Object, int, int),
TokenizerProperties.removeLineComment(java.lang.String)public void addLineComment(java.lang.String lineComment,
java.lang.Object companion,
int flags,
int flagMask)
throws java.lang.IllegalArgumentException
addLineComment in interface TokenizerPropertieslineComment - the starting sequence of a line commentcompanion - the associated informationflags - modification flagsflagMask - flags that have valid values in the parameter flagsjava.lang.IllegalArgumentException - when null or an empty string
is passed for keywordTokenizerProperties.addLineComment(String),
TokenizerProperties.addLineComment(String, Object),
TokenizerProperties.addLineComment(String, Object, int),
TokenizerProperties.removeLineComment(java.lang.String)public void removeLineComment(java.lang.String lineComment)
throws java.lang.IllegalArgumentException
TokenizerProperties.removeLineComment in interface TokenizerPropertieslineComment - the starting sequence of the line commentjava.lang.IllegalArgumentException - when null or an empty string is passed for start sequence of the line commentTokenizerProperties.addLineComment(String),
TokenizerProperties.addLineComment(String, Object),
TokenizerProperties.addLineComment(String, Object, int)public java.lang.Object getLineCommentCompanion(java.lang.String lineComment)
throws java.lang.IllegalArgumentException
TokenizerProperties.getLineCommentCompanion in interface TokenizerPropertieslineComment - the starting sequence of the line commentjava.lang.IllegalArgumentException - when null or an empty string is passed for start sequence of the line commentTokenizerProperties.lineCommentExists(java.lang.String)public boolean lineCommentExists(java.lang.String lineComment)
TokenizerProperties.lineCommentExists in interface TokenizerPropertieslineComment - the starting sequence of the line commenttrue if the line comment is known,
false otherwisepublic TokenizerProperty getLineComment(java.lang.String lineComment) throws java.lang.IllegalArgumentException
TokenizerProperties.getLineComment in interface TokenizerPropertieslineComment - the starting sequence of the line commentnulljava.lang.IllegalArgumentException - if the given image is empty or nullTokenizerProperties.lineCommentExists(java.lang.String)public void addBlockComment(java.lang.String start,
java.lang.String end)
throws java.lang.IllegalArgumentException
TokenizerProperties.addBlockComment in interface TokenizerPropertiesstart - the starting sequence of the block commentend - the finishing sequence of the block commentjava.lang.IllegalArgumentException - when null or an empty string
is passed for start / end sequence of the block commentTokenizerProperties.addBlockComment(String, String, Object),
TokenizerProperties.addBlockComment(String, String, Object, int),
TokenizerProperties.removeBlockComment(java.lang.String)public void addBlockComment(java.lang.String start,
java.lang.String end,
java.lang.Object companion)
throws java.lang.IllegalArgumentException
TokenizerProperties.addBlockComment in interface TokenizerPropertiesstart - the starting sequence of the block commentend - the finishing sequence of the block commentcompanion - information object associated with this block commentjava.lang.IllegalArgumentException - when null or an empty string
is passed for start / end sequence of the block commentTokenizerProperties.addBlockComment(String, String),
TokenizerProperties.addBlockComment(String, String, Object, int),
TokenizerProperties.removeBlockComment(java.lang.String)public void addBlockComment(java.lang.String start,
java.lang.String end,
java.lang.Object companion,
int flags)
throws java.lang.IllegalArgumentException
TokenizerProperties.addBlockComment in interface TokenizerPropertiesstart - the starting sequence of the block commentend - the finishing sequence of the block commentcompanion - information object associated with this block commentflags - modification flagsjava.lang.IllegalArgumentException - when null or an empty string
is passed for start / end sequence of the block commentTokenizerProperties.addBlockComment(String, String),
TokenizerProperties.addBlockComment(String, String, Object),
TokenizerProperties.addBlockComment(String, String, Object, int, int),
TokenizerProperties.removeBlockComment(java.lang.String)public void addBlockComment(java.lang.String start,
java.lang.String end,
java.lang.Object companion,
int flags,
int flagMask)
throws java.lang.IllegalArgumentException
addBlockComment in interface TokenizerPropertiesstart - the starting sequence of the block commentend - the finishing sequence of the block commentcompanion - information object associated with this block commentflags - modification flagsflagMask - flags that have valid values in the parameter flagsjava.lang.IllegalArgumentException - when null or an empty string
is passed for keywordTokenizerProperties.addBlockComment(String, String),
TokenizerProperties.addBlockComment(String, String, Object),
TokenizerProperties.addBlockComment(String, String, Object, int),
TokenizerProperties.removeBlockComment(java.lang.String)public void removeBlockComment(java.lang.String start)
throws java.lang.IllegalArgumentException
TokenizerProperties.removeBlockComment in interface TokenizerPropertiesstart - the starting sequence of the block commentjava.lang.IllegalArgumentException - when null or an empty string
is passed for start sequence of the block commentpublic java.lang.Object getBlockCommentCompanion(java.lang.String start)
throws java.lang.IllegalArgumentException
TokenizerProperties.getBlockCommentCompanion in interface TokenizerPropertiesstart - the starting sequence of the block commentjava.lang.IllegalArgumentException - when null or an empty string
is passed for start sequence of the block commentpublic boolean blockCommentExists(java.lang.String start)
TokenizerProperties.blockCommentExists in interface TokenizerPropertiesstart - the starting sequence of the block commenttrue if the block comment is known,
false otherwisepublic TokenizerProperty getBlockComment(java.lang.String start) throws java.lang.IllegalArgumentException
TokenizerProperties.getBlockComment in interface TokenizerPropertiesstart - the starting sequence of the block commentnulljava.lang.IllegalArgumentException - if the given image is empty or nullpublic void addSpecialSequence(java.lang.String specSeq)
throws java.lang.IllegalArgumentException
TokenizerProperties.addSpecialSequence in interface TokenizerPropertiesspecSeq - special sequence to registerjava.lang.IllegalArgumentException - if the given sequence is empty or nulladdKeyword(java.lang.String),
setSeparators(java.lang.String)public void addSpecialSequence(java.lang.String specSeq,
java.lang.Object companion)
throws java.lang.IllegalArgumentException
TokenizerProperties.addSpecialSequence in interface TokenizerPropertiesspecSeq - special sequence to registercompanion - information object associated with this special sequencejava.lang.IllegalArgumentException - if the given sequence is empty or nulladdKeyword(java.lang.String),
setSeparators(java.lang.String)public void addSpecialSequence(java.lang.String specSeq,
java.lang.Object companion,
int flags)
throws java.lang.IllegalArgumentException
TokenizerProperties.addSpecialSequence in interface TokenizerPropertiesspecSeq - special sequence to registercompanion - information object associated with this special sequenceflags - modification flagsjava.lang.IllegalArgumentException - if the given sequence is empty or nulladdKeyword(java.lang.String),
setSeparators(java.lang.String)public void addSpecialSequence(java.lang.String specSeq,
java.lang.Object companion,
int flags,
int flagMask)
throws java.lang.IllegalArgumentException
addSpecialSequence in interface TokenizerPropertiesspecSeq - special sequence to registercompanion - information object associated with this special sequenceflags - modification flagsflagMask - flags that have valid values in the parameter flagsjava.lang.IllegalArgumentException - when null or an empty string
is passed for keywordTokenizerProperties.addSpecialSequence(String),
TokenizerProperties.addSpecialSequence(String, Object),
TokenizerProperties.addSpecialSequence(String, Object, int),
TokenizerProperties.removeSpecialSequence(java.lang.String)public void removeSpecialSequence(java.lang.String specSeq)
throws java.lang.IllegalArgumentException
TokenizerProperties.removeSpecialSequence in interface TokenizerPropertiesspecSeq - sequence to removejava.lang.IllegalArgumentException - if the given sequence is empty or nullTokenizerProperties.addSpecialSequence(String),
TokenizerProperties.addSpecialSequence(String, Object),
TokenizerProperties.addSpecialSequence(String, Object, int)public java.lang.Object getSpecialSequenceCompanion(java.lang.String specSeq)
throws java.lang.IllegalArgumentException
TokenizerProperties.getSpecialSequenceCompanion in interface TokenizerPropertiesspecSeq - sequence to removejava.lang.IllegalArgumentException - if the given sequence is empty or nullpublic boolean specialSequenceExists(java.lang.String specSeq)
Tokenizer.
See the method description in TokenizerProperties.specialSequenceExists in interface TokenizerPropertiesspecSeq - sequence to checktrue if the block comment is known,
false otherwisepublic TokenizerProperty getSpecialSequence(java.lang.String specSeq) throws java.lang.IllegalArgumentException
TokenizerProperties.getSpecialSequence in interface TokenizerPropertiesspecSeq - sequence to searchnulljava.lang.IllegalArgumentException - if the given keyword is empty or nullpublic void addKeyword(java.lang.String keyword)
throws java.lang.IllegalArgumentException
TokenizerProperties.addKeyword in interface TokenizerPropertieskeyword - keyword to registerjava.lang.IllegalArgumentException - if the given keyword is empty or nullTokenizerProperties.addKeyword(String, Object),
TokenizerProperties.addKeyword(String, Object, int),
TokenizerProperties.removeKeyword(java.lang.String)public void addKeyword(java.lang.String keyword,
java.lang.Object companion)
throws java.lang.IllegalArgumentException
TokenizerProperties.addKeyword in interface TokenizerPropertieskeyword - keyword to registercompanion - information object associated with this keywordjava.lang.IllegalArgumentException - if the given keyword is empty or nullTokenizerProperties.addKeyword(String),
TokenizerProperties.addKeyword(String, Object, int),
TokenizerProperties.removeKeyword(java.lang.String)public void addKeyword(java.lang.String keyword,
java.lang.Object companion,
int flags)
throws java.lang.IllegalArgumentException
TokenizerProperties.addKeyword in interface TokenizerPropertieskeyword - keyword to registercompanion - information object associated with this keywordflags - modification flagsjava.lang.IllegalArgumentException - if the given keyword is empty or nullTokenizerProperties.addKeyword(String),
TokenizerProperties.addKeyword(String, Object),
TokenizerProperties.removeKeyword(java.lang.String)public void addKeyword(java.lang.String keyword,
java.lang.Object companion,
int flags,
int flagMask)
throws java.lang.IllegalArgumentException
addKeyword in interface TokenizerPropertieskeyword - keyword to registercompanion - information object associated with this keywordflags - modification flagsflagMask - flags that have valid values in the parameter flagsjava.lang.IllegalArgumentException - when null or an empty string
is passed for keywordTokenizerProperties.addKeyword(String),
TokenizerProperties.addKeyword(String, Object),
TokenizerProperties.removeKeyword(java.lang.String)public void removeKeyword(java.lang.String keyword)
throws java.lang.IllegalArgumentException
TokenizerProperties.removeKeyword in interface TokenizerPropertieskeyword - keyword to removejava.lang.IllegalArgumentException - if the given keyword is empty or nullTokenizerProperties.addKeyword(String),
TokenizerProperties.addKeyword(String, Object),
TokenizerProperties.addKeyword(String, Object, int)public java.lang.Object getKeywordCompanion(java.lang.String keyword)
throws java.lang.IllegalArgumentException
TokenizerProperties.getKeywordCompanion in interface TokenizerPropertieskeyword - keyword thats companion is soughtjava.lang.IllegalArgumentException - if the given keyword is empty or nullpublic boolean keywordExists(java.lang.String keyword)
Tokenizer.
See the method description in TokenizerProperties.keywordExists in interface TokenizerPropertieskeyword - keyword to searchtrue if the keyword is known,
false otherwisepublic TokenizerProperty getKeyword(java.lang.String keyword) throws java.lang.IllegalArgumentException
TokenizerProperties.getKeyword in interface TokenizerPropertieskeyword - keyword to searchnulljava.lang.IllegalArgumentException - if the given keyword is empty or nullpublic void addPattern(java.lang.String pattern)
throws java.lang.IllegalArgumentException
TokenizerProperties.addPattern in interface TokenizerPropertiespattern - the regular expression to be addedjava.lang.IllegalArgumentException - when null or an empty pattern
is passedremovePattern(java.lang.String),
addPattern(String, Object),
addPattern(String, Object, int)public void addPattern(java.lang.String pattern,
java.lang.Object companion)
throws java.lang.IllegalArgumentException
TokenizerProperties.addPattern in interface TokenizerPropertiespattern - the regular expression to be addedcompanion - information object associated with this patternjava.lang.IllegalArgumentException - when null or an empty pattern
is passedremovePattern(java.lang.String),
addPattern(String),
addPattern(String, Object, int)public void addPattern(java.lang.String pattern,
java.lang.Object companion,
int flags)
throws java.lang.IllegalArgumentException
TokenizerProperties.addPattern in interface TokenizerPropertiespattern - the regular expression to be addedcompanion - information object associated with this keywordflags - modification flagsjava.lang.IllegalArgumentException - when null or an empty pattern
is passedremovePattern(java.lang.String),
addPattern(String),
addPattern(String, Object)public void addPattern(java.lang.String pattern,
java.lang.Object companion,
int flags,
int flagMask)
throws java.lang.IllegalArgumentException
addPattern(String) for details on pattern.addPattern in interface TokenizerPropertiespattern - the regular expression to be addedcompanion - information object associated with this keywordflags - values for modification flagsflagMask - flags that have valid values in the parameter flagsjava.lang.IllegalArgumentException - when null or an empty pattern
is passedTokenizerProperties.removePattern(java.lang.String),
TokenizerProperties.addPattern(String),
TokenizerProperties.addPattern(String, Object),
TokenizerProperties.addPattern(String, Object, int)public void removePattern(java.lang.String pattern)
throws java.lang.IllegalArgumentException
TokenizerProperties.removePattern in interface TokenizerPropertiespattern - the regular expression to be removedjava.lang.IllegalArgumentException - when null or an empty string
is passedpublic java.lang.Object getPatternCompanion(java.lang.String pattern)
throws java.lang.IllegalArgumentException
TokenizerProperties.getPatternCompanion in interface TokenizerPropertiespattern - the regular expression to be removednulljava.lang.IllegalArgumentException - when null or an emtpy pattern
is passedpublic boolean patternExists(java.lang.String pattern)
TokenizerProperties.patternExists in interface TokenizerPropertiespattern - the regular expression to be looked fortrue if the pattern is registered,
false otherwisepublic TokenizerProperty getPattern(java.lang.String pattern) throws java.lang.IllegalArgumentException
null if the passed start
parameter cannot be mapped to a known string description (stringExists(java.lang.String)
would return false).getPattern in interface TokenizerPropertiespattern - the regular expression to be looked fornulljava.lang.IllegalArgumentException - when null or an emtpy pattern
is passedpublic void addProperty(TokenizerProperty property) throws java.lang.IllegalArgumentException
TokenizerProperty.
See the method description in TokenizerProperties.addProperty in interface TokenizerPropertiesproperty - property to registerjava.lang.IllegalArgumentException - when null, an incomplete or
otherwise unusable property is passedpublic void removeProperty(TokenizerProperty property) throws java.lang.IllegalArgumentException
TokenizerProperty from the store.
See the method description in TokenizerProperties.removeProperty in interface TokenizerPropertiesproperty - property to registerjava.lang.IllegalArgumentException - when null, an incomplete or
otherwise unusable property is passedpublic boolean propertyExists(TokenizerProperty property)
TokenizerProperty is known.
See the method description in TokenizerProperties.propertyExists in interface TokenizerPropertiesproperty - the property to searchtrue if the property is known,
false otherwisepublic void addTokenizerPropertyListener(TokenizerPropertyListener listener)
TokenizerPropertyListener.
See the method description in TokenizerProperties.addTokenizerPropertyListener in interface TokenizerPropertieslistener - the new TokenizerPropertyListenerremoveTokenizerPropertyListener(de.susebox.jtopas.TokenizerPropertyListener)public void removeTokenizerPropertyListener(TokenizerPropertyListener listener)
TokenizerPropertyListener
instances.
See the method description in TokenizerProperties.removeTokenizerPropertyListener in interface TokenizerPropertieslistener - the TokenizerPropertyListener to deregisteraddTokenizerPropertyListener(de.susebox.jtopas.TokenizerPropertyListener)