org.apache.royale.compiler.problems.ProblemID Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compiler Show documentation
Show all versions of compiler Show documentation
The Apache Royale Compiler
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.royale.compiler.problems;
import java.util.EnumSet;
import com.google.common.collect.ImmutableMap;
public enum ProblemID
{
PROBLEM_AccessorTypesMustMatch(AccessorTypesMustMatchProblem.class),
PROBLEM_AccessUndefinedMember(AccessUndefinedMemberProblem.class),
PROBLEM_AccessUndefinedPropertyInPackage(AccessUndefinedPropertyInPackageProblem.class),
PROBLEM_AccessUndefinedProperty(AccessUndefinedPropertyProblem.class),
PROBLEM_AmbiguousGotoTarget(AmbiguousGotoTargetProblem.class),
PROBLEM_AmbiguousReference(AmbiguousReferenceProblem.class),
PROBLEM_AnyNamespaceCannotBeQualifier(AnyNamespaceCannotBeQualifierProblem.class),
PROBLEM_ArrayDowncast(ArrayDowncastProblem.class),
PROBLEM_ASDocNotClosed(ASDocNotClosedProblem.class),
PROBLEM_AssignToConst(AssignToConstProblem.class),
PROBLEM_AssignToFunction(AssignToFunctionProblem.class),
PROBLEM_AssignToNonReferenceValue(AssignToNonReferenceValueProblem.class),
PROBLEM_AssignToReadOnlyProperty(AssignToReadOnlyPropertyProblem.class),
PROBLEM_AttemptToDeleteFixedProperty(AttemptToDeleteFixedPropertyProblem.class),
PROBLEM_AttributesAreNotCallable(AttributesAreNotCallableProblem.class),
PROBLEM_AttributesNotAllowedOnPackageDefinition(AttributesNotAllowedOnPackageDefinitionProblem.class),
PROBLEM_BadAccessInterfaceMember(BadAccessInterfaceMemberProblem.class),
PROBLEM_BadCharacter(BadCharacterProblem.class),
PROBLEM_BadSetterReturnType(BadSetterReturnTypeProblem.class),
PROBLEM_BaseClassIsFinal(BaseClassIsFinalProblem.class),
PROBLEM_BURMDiagnosticForEachExpectedIn(BURMDiagnosticForEachExpectedInProblem.class),
PROBLEM_BURMDiagnosticNotAllowedHere(BURMDiagnosticNotAllowedHereProblem.class),
PROBLEM_BURMPatternMatchFailure(BURMPatternMatchFailureProblem.class),
PROBLEM_CallNonFunction(CallNonFunctionProblem.class),
PROBLEM_CallUndefinedMethod(CallUndefinedMethodProblem.class),
PROBLEM_CannotDeleteSuperDescendants(CannotDeleteSuperDescendantsProblem.class),
PROBLEM_CannotExtendClass(CannotExtendClassProblem.class),
PROBLEM_CannotExtendInterface(CannotExtendInterfaceProblem.class),
PROBLEM_CanNotInsertSemicolon(CanNotInsertSemicolonProblem.class),
PROBLEM_CannotResolveConfigExpression(CannotResolveConfigExpressionProblem.class),
PROBLEM_CannotResolveProjectLevelConfigExpression(CannotResolveProjectLevelConfigExpressionProblem.class),
PROBLEM_CDataNotClosed(CDataNotClosedProblem.class),
PROBLEM_CircularTypeReference(CircularTypeReferenceProblem.class),
PROBLEM_ClassesMappedToSameRemoteAlias(ClassesMappedToSameRemoteAliasProblem.class),
PROBLEM_CommentNotClosed(CommentNotClosedProblem.class),
PROBLEM_ComparisonBetweenUnrelatedTypes(ComparisonBetweenUnrelatedTypesProblem.class),
PROBLEM_CompiledAsAComponent(CompiledAsAComponentProblem.class),
PROBLEM_ComponentTagWithoutURI(ComponentTagWithoutURIProblem.class),
PROBLEM_ConfigurationFileNotFound(ConfigurationFileNotFoundProblem.class),
PROBLEM_ConflictingDefinition(ConflictingDefinitionProblem.class),
PROBLEM_ConflictingInheritedNameInNamespace(ConflictingInheritedNameInNamespaceProblem.class),
PROBLEM_ConflictingNameInNamespace(ConflictingNameInNamespaceProblem.class),
PROBLEM_ConstructorCannotHaveReturnType(ConstructorCannotHaveReturnTypeProblem.class),
PROBLEM_ConstructorInInterface(ConstructorInInterfaceProblem.class),
PROBLEM_ConstructorIsGetterSetter(ConstructorIsGetterSetterProblem.class),
PROBLEM_ConstructorIsStatic(ConstructorIsStaticProblem.class),
PROBLEM_ConstructorMustBePublic(ConstructorMustBePublicProblem.class),
PROBLEM_CountedForLoopInitializer(CountedForLoopInitializerProblem.class),
PROBLEM_CSSCodeGen(CSSCodeGenProblem.class),
PROBLEM_CSSEmbedAsset(CSSEmbedAssetProblem.class),
PROBLEM_CSSExcludedStyleProperty(CSSExcludedStylePropertyProblem.class),
PROBLEM_CSSParser(CSSParserProblem.class),
PROBLEM_CSSUndefinedNamespacePrefix(CSSUndefinedNamespacePrefixProblem.class),
PROBLEM_CSSUndefinedType(CSSUndefinedTypeProblem.class),
PROBLEM_CSSUnknownDefaultNamespace(CSSUnknownDefaultNamespaceProblem.class),
PROBLEM_CSSUnresolvedClassReference(CSSUnresolvedClassReferenceProblem.class),
PROBLEM_CSSUnusedTypeSelector(CSSUnusedTypeSelectorProblem.class),
PROBLEM_CyclicalIncludes(CyclicalIncludesProblem.class),
PROBLEM_DecrementMustBeReference(DecrementMustBeReferenceProblem.class),
PROBLEM_DefinitionShadowedByPackageName(DefinitionShadowedByPackageNameProblem.class),
PROBLEM_DependencyNotCompatible(DependencyNotCompatibleProblem.class),
PROBLEM_DeprecatedAPI(DeprecatedAPIProblem.class),
PROBLEM_DeprecatedAPIWithMessage(DeprecatedAPIWithMessageProblem.class),
PROBLEM_DeprecatedAPIWithReplacement(DeprecatedAPIWithReplacementProblem.class),
PROBLEM_DeprecatedAPIWithSinceAndReplacement(DeprecatedAPIWithSinceAndReplacementProblem.class),
PROBLEM_DeprecatedAPIWithSince(DeprecatedAPIWithSinceProblem.class),
PROBLEM_DuplicateAttribute(DuplicateAttributeProblem.class),
PROBLEM_DuplicateClassDefinition(DuplicateClassDefinitionProblem.class),
PROBLEM_DuplicateFunctionDefinition(DuplicateFunctionDefinitionProblem.class),
PROBLEM_DuplicateImportAlias(DuplicateImportAliasProblem.class),
PROBLEM_DuplicateInterfaceDefinition(DuplicateInterfaceDefinitionProblem.class),
PROBLEM_DuplicateInterface(DuplicateInterfaceProblem.class),
PROBLEM_DuplicateLabel(DuplicateLabelProblem.class),
PROBLEM_DuplicateNamespaceDefinition(DuplicateNamespaceDefinitionProblem.class),
PROBLEM_DuplicateScript(DuplicateScriptProblem.class),
PROBLEM_DuplicateSkinState(DuplicateSkinStateProblem.class),
PROBLEM_DuplicateSourceFile(DuplicateSourceFileProblem.class),
PROBLEM_DuplicateSwitchCase(DuplicateSwitchCaseProblem.class),
PROBLEM_DynamicNotOnClass(DynamicNotOnClassProblem.class),
PROBLEM_EmbedAS2TagsModified(EmbedAS2TagsModifiedProblem.class),
PROBLEM_EmbedBadScalingGridTarget(EmbedBadScalingGridTargetProblem.class),
PROBLEM_EmbedCouldNotDetermineSampleFrameCount(EmbedCouldNotDetermineSampleFrameCountProblem.class),
PROBLEM_EmbedExceptionWhileTranscoding(EmbedExceptionWhileTranscodingProblem.class),
PROBLEM_EmbedInitialValue(EmbedInitialValueProblem.class),
PROBLEM_EmbedInvalidAttributeValue(EmbedInvalidAttributeValueProblem.class),
PROBLEM_EmbedInvalidUnicodeRange(EmbedInvalidUnicodeRangeProblem.class),
PROBLEM_EmbedMissingSymbol(EmbedMissingSymbolProblem.class),
PROBLEM_EmbedMovieScalingNoSymbol(EmbedMovieScalingNoSymbolProblem.class),
PROBLEM_EmbedMultipleMetaTags(EmbedMultipleMetaTagsProblem.class),
PROBLEM_EmbedNoSkinClass(EmbedNoSkinClassProblem.class),
PROBLEM_EmbedNoSourceAttribute(EmbedNoSourceAttributeProblem.class),
PROBLEM_EmbedOnlyOnClassesAndVars(EmbedOnlyOnClassesAndVarsProblem.class),
PROBLEM_EmbedQualityRequiresCompression(EmbedQualityRequiresCompressionProblem.class),
PROBLEM_EmbedQualityValue(EmbedQualityValueProblem.class),
PROBLEM_EmbedScalingGrid(EmbedScalingGridProblem.class),
PROBLEM_EmbedScalingGridValue(EmbedScalingGridValueProblem.class),
PROBLEM_EmbedSkinClassNotFound(EmbedSkinClassNotFoundProblem.class),
PROBLEM_EmbedSourceAttributeCouldNotBeRead(EmbedSourceAttributeCouldNotBeReadProblem.class),
PROBLEM_EmbedSourceAttributeDoesNotExist(EmbedSourceAttributeDoesNotExistProblem.class),
PROBLEM_EmbedSourceFileNotFound(EmbedSourceFileNotFoundProblem.class),
PROBLEM_EmbedTypeNotEmbeddable(EmbedTypeNotEmbeddableProblem.class),
PROBLEM_EmbedUnableToReadSource(EmbedUnableToReadSourceProblem.class),
PROBLEM_EmbedUnknownAttribute(EmbedUnknownAttributeProblem.class),
PROBLEM_EmbedUnknownMimeType(EmbedUnknownMimeTypeProblem.class),
PROBLEM_EmbedUnrecogniedFileType(EmbedUnrecogniedFileTypeProblem.class),
PROBLEM_EmbedUnsupportedAttribute(EmbedUnsupportedAttributeProblem.class),
PROBLEM_EmbedUnsupportedSamplingRate(EmbedUnsupportedSamplingRateProblem.class),
PROBLEM_EmbedUnsupportedType(EmbedUnsupportedTypeProblem.class),
PROBLEM_ExpectDefinitionKeywordAfterAttribute(ExpectDefinitionKeywordAfterAttributeProblem.class),
PROBLEM_ExpectXmlBeforeNamespace(ExpectXmlBeforeNamespaceProblem.class),
PROBLEM_ExtraCharactersAfterEndOfProgram(ExtraCharactersAfterEndOfProgramProblem.class),
PROBLEM_ExtraneousSuperStatement(ExtraneousSuperStatementProblem.class),
PROBLEM_FileInLibraryIO(FileInLibraryIOProblem.class),
PROBLEM_FileInLibraryNotFound(FileInLibraryNotFoundProblem.class),
PROBLEM_FileIO(FileIOProblem.class),
PROBLEM_FileNotFound(FileNotFoundProblem.class),
PROBLEM_FileWrite(FileWriteProblem.class),
PROBLEM_FinalOutsideClass(FinalOutsideClassProblem.class),
PROBLEM_FontEmbeddingNotSupported(FontEmbeddingNotSupported.class),
PROBLEM_ForwardReferenceToBaseClass(ForwardReferenceToBaseClassProblem.class),
PROBLEM_FunctionNotMarkedOverride(FunctionNotMarkedOverrideProblem.class),
PROBLEM_FunctionWithoutBody(FunctionWithoutBodyProblem.class),
PROBLEM_FXGChildNodeNotSupported(FXGChildNodeNotSupportedProblem.class),
PROBLEM_FXGContentNotContiguous(FXGContentNotContiguousProblem.class),
PROBLEM_FXGDefinitionNotFound(FXGDefinitionNotFoundProblem.class),
PROBLEM_FXGErrorEmbeddingImage(FXGErrorEmbeddingImageProblem.class),
PROBLEM_FXGInvalidBooleanValue(FXGInvalidBooleanValueProblem.class),
PROBLEM_FXGInvalidChildColorTransformNode(FXGInvalidChildColorTransformNodeProblem.class),
PROBLEM_FXGInvalidChildMatrixNode(FXGInvalidChildMatrixNodeProblem.class),
PROBLEM_FXGInvalidChildNode(FXGInvalidChildNodeProblem.class),
PROBLEM_FXGInvalidColorMatrixValue(FXGInvalidColorMatrixValueProblem.class),
PROBLEM_FXGInvalidColorValue(FXGInvalidColorValueProblem.class),
PROBLEM_FXGInvalidDefinitionName(FXGInvalidDefinitionNameProblem.class),
PROBLEM_FXGInvalidDoubleValue(FXGInvalidDoubleValueProblem.class),
PROBLEM_FXGInvalidFloatValue(FXGInvalidFloatValueProblem.class),
PROBLEM_FXGInvalidGroupIDAttribute(FXGInvalidGroupIDAttributeProblem.class),
PROBLEM_FXGInvalidIntegerValue(FXGInvalidIntegerValueProblem.class),
PROBLEM_FXGInvalidLibraryElement(FXGInvalidLibraryElementProblem.class),
PROBLEM_FXGInvalidMaskElement(FXGInvalidMaskElementProblem.class),
PROBLEM_FXGInvalidNestingElements(FXGInvalidNestingElementsProblem.class),
PROBLEM_FXGInvalidNodeAttribute(FXGInvalidNodeAttributeProblem.class),
PROBLEM_FXGInvalidPathData(FXGInvalidPathDataProblem.class),
PROBLEM_FXGInvalidPercentValue(FXGInvalidPercentValueProblem.class),
PROBLEM_FXGInvalidRectRadiusXRadiusYAttribute(FXGInvalidRectRadiusXRadiusYAttributeProblem.class),
PROBLEM_FXGInvalidRootNode(FXGInvalidRootNodeProblem.class),
PROBLEM_FXGInvalidScaleGridGroupChild(FXGInvalidScaleGridGroupChildProblem.class),
PROBLEM_FXGInvalidScaleGridRotationAttribute(FXGInvalidScaleGridRotationAttributeProblem.class),
PROBLEM_FXGInvalidTabStops(FXGInvalidTabStopsProblem.class),
PROBLEM_FXGInvalidVersion(FXGInvalidVersionProblem.class),
PROBLEM_FXGMissingAttribute(FXGMissingAttributeProblem.class),
PROBLEM_FXGMissingGroupChildNode(FXGMissingGroupChildNodeProblem.class),
PROBLEM_FXGMultipleElement(FXGMultipleElementProblem.class),
PROBLEM_FXGOutOfRangeValue(FXGOutOfRangeValueProblem.class),
PROBLEM_FXGParser(FXGParserProblem.class),
PROBLEM_FXGPrivateElementNotChildOfGraphic(FXGPrivateElementNotChildOfGraphicProblem.class),
PROBLEM_FXGPrivateElementNotLast(FXGPrivateElementNotLastProblem.class),
PROBLEM_FXGScanning(FXGScanningProblem.class),
PROBLEM_FXGUndefinedProperty(FXGUndefinedPropertyProblem.class),
PROBLEM_FXGUnknownAttributeValue(FXGUnknownAttributeValueProblem.class),
PROBLEM_FXGUnknownElementInVersion(FXGUnknownElementInVersionProblem.class),
PROBLEM_FXGVersionHandlerNotRegistered(FXGVersionHandlerNotRegisteredProblem.class),
PROBLEM_GetterCannotHaveParameters(GetterCannotHaveParametersProblem.class),
PROBLEM_GetterMustNotBeVoid(GetterMustNotBeVoidProblem.class),
PROBLEM_GlobalBindableProperty(GlobalBindablePropertyProblem.class),
PROBLEM_HostComponentClassNotFound(HostComponentClassNotFoundProblem.class),
PROBLEM_HostComponentMustHaveType(HostComponentMustHaveTypeProblem.class),
PROBLEM_IllegalAssignmentToClass(IllegalAssignmentToClassProblem.class),
PROBLEM_ImplicitCoercionToSubtype(ImplicitCoercionToSubtypeProblem.class),
PROBLEM_ImplicitCoercionToUnrelatedType(ImplicitCoercionToUnrelatedTypeProblem.class),
PROBLEM_ImplicitTypeCheckCoercionToUnrelatedType(ImplicitTypeCheckCoercionToUnrelatedTypeProblem.class),
PROBLEM_ImproperlyConfiguredTarget(ImproperlyConfiguredTargetProblem.class),
PROBLEM_InaccessibleMethodReference(InaccessibleMethodReferenceProblem.class),
PROBLEM_InaccessiblePropertyReference(InaccessiblePropertyReferenceProblem.class),
PROBLEM_IncompatibleDefaultValueOfTypeNull(IncompatibleDefaultValueOfTypeNullProblem.class),
PROBLEM_IncompatibleInitializerType(IncompatibleInitializerTypeProblem.class),
PROBLEM_IncompatibleInterfaceMethod(IncompatibleInterfaceMethodProblem.class),
PROBLEM_IncompatibleOverride(IncompatibleOverrideProblem.class),
PROBLEM_IncrementMustBeReference(IncrementMustBeReferenceProblem.class),
PROBLEM_InitializerValueNotAnInteger(InitializerValueNotAnIntegerProblem.class),
PROBLEM_InitializerValueOutOfRange(InitializerValueOutOfRangeProblem.class),
PROBLEM_InlineFunctionNotFinalStaticOrGlobal(InlineFunctionNotFinalStaticOrGlobalProblem.class),
PROBLEM_InlineFunctionTooLarge(InlineFunctionTooLargeProblem.class),
PROBLEM_InlineNestedInliningNotSupported(InlineNestedInliningNotSupportedProblem.class),
PROBLEM_InlineNoSource(InlineNoSourceProblem.class),
PROBLEM_InlineUnsupportedInstruction(InlineUnsupportedInstructionProblem.class),
PROBLEM_InlineUnsupportedNode(InlineUnsupportedNodeProblem.class),
PROBLEM_InterfaceBindableProperty(InterfaceBindablePropertyProblem.class),
PROBLEM_InterfaceCannotBeInstantiated(InterfaceCannotBeInstantiatedProblem.class),
PROBLEM_InterfaceMethodOverride(InterfaceMethodOverrideProblem.class),
PROBLEM_InterfaceMethodWithBody(InterfaceMethodWithBodyProblem.class),
PROBLEM_InterfaceModifier(InterfaceModifierProblem.class),
PROBLEM_InterfaceNamespaceAttribute(InterfaceNamespaceAttributeProblem.class),
PROBLEM_InternalCompiler(InternalCompilerProblem.class),
PROBLEM_InternalCompilerProblem2(InternalCompilerProblem2.class),
PROBLEM_InvalidABCByteCode(InvalidABCByteCodeProblem.class),
PROBLEM_InvalidAttribute(InvalidAttributeProblem.class),
PROBLEM_InvalidBackgroundColor(InvalidBackgroundColorProblem.class),
PROBLEM_InvalidConfigLocation(InvalidConfigLocationProblem.class),
PROBLEM_InvalidDecrementOperand(InvalidDecrementOperandProblem.class),
PROBLEM_InvalidForInInitializer(InvalidForInInitializerProblem.class),
PROBLEM_InvalidImportFile(InvalidImportFileProblem.class),
PROBLEM_InvalidIncrementOperand(InvalidIncrementOperandProblem.class),
PROBLEM_InvalidLabel(InvalidLabelProblem.class),
PROBLEM_InvalidLvalue(InvalidLvalueProblem.class),
PROBLEM_InvalidNamespaceInitializer(InvalidNamespaceInitializerProblem.class),
PROBLEM_InvalidNamespace(InvalidNamespaceProblem.class),
PROBLEM_InvalidOverride(InvalidOverrideProblem.class),
PROBLEM_InvalidPrivateNamespaceAttr(InvalidPrivateNamespaceAttrProblem.class),
PROBLEM_InvalidPrivateNamespace(InvalidPrivateNamespaceProblem.class),
PROBLEM_InvalidProtectedNamespaceAttr(InvalidProtectedNamespaceAttrProblem.class),
PROBLEM_InvalidProtectedNamespace(InvalidProtectedNamespaceProblem.class),
PROBLEM_InvalidPublicNamespaceAttr(InvalidPublicNamespaceAttrProblem.class),
PROBLEM_InvalidPublicNamespace(InvalidPublicNamespaceProblem.class),
PROBLEM_InvalidRestParameterDeclaration(InvalidRestParameterDeclarationProblem.class),
PROBLEM_InvalidSuperExpression(InvalidSuperExpressionProblem.class),
PROBLEM_InvalidSuperStatement(InvalidSuperStatementProblem.class),
PROBLEM_InvalidType(InvalidTypeProblem.class),
PROBLEM_LibraryNotFound(LibraryNotFoundProblem.class),
PROBLEM_LocalBindableProperty(LocalBindablePropertyProblem.class),
PROBLEM_LossyConversion(LossyConversionProblem.class),
PROBLEM_Manifest(ManifestProblem.class),
PROBLEM_MethodCannotBeConstructor(MethodCannotBeConstructorProblem.class),
PROBLEM_MissingBuiltin(MissingBuiltinProblem.class),
PROBLEM_MissingCatchOrFinally(MissingCatchOrFinallyProblem.class),
PROBLEM_MissingFactoryClassInFrameMetadata(MissingFactoryClassInFrameMetadataProblem.class),
PROBLEM_MissingLeftBraceBeforeFunctionBody(MissingLeftBraceBeforeFunctionBodyProblem.class),
PROBLEM_MissingPropertyName(MissingPropertyNameProblem.class),
PROBLEM_MissingRequirementConfiguration(MissingRequirementConfigurationProblem.class),
PROBLEM_MissingSignedDigest(MissingSignedDigestProblem.class),
PROBLEM_MissingSkinPart(MissingSkinPartProblem.class),
PROBLEM_MissingSkinState(MissingSkinStateProblem.class),
PROBLEM_MissingUnsignedDigest(MissingUnsignedDigestProblem.class),
PROBLEM_MultipleConfigNamespaceDecorations(MultipleConfigNamespaceDecorationsProblem.class),
PROBLEM_MultipleContructorDefinitions(MultipleContructorDefinitionsProblem.class),
PROBLEM_MultipleExternallyVisibleDefinitions(MultipleExternallyVisibleDefinitionsProblem.class),
PROBLEM_MultipleNamespaceAttributes(MultipleNamespaceAttributesProblem.class),
PROBLEM_MultipleReservedNamespaceAttributes(MultipleReservedNamespaceAttributesProblem.class),
PROBLEM_MultipleSwitchDefaults(MultipleSwitchDefaultsProblem.class),
PROBLEM_MXMLAttributeVersion(MXMLAttributeVersionProblem.class),
PROBLEM_MXMLBadChildTagPropertyAssignment(MXMLBadChildTagPropertyAssignmentProblem.class),
PROBLEM_MXMLClassNode(MXMLClassNodeProblem.class),
PROBLEM_MXMLConstructorHasParameters(MXMLConstructorHasParametersProblem.class),
PROBLEM_MXMLContentAfterRootTag(MXMLContentAfterRootTagProblem.class),
PROBLEM_MXMLContentBeforeRootTag(MXMLContentBeforeRootTagProblem.class),
PROBLEM_MXMLDatabindingSourceNotBindable(MXMLDatabindingSourceNotBindableProblem.class),
PROBLEM_MXMLDualContent(MXMLDualContentProblem.class),
PROBLEM_MXMLDuplicateAttribute(MXMLDuplicateAttributeProblem.class),
PROBLEM_MXMLDuplicateChildTag(MXMLDuplicateChildTagProblem.class),
PROBLEM_MXMLDuplicateID(MXMLDuplicateIDProblem.class),
PROBLEM_MXMLEmptyAttribute(MXMLEmptyAttributeProblem.class),
PROBLEM_MXMLEmptyEventHandler(MXMLEmptyEventHandlerProblem.class),
PROBLEM_MXMLExecutableStatementsInScriptBlock(MXMLExecutableStatementsInScriptBlockProblem.class),
PROBLEM_MXMLFinalClass(MXMLFinalClassProblem.class),
PROBLEM_MXMLIncludeInAndExcludeFrom(MXMLIncludeInAndExcludeFromProblem.class),
PROBLEM_MXMLIncompatibleArrayElement(MXMLIncompatibleArrayElementProblem.class),
PROBLEM_MXMLIncompatibleVectorElement(MXMLIncompatibleVectorElementProblem.class),
PROBLEM_MXMLInvalidDatabindingExpression(MXMLInvalidDatabindingExpressionProblem.class),
PROBLEM_MXMLInvalidDefinitionName(MXMLInvalidDefinitionNameProblem.class),
PROBLEM_MXMLInvalidEntity(MXMLInvalidEntityProblem.class),
PROBLEM_MXMLInvalidID(MXMLInvalidIDProblem.class),
PROBLEM_MXMLInvalidItemCreationPolicy(MXMLInvalidItemCreationPolicyProblem.class),
PROBLEM_MXMLInvalidItemDestructionPolicy(MXMLInvalidItemDestructionPolicyProblem.class),
PROBLEM_MXMLInvalidPercentage(MXMLInvalidPercentageProblem.class),
PROBLEM_MXMLInvalidSourceAttribute(MXMLInvalidSourceAttributeProblem.class),
PROBLEM_MXMLInvalidStyle(MXMLInvalidStyleProblem.class),
PROBLEM_MXMLInvalidTextForType(MXMLInvalidTextForTypeProblem.class),
PROBLEM_MXMLInvalidVectorFixedAttribute(MXMLInvalidVectorFixedAttributeProblem.class),
PROBLEM_MXMLInvalidVectorTypeAttribute(MXMLInvalidVectorTypeAttributeProblem.class),
PROBLEM_MXMLLibraryTagNotTheFirstChild(MXMLLibraryTagNotTheFirstChildProblem.class),
PROBLEM_MXMLMissingRootTag(MXMLMissingRootTagProblem.class),
PROBLEM_MXMLMissingVectorTypeAttribute(MXMLMissingVectorTypeAttributeProblem.class),
PROBLEM_MXMLMultipleInitializers(MXMLMultipleInitializersProblem.class),
PROBLEM_MXMLMultipleRootTags(MXMLMultipleRootTagsProblem.class),
PROBLEM_MXMLNoAllowedAttributes(MXMLNoAllowedAttributesProblem.class),
PROBLEM_MXMLNotAClass(MXMLNotAClassProblem.class),
PROBLEM_MXMLOtherLanguageNamespace(MXMLOtherLanguageNamespaceProblem.class),
PROBLEM_MXMLOuterDocumentAlreadyDeclared(MXMLOuterDocumentAlreadyDeclaredProblem.class),
PROBLEM_MXMLPercentageNotAllowed(MXMLPercentageNotAllowedProblem.class),
PROBLEM_MXMLPrivateAttribute(MXMLPrivateAttributeProblem.class),
PROBLEM_MXMLPrivateTagLocation(MXMLPrivateTagLocationProblem.class),
PROBLEM_MXMLRequiredAttribute(MXMLRequiredAttributeProblem.class),
PROBLEM_MXMLSameBindingSourceAndDestination(MXMLSameBindingSourceAndDestinationProblem.class),
PROBLEM_MXMLSemantic(MXMLSemanticProblem.class),
PROBLEM_MXMLUnclosedTag(MXMLUnclosedTagProblem.class),
PROBLEM_MXMLUnexpectedAttribute(MXMLUnexpectedAttributeProblem.class),
PROBLEM_MXMLUnexpectedDatabinding(MXMLUnexpectedDatabindingProblem.class),
PROBLEM_MXMLUnexpectedTag(MXMLUnexpectedTagProblem.class),
PROBLEM_MXMLUnexpectedText(MXMLUnexpectedTextProblem.class),
PROBLEM_MXMLUnknownNamespace(MXMLUnknownNamespaceProblem.class),
PROBLEM_MXMLUnknownXMLFormat(MXMLUnknownXMLFormatProblem.class),
PROBLEM_MXMLUnrecognizedCompilerDirective(MXMLUnrecognizedCompilerDirectiveProblem.class),
PROBLEM_MXMLUnresolvedTag(MXMLUnresolvedTagProblem.class),
PROBLEM_MXMLUnterminatedEntity(MXMLUnterminatedEntityProblem.class),
PROBLEM_MXMLXMLListMixedContent(MXMLXMLListMixedContentProblem.class),
PROBLEM_MXMLXMLOnlyOneRootTag(MXMLXMLOnlyOneRootTagProblem.class),
PROBLEM_MXMLXMLProcessingInstructionLocation(MXMLXMLProcessingInstructionLocationProblem.class),
PROBLEM_MXMLXMLRequireContent(MXMLXMLRequireContentProblem.class),
PROBLEM_NamespaceAttributeNotAllowed(NamespaceAttributeNotAllowedProblem.class),
PROBLEM_NamespaceInInterface(NamespaceInInterfaceProblem.class),
PROBLEM_NamespaceOverrideInsideFunction(NamespaceOverrideInsideFunctionProblem.class),
PROBLEM_NativeMethodWithBody(NativeMethodWithBodyProblem.class),
PROBLEM_NativeNotOnFunction(NativeNotOnFunctionProblem.class),
PROBLEM_NativeUsedInInterface(NativeUsedInInterfaceProblem.class),
PROBLEM_NativeVariable(NativeVariableProblem.class),
PROBLEM_NestedClass(NestedClassProblem.class),
PROBLEM_NestedGetterSetter(NestedGetterSetterProblem.class),
PROBLEM_NestedInterface(NestedInterfaceProblem.class),
PROBLEM_NestedPackage(NestedPackageProblem.class),
PROBLEM_NoCompilationUnitForDefinition(NoCompilationUnitForDefinitionProblem.class),
PROBLEM_NoDefaultConstructorInBaseClass(NoDefaultConstructorInBaseClassProblem.class),
PROBLEM_NoDefinitionForSWCDependency(NoDefinitionForSWCDependencyProblem.class),
PROBLEM_NoMainDefinition(NoMainDefinitionProblem.class),
PROBLEM_NonConstantConfigInit(NonConstantConfigInitProblem.class),
PROBLEM_NonConstantParamInitializer(NonConstantParamInitializerProblem.class),
PROBLEM_NonConstConfigVar(NonConstConfigVarProblem.class),
PROBLEM_NonDirectoryInSourcePath(NonDirectoryInSourcePathProblem.class),
PROBLEM_NoScopesInABCCompilationUnit(NoScopesInABCCompilationUnitProblem.class),
PROBLEM_NoSourceForClassInNamespace(NoSourceForClassInNamespaceProblem.class),
PROBLEM_NoSourceForClass(NoSourceForClassProblem.class),
PROBLEM_OnlyOneHostComponentAllowed(OnlyOneHostComponentAllowedProblem.class),
PROBLEM_OperandStackUnderflow(OperandStackUnderflowProblem.class),
PROBLEM_OverrideFinal(OverrideFinalProblem.class),
PROBLEM_OverrideNotFound(OverrideNotFoundProblem.class),
PROBLEM_OverrideOutsideClass(OverrideOutsideClassProblem.class),
PROBLEM_PackageCannotBeUsedAsValue(PackageCannotBeUsedAsValueProblem.class),
PROBLEM_Parser(ParserProblem.class),
PROBLEM_PropertyIsWriteOnly(PropertyIsWriteOnlyProblem.class),
PROBLEM_PrototypeInvalidAttribute(PrototypeInvalidAttributeProblem.class),
PROBLEM_RequiredParameterAfterOptional(RequiredParameterAfterOptionalProblem.class),
PROBLEM_ResourceBundleMalformedEncoding(ResourceBundleMalformedEncodingProblem.class),
PROBLEM_ResourceBundleNoBundleParameter(ResourceBundleNoBundleParameterProblem.class),
PROBLEM_ResourceBundleNoKeyParameter(ResourceBundleNoKeyParameterProblem.class),
PROBLEM_ResourceBundleNotFoundForLocale(ResourceBundleNotFoundForLocaleProblem.class),
PROBLEM_ResourceBundleNotFound(ResourceBundleNotFoundProblem.class),
PROBLEM_RestParamAndArgumentsUsedTogether(RestParamAndArgumentsUsedTogetherProblem.class),
PROBLEM_RestParameterMustBeLast(RestParameterMustBeLastProblem.class),
PROBLEM_ReturnCannotBeUsedInGlobal(ReturnCannotBeUsedInGlobalProblem.class),
PROBLEM_ReturnCannotBeUsedInPackage(ReturnCannotBeUsedInPackageProblem.class),
PROBLEM_ReturnCannotBeUsedInStatic(ReturnCannotBeUsedInStaticProblem.class),
PROBLEM_ReturnMustReturnValue(ReturnMustReturnValueProblem.class),
PROBLEM_ReturnValueHasNoTypeDeclaration(ReturnValueHasNoTypeDeclarationProblem.class),
PROBLEM_ReturnValueInConstructor(ReturnValueInConstructorProblem.class),
PROBLEM_ReturnValueMustBeUndefined(ReturnValueMustBeUndefinedProblem.class),
PROBLEM_ScopeStackUnderflow(ScopeStackUnderflowProblem.class),
PROBLEM_SetterCannotHaveOptional(SetterCannotHaveOptionalProblem.class),
PROBLEM_SetterMustHaveOneParameter(SetterMustHaveOneParameterProblem.class),
PROBLEM_ShadowedConfigNamespace(ShadowedConfigNamespaceProblem.class),
PROBLEM_SkinPartsMustBePublic(SkinPartsMustBePublicProblem.class),
PROBLEM_SourcePathNotFound(SourcePathNotFoundProblem.class),
PROBLEM_StaticAndOverride(StaticAndOverrideProblem.class),
PROBLEM_StaticNamespaceDefinition(StaticNamespaceDefinitionProblem.class),
PROBLEM_StaticOutsideClass(StaticOutsideClassProblem.class),
PROBLEM_StrictUndefinedMethod(StrictUndefinedMethodProblem.class),
PROBLEM_StringLiteralMustBeTerminatedBeforeLineBreak(StringLiteralMustBeTerminatedBeforeLineBreakProblem.class),
PROBLEM_StringLiteralNotClosed(StringLiteralNotClosedProblem.class),
PROBLEM_SWFCharacterIDNotFound(SWFCharacterIDNotFoundProblem.class),
PROBLEM_SWFCSMTextSettingsWrongReferenceType(SWFCSMTextSettingsWrongReferenceTypeProblem.class),
PROBLEM_SWFDefineFontAlignZonesLinkToIncorrectFont(SWFDefineFontAlignZonesLinkToIncorrectFontProblem.class),
PROBLEM_SWFFrameCountMismatch(SWFFrameCountMismatchProblem.class),
PROBLEM_SWFInvalidSignature(SWFInvalidSignatureProblem.class),
PROBLEM_SWFTagLengthTooLong(SWFTagLengthTooLongProblem.class),
PROBLEM_SWFUnableToReadTagBody(SWFUnableToReadTagBodyProblem.class),
PROBLEM_SWFUnexpectedEndOfFile(SWFUnexpectedEndOfFileProblem.class),
PROBLEM_SWFUnknownFillStyle(SWFUnknownFillStyleProblem.class),
PROBLEM_Syntax(SyntaxProblem.class),
PROBLEM_ThisUsedInStaticFunction(ThisUsedInStaticFunctionProblem.class),
PROBLEM_TooFewFunctionParameters(TooFewFunctionParametersProblem.class),
PROBLEM_TooManyFunctionParameters(TooManyFunctionParametersProblem.class),
PROBLEM_UnableToBuildReport(UnableToBuildReportProblem.class),
PROBLEM_UnableToBuildSWF(UnableToBuildSWFProblem.class),
PROBLEM_UnableToBuildSWFTag(UnableToBuildSWFTagProblem.class),
PROBLEM_UnableToCreateLinkReport(UnableToCreateLinkReportProblem.class),
PROBLEM_UnableToFindRootClassDefinition(UnableToFindRootClassDefinitionProblem.class),
PROBLEM_UnableToListFiles(UnableToListFilesProblem.class),
PROBLEM_UnboundMetadata(UnboundMetadataProblem.class),
PROBLEM_UndefinedConfigName(UndefinedConfigNameProblem.class),
PROBLEM_UndefinedConfigNamespace(UndefinedConfigNamespaceProblem.class),
PROBLEM_UnexpectedEOF(UnexpectedEOFProblem.class),
PROBLEM_UnexpectedReturn(UnexpectedReturnProblem.class),
PROBLEM_UnexpectedToken(UnexpectedTokenProblem.class),
PROBLEM_UnimplementedInterfaceMethod(UnimplementedInterfaceMethodProblem.class),
PROBLEM_UnknownBreakTarget(UnknownBreakTargetProblem.class),
PROBLEM_UnknownContinueTarget(UnknownContinueTargetProblem.class),
PROBLEM_UnknownGotoTarget(UnknownGotoTargetProblem.class),
PROBLEM_UnknownImport(UnknownImportProblem.class),
PROBLEM_UnknownInterface(UnknownInterfaceProblem.class),
PROBLEM_UnknownNamespace(UnknownNamespaceProblem.class),
PROBLEM_UnknownSuperclass(UnknownSuperclassProblem.class),
PROBLEM_UnknownType(UnknownTypeProblem.class),
PROBLEM_UnknownWildcardImport(UnknownWildcardImportProblem.class),
PROBLEM_UnreachableBlock(UnreachableBlockProblem.class),
PROBLEM_UnresolvedNamespace(UnresolvedNamespaceProblem.class),
PROBLEM_UnsupportedSourceFile(UnsupportedSourceFileProblem.class),
PROBLEM_VariableDefinitionDuplicatesParameter(VariableDefinitionDuplicatesParameterProblem.class),
PROBLEM_VariableUsedBeforeDeclaration(VariableUsedBeforeDeclarationProblem.class),
PROBLEM_VarInInterface(VarInInterfaceProblem.class),
PROBLEM_VirtualOutsideClass(VirtualOutsideClassProblem.class),
PROBLEM_VoidType(VoidTypeProblem.class),
PROBLEM_WrongSkinPart(WrongSkinPartProblem.class),
PROBLEM_XMLOpenCloseTagNotMatch(XMLOpenCloseTagNotMatchProblem.class);
private ProblemID(Class extends CompilerProblem> problemClass)
{
this.problemClass = problemClass;
}
private final Class extends CompilerProblem> problemClass;
public final Class extends CompilerProblem> getProblemClass()
{
return problemClass;
}
public static final ProblemID getID(ICompilerProblem problem)
{
final CompilerProblem problemImpl = (CompilerProblem)problem;
return classToIDMap.get(problemImpl.getClass());
}
public static final ProblemID getID(Class> problemClass)
{
return classToIDMap.get(problemClass);
}
private static final ImmutableMap, ProblemID> classToIDMap = createClassToIDMap();
private static ImmutableMap, ProblemID> createClassToIDMap()
{
final ImmutableMap.Builder, ProblemID> builder = new ImmutableMap.Builder, ProblemID>();
for (ProblemID id : EnumSet.allOf(ProblemID.class))
builder.put(id.getProblemClass(), id);
return builder.build();
}
}