+
+
+ There are four methods in Check class to control the processed
+ TokenTypes -
+ one setter
+
+ setTokens(), which is used to define a custom set (which is different
+ from the default one) of the processed TokenTypes via config file and
+ three getters, which have to be overridden:
+
+ getDefaultTokens(),
+
+ getAcceptableTokens(),
+
+ getRequiredTokens().
+
+
+
+
+ -
+ getDefaultTokens() - returns a set of TokenTypes which are processed in
+
+ visitToken() method by default.
+
+
+ -
+ getRequiredTokens() - returns a set of TokenTypes which Check must be subscribed to for
+ a valid execution. If the user wants to specify a custom set of TokenTypes then
+ this set must contain all the TokenTypes from RequiredTokens.
+
+
+ -
+ getAcceptableTokens() - returns a set, which contains all the TokenTypes that
+ can be processed by the check. Both DefaultTokens and RequiredTokens and any custom
+ set of TokenTypes are subsets of AcceptableTokens.
+
+
+
+
+
+