Class FeatureNameValidator
- java.lang.Object
-
- org.eclipse.xtext.xbase.validation.FeatureNameValidator
-
- All Implemented Interfaces:
IFeatureNames
- Direct Known Subclasses:
LogicalContainerAwareFeatureNameValidator
public class FeatureNameValidator extends java.lang.Object implements IFeatureNames
Validator utility to answer questions about feature names.
-
-
Field Summary
-
Fields inherited from interface org.eclipse.xtext.xbase.scoping.batch.IFeatureNames
IT, SELF, SUPER, THIS
-
-
Constructor Summary
Constructors Constructor Description FeatureNameValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisDisallowedName(org.eclipse.xtext.naming.QualifiedName name)Returnstrueif it is illegal to define the given name.booleanisDiscouragedName(org.eclipse.xtext.naming.QualifiedName name)Returnstrueif it is discouraged to define the given name.booleanisShadowingAllowed(org.eclipse.xtext.naming.QualifiedName name)Returnstrueif it is legal to shadow a local with the given name.
-
-
-
Method Detail
-
isShadowingAllowed
public boolean isShadowingAllowed(org.eclipse.xtext.naming.QualifiedName name)
Returnstrueif it is legal to shadow a local with the given name.- Parameters:
name- the name that is-to-be-defined.- Returns:
trueif shadowing is legal.
-
isDisallowedName
public boolean isDisallowedName(org.eclipse.xtext.naming.QualifiedName name)
Returnstrueif it is illegal to define the given name.- Parameters:
name- the name that is to-be-defined.- Returns:
trueif the name may not be used.
-
isDiscouragedName
public boolean isDiscouragedName(org.eclipse.xtext.naming.QualifiedName name)
Returnstrueif it is discouraged to define the given name.- Parameters:
name- the name that is to-be-defined.- Returns:
trueif the name may not be used.
-
-