io.sarl.lang.validation.subvalidators
Class AbstractSARLJvmGenericTypeValidator
All Superinterfaces:
org.eclipse.emf.ecore.EValidator, org.eclipse.xtext.validation.ValidationMessageAcceptor
All Known Subclasses:
SARLInheritanceValidator
abstract class AbstractSARLJvmGenericTypeValidator
extends java.lang.Object
An abstract implementation for all the validators based on JVM metamodel..
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.14
Property Summary
Modifier and type Property and description
protected SarlJvmModelAssociations associations
Replies the associations between SARL and JVM models.
protected SARLGrammarKeywordAccess grammarAccess
Replies the accessor to the grammar.
protected org.eclipse.xtext.xbase.typesystem.override.OverrideHelper overrideHelper
Replies the tool for managing overrides.
ISARLValidator parentValidator
Replies the parent validator if defined.
protected org.eclipse.xtext.xbase.typesystem.util.IVisibilityHelper visibilityHelper
Replies the tool for managing visibility modifiers.
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
protected static java.lang.String canonicalName(LightweightTypeReference)
Replies the canonical name for the given type.
protected SarlJvmModelAssociations getAssociations
Replies the associations between SARL and JVM models.
protected SARLGrammarKeywordAccess getGrammarAccess
Replies the accessor to the grammar.
org.eclipse.xtext.validation.IssueSeverities getIssueSeverities(Map<K,V>,EObject)
protected org.eclipse.xtext.xbase.typesystem.override.OverrideHelper getOverrideHelper
Replies the tool for managing overrides.
ISARLValidator getParentValidator
Replies the parent validator if defined.
protected org.eclipse.xtext.xbase.typesystem.util.IVisibilityHelper getVisibilityHelper
Replies the tool for managing visibility modifiers.
protected boolean isIgnored(String,EObject)
Replies if the given issue is ignored for the given object.
protected org.eclipse.emf.ecore.EStructuralFeature nameFeature(EObject)
Replies the feature that corresponds to the name attribute of the given member.
protected org.eclipse.emf.ecore.EStructuralFeature returnTypeFeature(EObject)
Replies the feature that corresponds to the return type of the given member.
Property Details
associations
protected val associations : SarlJvmModelAssociations
Replies the associations between SARL and JVM models.

This property is an alias for the action: getAssociations

Returns:
the associations.
grammarAccess
protected val grammarAccess : SARLGrammarKeywordAccess
Replies the accessor to the grammar.

This property is an alias for the action: getGrammarAccess

Returns:
the accessor.
overrideHelper
protected val overrideHelper : org.eclipse.xtext.xbase.typesystem.override.OverrideHelper
Replies the tool for managing overrides.

This property is an alias for the action: getOverrideHelper

Returns:
the tool.
parentValidator
val parentValidator : ISARLValidator
Replies the parent validator if defined.

This property is an alias for the action: getParentValidator

Returns:
parent validator.
visibilityHelper
protected val visibilityHelper : org.eclipse.xtext.xbase.typesystem.util.IVisibilityHelper
Replies the tool for managing visibility modifiers.

This property is an alias for the action: getVisibilityHelper

Returns:
the tool.
Constructor Details
new
new
Action Details
canonicalName(LightweightTypeReference)
protected def canonicalName(LightweightTypeReference) : java.lang.String
Replies the canonical name for the given type.
Parameters:
typeRef - the type.
Returns:
the canonical name.
getAssociations
protected def getAssociations : SarlJvmModelAssociations
Replies the associations between SARL and JVM models.
Returns:
the associations.
getGrammarAccess
protected def getGrammarAccess : SARLGrammarKeywordAccess
Replies the accessor to the grammar.
Returns:
the accessor.
getIssueSeverities(Map<K,V>,EObject)
def getIssueSeverities(Map<K,V>,EObject) : org.eclipse.xtext.validation.IssueSeverities
getOverrideHelper
protected def getOverrideHelper : org.eclipse.xtext.xbase.typesystem.override.OverrideHelper
Replies the tool for managing overrides.
Returns:
the tool.
getParentValidator
def getParentValidator : ISARLValidator
Replies the parent validator if defined.
Returns:
parent validator.
getVisibilityHelper
protected def getVisibilityHelper : org.eclipse.xtext.xbase.typesystem.util.IVisibilityHelper
Replies the tool for managing visibility modifiers.
Returns:
the tool.
isIgnored(String,EObject)
protected def isIgnored(String,EObject) : boolean
Replies if the given issue is ignored for the given object.
Parameters:
issueCode - the code if the issue.
currentObject - the current object.
Returns:
true if the issue is ignored.
See:
isIgnored(String)
nameFeature(EObject)
protected def nameFeature(EObject) : org.eclipse.emf.ecore.EStructuralFeature
Replies the feature that corresponds to the name attribute of the given member.
Parameters:
member - the member.
Returns:
the feature.
returnTypeFeature(EObject)
protected def returnTypeFeature(EObject) : org.eclipse.emf.ecore.EStructuralFeature
Replies the feature that corresponds to the return type of the given member.
Parameters:
member - the member.
Returns:
the feature.