Class JavaExtSymbolMatcher
java.lang.Object
org.jfuncmachine.sexprlang.parser.JavaExtSymbolMatcher
- All Implemented Interfaces:
SymbolMatcher
A symbol matcher that matches Java identifiers including those with '.' in them
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSymbolChar(char ch) Tests whether a character is allowed to be in a symbolbooleanisSymbolFirstChar(char ch) Tests whether a character is allowed to begin a symbol
-
Constructor Details
-
JavaExtSymbolMatcher
public JavaExtSymbolMatcher()Create an extended Java symbol matcher
-
-
Method Details
-
isSymbolFirstChar
public boolean isSymbolFirstChar(char ch) Description copied from interface:SymbolMatcherTests whether a character is allowed to begin a symbol- Specified by:
isSymbolFirstCharin interfaceSymbolMatcher- 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:SymbolMatcherTests whether a character is allowed to be in a symbol- Specified by:
isSymbolCharin interfaceSymbolMatcher- Parameters:
ch- The character to test- Returns:
- True if the character is allowed anywhere after the first character of a symbol
-