public class JavaNamesValidator extends java.lang.Object implements NamesValidator
| Constructor and Description |
|---|
JavaNamesValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isIdentifier(java.lang.String name,
Project project)
Checks if the specified string is a valid identifier in the custom language.
|
boolean |
isKeyword(java.lang.String name,
Project project)
Checks if the specified string is a keyword in the custom language.
|
public boolean isKeyword(java.lang.String name,
Project project)
NamesValidatorisKeyword in interface NamesValidatorname - the string to check.project - the project in the context of which the check is done.public boolean isIdentifier(java.lang.String name,
Project project)
NamesValidatorisIdentifier in interface NamesValidatorname - the string to check.project - the project in the context of which the check is done.