|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.intellij.lang.refactoring.JavaNamesValidator
public class JavaNamesValidator
Default NamesValidator interface implementation. Uses java language keyword set and java language rules for identifier.
| Constructor Summary | |
|---|---|
JavaNamesValidator()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaNamesValidator()
| Method Detail |
|---|
public boolean isKeyword(java.lang.String name,
Project project)
NamesValidator
isKeyword 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)
NamesValidator
isIdentifier in interface NamesValidatorname - the string to check.project - the project in the context of which the check is done.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||