com.intellij.lang.refactoring
Interface NamesValidator

All Known Implementing Classes:
JavaNamesValidator

public interface NamesValidator

Instances of NamesValidator are obtained from Language instance. An instance encapsulates knowledge of identifier rules and keyword set of the language.

Since:
5.0.1

Method Summary
 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.
 

Method Detail

isKeyword

boolean isKeyword(java.lang.String name,
                  Project project)
Checks if the specified string is a keyword in the custom language.

Parameters:
name - the string to check.
project - the project in the context of which the check is done.
Returns:
true if the string is a keyword, false otherwise.

isIdentifier

boolean isIdentifier(java.lang.String name,
                     Project project)
Checks if the specified string is a valid identifier in the custom language.

Parameters:
name - the string to check.
project - the project in the context of which the check is done.
Returns:
true if the string is a valid identifier, false otherwise.