Class JavaSymbolMatcher

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

public class JavaSymbolMatcher extends Object implements SymbolMatcher
A symbol matcher that matches Java identifiers
  • Constructor Details

    • JavaSymbolMatcher

      public JavaSymbolMatcher()
      Create a 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