Class BasicKeywordRecognizer

java.lang.Object
com.scriptbasic.lexer.BasicKeywordRecognizer
All Implemented Interfaces:
KeywordRecognizer, ScriptBasicKeyWords

public class BasicKeywordRecognizer extends Object implements KeywordRecognizer, ScriptBasicKeyWords
This class recognizes a reserved keyword.
Author:
verhasp
  • Constructor Details

    • BasicKeywordRecognizer

      public BasicKeywordRecognizer()
  • Method Details

    • isRecognized

      public boolean isRecognized(String identifier)
      Description copied from interface: KeywordRecognizer
      The method checks the argument if present in the reserved keyword list or not.
      Specified by:
      isRecognized in interface KeywordRecognizer
      Parameters:
      identifier - the string of the identifier that may be reserved word
      Returns:
      true if and only if the identifier string is a reserved keyword