public interface NamesValidator
Language
instance.
An instance encapsulates knowledge of identifier rules and keyword set of the language.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.
|
boolean isKeyword(java.lang.String name, Project project)
name
- the string to check.project
- the project in the context of which the check is done.boolean isIdentifier(java.lang.String name, Project project)
name
- the string to check.project
- the project in the context of which the check is done.