public class XbaseValidator extends AbstractXbaseValidator
AbstractDeclarativeValidator.MethodWrapper, AbstractDeclarativeValidator.State, AbstractDeclarativeValidator.StateAccessorg.eclipse.emf.ecore.EValidator.Descriptor, org.eclipse.emf.ecore.EValidator.PatternMatcher, org.eclipse.emf.ecore.EValidator.Registry, org.eclipse.emf.ecore.EValidator.SubstitutionLabelProvider, org.eclipse.emf.ecore.EValidator.ValidationDelegateCURRENT_LANGUAGE_NAME, ISSUE_SEVERITIESINSIGNIFICANT_INDEX| Constructor and Description |
|---|
XbaseValidator() |
acceptError, acceptError, acceptInfo, acceptInfo, acceptWarning, acceptWarning, addIssue, addIssue, addIssue, addIssue, addIssue, addIssueToState, checkDone, checkIsFromCurrentlyCheckedResource, createDiagnostic, createDiagnostic, createMethodWrapper, error, error, error, error, error, error, error, error, getChain, getCheckMode, getContext, getCurrentMethod, getCurrentObject, getIssueSeverities, getMessageAcceptor, guard, info, info, info, info, info, info, info, info, internalValidate, isIgnored, newInstance, setInjector, setMessageAcceptor, toDiagnosticSeverity, warning, warning, warning, warning, warning, warning, warning, warninggetCurrentLanguage, isLanguageSpecific, isResponsible, register, validate, validate, validateprotected CommonTypeComputationServices getServices()
protected LightweightTypeReference getActualType(org.eclipse.emf.ecore.EObject context, JvmIdentifiableElement element)
protected LightweightTypeReference getActualType(XExpression expression)
protected LightweightTypeReference getActualType(JvmIdentifiableElement identifiable)
protected LightweightTypeReference getExpectedType(XExpression expression)
protected void checkCast(JvmTypeReference concreteSyntax, LightweightTypeReference toType, LightweightTypeReference fromType)
protected void checkNumberFormat(XNumberLiteral literal)
public void checkTypeReferenceIsNotVoid(XExpression expression)
protected boolean isPrimitiveVoid(JvmTypeReference typeReference)
public void checkVariableIsNotInferredAsVoid(XVariableDeclaration declaration)
public void checkClosureParameterTypes(XClosure closure)
public void checkTypeArguments(XAbstractFeatureCall expression)
public void checkTypeArguments(XConstructorCall expression)
protected void ensureNotPrimitiveNorWildcard(JvmTypeReference typeRef)
protected LightweightTypeReference toLightweightTypeReference(JvmTypeReference typeRef)
protected LightweightTypeReference toLightweightTypeReference(JvmTypeReference typeRef, boolean keepUnboundWildcardInformation)
public void checkTypeReferenceIsNotVoid(XCasePart expression)
public void checkReturn(XReturnExpression expr)
protected String getNameOfTypes(LightweightTypeReference expectedType)
public void checkTypes(XCatchClause catchClause)
public void checkTypeParameterNotUsedInStaticContext(JvmTypeReference ref)
protected boolean isStaticContext(org.eclipse.emf.ecore.EObject element)
protected boolean isLocalType(org.eclipse.emf.ecore.EObject element)
public void checkTypeParameterConstraintIsValid(JvmTypeParameter typeParameter)
public void doCheckTypeParameterForwardReference(List<JvmTypeParameter> sourceTypeParameters)
public void checkAssignment(XAssignment assignment)
protected void checkFinalFieldInitialization(JvmGenericType type)
protected boolean hasConstructorCallWithThis(JvmConstructor constr)
protected boolean isInitialized(JvmField input)
protected void reportUninitializedField(JvmField field)
protected void reportUninitializedField(JvmField field, JvmConstructor constructor)
protected void reportFieldAlreadyInitialized(XAssignment assignment, JvmField field)
protected void checkInitializationRec(org.eclipse.emf.ecore.EObject expr,
Set<JvmField> fields,
Set<JvmField> initializedForSure,
Set<JvmField> initializedMaybe,
Set<JvmConstructor> visited)
public void checkVariableDeclaration(XVariableDeclaration declaration)
public void checkInnerExpressions(XExpression expr)
protected boolean isValueExpectedRecursive(XExpression expr)
protected void mustBeJavaStatementExpression(XExpression expr)
public void checkCasts(XCastedExpression cast)
public void checkTypeGuards(XCasePart casePart)
public void checkInstanceOf(XInstanceOfExpression instanceOfExpression)
protected boolean memberOfTypeHierarchy(LightweightTypeReference type, LightweightTypeReference potentialMember)
protected boolean containsTypeArgs(LightweightTypeReference instanceOfType)
protected boolean isFinal(LightweightTypeReference expressionTypeRef)
public void checkDelegateConstructorIsFirst(XFeatureCall featureCall)
public void checkConstructorArgumentsAreValid(XFeatureCall featureCall)
protected void checkIsValidConstructorArgument(XExpression argument, JvmType containerType)
public void checkNoCircularConstructorCall(XFeatureCall featureCall)
public void checkNoForwardReferences(XExpression fieldInitializer)
protected boolean isLocalClassSemantics(org.eclipse.emf.ecore.EObject object)
public void checkClosureParams(XClosure closure)
public void checkLocalUsageOfDeclared(XVariableDeclaration variableDeclaration)
public void checkLocalUsageOfSwitchParameter(XSwitchExpression switchExpression)
public void checkTypeLiteral(XTypeLiteral typeLiteral)
public void checkImports(XImportSection importSection)
protected void addImportUnusedIssues(Map<String,List<XImportDeclaration>> imports)
protected void checkConflicts(XImportSection importSection, Map<String,List<XImportDeclaration>> imports, Map<String,JvmType> importedNames)
protected void populateMaps(XImportSection importSection, Map<String,List<XImportDeclaration>> imports, Map<String,List<XImportDeclaration>> staticImports, Map<String,List<XImportDeclaration>> extensionImports, Map<String,JvmType> importedNames)
public void checkPrimitiveComparedToNull(XBinaryOperation binaryOperation)
protected boolean isLocallyUsed(org.eclipse.emf.ecore.EObject target,
org.eclipse.emf.ecore.EObject containerToFindUsage)
protected List<org.eclipse.emf.ecore.EPackage> getEPackages()
getEPackages in class AbstractXbaseValidatorprotected String canonicalName(LightweightTypeReference typeRef)
protected boolean isInterface(JvmType type)
protected XExpressionHelper getExpressionHelper()
public void checkNoJavaStyleTypeCasting(XBlockExpression blockExpression)
protected boolean isXExpressionInsideBlock(INode child)
protected boolean isSemicolon(INode child)
protected void checkNoJavaStyleTypeCasting(INode node)
protected INode getNode(BidiTreeIterator<INode> iterator, org.eclipse.emf.ecore.EObject... grammarElements)
protected ILeafNode getFirstLeafNode(BidiTreeIterator<INode> iterator)
protected boolean isHidden(INode child)
public void checkRedundantCase(XSwitchExpression switchExpression)
public void checkDuplicatedCases(XSwitchExpression switchExpression)
public void checkTypeGuardsOrder(XSwitchExpression expression)
public void checkInstanceOfOrder(XIfExpression expression)
public void checkCatchClausesOrder(XTryCatchFinallyExpression expression)
protected boolean isHandled(LightweightTypeReference actualTypeReference, Collection<LightweightTypeReference> collection)
public void checkIncompleteCasesOnEnum(XSwitchExpression switchExpression)
public void checkAssignment(XBinaryOperation binaryOperation)
public void checkOperandTypesForTripleEquals(XBinaryOperation binaryOperation)
protected boolean isTripleEqualsOperation(XBinaryOperation binaryOperation)
public void checkAssignment(XPostfixOperation postfixOperation)
public void checkExplicitOperationCall(XFeatureCall featureCall)
public void checkExplicitOperationCall(XMemberFeatureCall featureCall)
public void checkExplicitOperationCall(XConstructorCall constructorCall)
protected void checkAssignment(XExpression expression, boolean simpleAssignment)
protected void checkAssignment(XExpression expression, org.eclipse.emf.ecore.EStructuralFeature feature, boolean simpleAssignment)
protected ILogicalContainerProvider getLogicalContainerProvider()
protected void checkDeprecated(JvmIdentifiableElement object, org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EStructuralFeature structuralFeature)
public void checkDeprecated(JvmParameterizedTypeReference type)
public void checkDeprecated(XImportDeclaration decl)
public void checkDeprecated(XAbstractFeatureCall expression)
public void checkDeprecated(XConstructorCall expression)
public void checkDeprecated(XTypeLiteral expression)
Copyright © 2015. All Rights Reserved.