Class JavaExtSymbolMatcher

java.lang.Object
org.jfuncmachine.sexprlang.parser.JavaExtSymbolMatcher
All Implemented Interfaces:
SymbolMatcher

public class JavaExtSymbolMatcher extends Object implements SymbolMatcher
A symbol matcher that matches Java identifiers including those with '.' in them
  • Constructor Details

    • JavaExtSymbolMatcher

      public JavaExtSymbolMatcher()
      Create an extended Java symbol matcher
  • Method Details

    • isSymbolFirstChar

      public boolean isSymbolFirstChar(char ch)
      Description copied from interface: SymbolMatcher
      Tests whether a character is allowed to begin a symbol
      Specified by:
      isSymbolFirstChar in interface SymbolMatcher
      Parameters:
      ch - The character to test
      Returns:
      True if the character is allowed at the beginning of a symbol
    • isSymbolChar

      public boolean isSymbolChar(char ch)
      Description copied from interface: SymbolMatcher
      Tests whether a character is allowed to be in a symbol
      Specified by:
      isSymbolChar in interface SymbolMatcher
      Parameters:
      ch - The character to test
      Returns:
      True if the character is allowed anywhere after the first character of a symbol