public class FeatureNameValidator extends java.lang.Object implements IFeatureNames
IT, SELF, SUPER, THIS| Constructor and Description |
|---|
FeatureNameValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDisallowedName(QualifiedName name)
Returns
true if it is illegal to define the given name. |
boolean |
isDiscouragedName(QualifiedName name)
Returns
true if it is discouraged to define the given name. |
boolean |
isShadowingAllowed(QualifiedName name)
Returns
true if it is legal to shadow a
local with the given name. |
public boolean isShadowingAllowed(QualifiedName name)
true if it is legal to shadow a
local with the given name.name - the name that is-to-be-defined.true if shadowing is legal.public boolean isDisallowedName(QualifiedName name)
true if it is illegal to define the given name.name - the name that is to-be-defined.true if the name may not be used.public boolean isDiscouragedName(QualifiedName name)
true if it is discouraged to define the given name.name - the name that is to-be-defined.true if the name may not be used.