org.eclipse.jdt.internal.compiler.problem
Class DefaultProblem

java.lang.Object
  extended by org.eclipse.jdt.core.compiler.CategorizedProblem
      extended by org.eclipse.jdt.internal.compiler.problem.DefaultProblem
All Implemented Interfaces:
IProblem

public class DefaultProblem
extends CategorizedProblem


Field Summary
static java.lang.Object[] EMPTY_VALUES
           
 
Fields inherited from class org.eclipse.jdt.core.compiler.CategorizedProblem
CAT_BUILDPATH, CAT_CODE_STYLE, CAT_DEPRECATION, CAT_IMPORT, CAT_INTERNAL, CAT_JAVADOC, CAT_MEMBER, CAT_NAME_SHADOWING_CONFLICT, CAT_NLS, CAT_POTENTIAL_PROGRAMMING_PROBLEM, CAT_RESTRICTION, CAT_SYNTAX, CAT_TYPE, CAT_UNCHECKED_RAW, CAT_UNNECESSARY_CODE, CAT_UNSPECIFIED
 
Fields inherited from interface org.eclipse.jdt.core.compiler.IProblem
AbstractMethodCannotBeOverridden, AbstractMethodInAbstractClass, AbstractMethodMustBeImplemented, AmbiguousConstructor, AmbiguousConstructorInDefaultConstructor, AmbiguousConstructorInImplicitConstructorCall, AmbiguousField, AmbiguousMethod, AmbiguousType, AnnotationCannotOverrideMethod, AnnotationCircularity, AnnotationCircularitySelfReference, AnnotationFieldNeedConstantInitialization, AnnotationMembersCannotHaveParameters, AnnotationMembersCannotHaveTypeParameters, AnnotationTypeDeclarationCannotHaveConstructor, AnnotationTypeDeclarationCannotHaveSuperclass, AnnotationTypeDeclarationCannotHaveSuperinterfaces, AnnotationTypeUsedAsSuperInterface, AnnotationValueMustBeAnEnumConstant, AnnotationValueMustBeAnnotation, AnnotationValueMustBeArrayInitializer, AnnotationValueMustBeClassLiteral, AnnotationValueMustBeConstant, AnonymousClassCannotExtendFinalClass, ArgumentHidingField, ArgumentHidingLocalVariable, ArgumentIsNeverUsed, ArgumentTypeAmbiguous, ArgumentTypeCannotBeVoid, ArgumentTypeCannotBeVoidArray, ArgumentTypeInheritedNameHidesEnclosingName, ArgumentTypeInternalNameProvided, ArgumentTypeNotFound, ArgumentTypeNotVisible, ArrayConstantsOnlyInArrayInitializers, ArrayReferenceRequired, AssignmentHasNoEffect, AssignNull, AttemptBroadenReturnNullity, AttemptNarrowParameterNullity, BodyForAbstractMethod, BodyForNativeMethod, BoundCannotBeArray, BoundHasConflictingArguments, BoundMustBeAnInterface, BoxingConversion, BytecodeExceeds64KLimit, BytecodeExceeds64KLimitForClinit, BytecodeExceeds64KLimitForConstructor, CannotAllocateVoidArray, CannotAssignGhostField, CannotAssignGhostLocal, CannotAssignModelField, CannotDeclareEnumSpecialMethod, CannotDefineAnnotationInLocalType, CannotDefineDimensionExpressionsWithInit, CannotDefineEnumInLocalType, CannotDefineInterfaceInLocalType, CannotDefineStaticInitializerInLocalType, CannotExtendEnum, CannotHideAnInstanceMethodWithAStaticMethod, CannotImportPackage, CannotInvokeSuperConstructorInEnum, CannotOverrideAStaticMethodWithAnInstanceMethod, CannotReadSource, CannotReturnInInitializer, CannotThrowNull, CannotThrowType, CannotUseSuperInCodeSnippet, ClassExtendFinalClass, CodeCannotBeReached, CodeSnippetMissingClass, CodeSnippetMissingMethod, ConflictingImport, ConstructorRelated, ConstructorVarargsArgumentNeedCast, CorruptedSignature, DereferenceNull, DereferenceNullField, DirectInvocationOfAbstractMethod, DisallowedTargetForAnnotation, DiscouragedReference, DuplicateAnnotation, DuplicateAnnotationMember, DuplicateBlankFinalFieldInitialization, DuplicateBounds, DuplicateCase, DuplicateDefaultCase, DuplicateField, DuplicateFinalLocalInitialization, DuplicateImport, DuplicateLabel, DuplicateMethod, DuplicateMethodErasure, DuplicateModifier, DuplicateModifierForArgument, DuplicateModifierForField, DuplicateModifierForMethod, DuplicateModifierForType, DuplicateModifierForVariable, DuplicateNestedType, DuplicateParameterizedMethods, DuplicateSuperInterface, DuplicateTargetInTargetAnnotation, DuplicateTypes, DuplicateTypeVariable, EmptyControlFlowStatement, EnclosingInstanceInConstructorCall, EndOfSource, EnumAbstractMethodMustBeImplemented, EnumConstantMustImplementAbstractMethod, EnumConstantsCannotBeSurroundedByParenthesis, EnumStaticFieldInInInitializerContext, EnumSwitchCannotTargetField, ExceptionTypeAmbiguous, ExceptionTypeInheritedNameHidesEnclosingName, ExceptionTypeInternalNameProvided, ExceptionTypeNotFound, ExceptionTypeNotVisible, ExpressionNotExecutable, ExpressionShouldBeAVariable, ExternalProblemFixable, ExternalProblemNotFixable, FallthroughCase, FieldHidingField, FieldHidingLocalVariable, FieldMissingDeprecatedAnnotation, FieldRelated, FieldTypeAmbiguous, FieldTypeInheritedNameHidesEnclosingName, FieldTypeInternalNameProvided, FieldTypeNotFound, FieldTypeNotVisible, FinalBoundForTypeVariable, FinalFieldAssignment, FinallyMustCompleteNormally, FinalMethodCannotBeOverridden, FinalOuterLocalAssignment, ForbiddenReference, GenericConstructorTypeArgumentMismatch, GenericMethodTypeArgumentMismatch, GenericTypeCannotExtendThrowable, HidingEnclosingType, HierarchyCircularity, HierarchyCircularitySelfReference, HierarchyHasProblems, IgnoreCategoriesMask, IllegalAbstractModifierCombinationForMethod, IllegalAccessFromTypeVariable, IllegalCast, IllegalClassLiteralForTypeVariable, IllegalDimension, IllegalEnclosingInstanceSpecification, IllegalExpressionForSetMembership, IllegalExtendedDimensions, IllegalExtendedDimensionsForVarArgs, IllegalGenericArray, IllegalInstanceofParameterizedType, IllegalInstanceofTypeParameter, IllegalModifierCombinationFinalAbstractForClass, IllegalModifierCombinationFinalVolatileForField, IllegalModifierForAnnotationField, IllegalModifierForAnnotationMemberType, IllegalModifierForAnnotationMethod, IllegalModifierForAnnotationType, IllegalModifierForArgument, IllegalModifierForClass, IllegalModifierForEnum, IllegalModifierForEnumConstant, IllegalModifierForEnumConstructor, IllegalModifierForField, IllegalModifierForInterface, IllegalModifierForInterfaceField, IllegalModifierForInterfaceMethod, IllegalModifierForLocalClass, IllegalModifierForLocalEnum, IllegalModifierForMemberClass, IllegalModifierForMemberEnum, IllegalModifierForMemberInterface, IllegalModifierForMethod, IllegalModifierForVariable, IllegalPrimitiveOrArrayTypeForEnclosingInstance, IllegalQualifiedEnumConstantLabel, IllegalQualifiedParameterizedTypeAllocation, IllegalStaticModifierForMemberType, IllegalTypeForSetComprehension, IllegalTypeVariableSuperReference, IllegalUsageOfQualifiedTypeReference, IllegalVararg, IllegalVisibilityModifierCombinationForField, IllegalVisibilityModifierCombinationForMemberType, IllegalVisibilityModifierCombinationForMethod, IllegalVisibilityModifierForInterfaceMemberType, ImportAmbiguous, ImportInheritedNameHidesEnclosingName, ImportInternalNameProvided, ImportNotFound, ImportNotVisible, ImportRelated, IncompatibleExceptionInInheritedMethodThrowsClause, IncompatibleExceptionInThrowsClause, IncompatibleExceptionInThrowsClauseForNonInheritedInterfaceMethod, IncompatibleParameterNullity, IncompatibleReturnType, IncompatibleReturnTypeForNonInheritedInterfaceMethod, IncompatibleReturnTypeNullity, IncompatibleTypesInConditionalOperator, IncompatibleTypesInEqualityOperator, IncompatibleTypesInForeach, IncorrectArityForParameterizedConstructor, IncorrectArityForParameterizedMethod, IncorrectArityForParameterizedType, IncorrectEnclosingInstanceReference, IncorrectSwitchType, IndirectAccessToStaticField, IndirectAccessToStaticMethod, IndirectAccessToStaticType, InheritedFieldHidesEnclosingName, InheritedMethodHidesEnclosingName, InheritedMethodReducesVisibility, InheritedTypeHidesEnclosingName, InitializerMustCompleteNormally, InstanceFieldDuringConstructorInvocation, InstanceMethodDuringConstructorInvocation, InterfaceAmbiguous, InterfaceCannotHaveConstructors, InterfaceCannotHaveInitializers, InterfaceInheritedNameHidesEnclosingName, InterfaceInternalNameProvided, InterfaceNotFound, InterfaceNotVisible, Internal, InternalTypeNameProvided, InvalidAnnotationMemberType, InvalidBreak, InvalidCatchBlockSequence, InvalidCharacterConstant, InvalidClassInstantiation, InvalidContinue, InvalidDigit, InvalidEncoding, InvalidEscape, InvalidExplicitConstructorCall, InvalidExpressionAsStatement, InvalidFileNameForPackageAnnotations, InvalidFloat, InvalidHexa, InvalidHighSurrogate, InvalidInput, InvalidLowSurrogate, InvalidModifier, InvalidNullToSynchronized, InvalidOctal, InvalidOperator, InvalidParameterizedExceptionType, InvalidParenthesizedExpression, InvalidStoreRefUsage, InvalidTypeExpression, InvalidTypeForCollection, InvalidTypeForStaticImport, InvalidTypeToSynchronized, InvalidTypeVariableExceptionType, InvalidUnaryExpression, InvalidUnicodeEscape, InvalidUsageOfAnnotationDeclarations, InvalidUsageOfAnnotations, InvalidUsageOfEnumDeclarations, InvalidUsageOfForeachStatements, InvalidUsageOfStaticImports, InvalidUsageOfThis, InvalidUsageOfTypeArguments, InvalidUsageOfTypeParameters, InvalidUsageOfTypeParametersForAnnotationDeclaration, InvalidUsageOfTypeParametersForEnumDeclaration, InvalidUsageOfVarargs, InvalidUsageOfWildcard, InvalidVoidExpression, IsClassPathCorrect, Javadoc, JavadocAmbiguousConstructor, JavadocAmbiguousField, JavadocAmbiguousMethod, JavadocAmbiguousMethodReference, JavadocAmbiguousType, JavadocDuplicateParamName, JavadocDuplicateReturnTag, JavadocDuplicateTag, JavadocDuplicateThrowsClassName, JavadocEmptyReturnTag, JavadocGenericConstructorTypeArgumentMismatch, JavadocGenericMethodTypeArgumentMismatch, JavadocHiddenReference, JavadocIncorrectArityForParameterizedConstructor, JavadocIncorrectArityForParameterizedMethod, JavadocInheritedFieldHidesEnclosingName, JavadocInheritedMethodHidesEnclosingName, JavadocInheritedNameHidesEnclosingTypeName, JavadocInternalTypeNameProvided, JavadocInvalidMemberTypeQualification, JavadocInvalidParamName, JavadocInvalidParamTagName, JavadocInvalidParamTagTypeParameter, JavadocInvalidSeeArgs, JavadocInvalidSeeHref, JavadocInvalidSeeReference, JavadocInvalidSeeUrlReference, JavadocInvalidTag, JavadocInvalidThrowsClass, JavadocInvalidThrowsClassName, JavadocInvalidValueReference, JavadocMalformedSeeReference, JavadocMessagePrefix, JavadocMissing, JavadocMissingHashCharacter, JavadocMissingIdentifier, JavadocMissingParamName, JavadocMissingParamTag, JavadocMissingReturnTag, JavadocMissingSeeReference, JavadocMissingTagDescription, JavadocMissingThrowsClassName, JavadocMissingThrowsTag, JavadocNoMessageSendOnArrayType, JavadocNoMessageSendOnBaseType, JavadocNonGenericConstructor, JavadocNonGenericMethod, JavadocNonStaticTypeFromStaticInvocation, JavadocNotVisibleConstructor, JavadocNotVisibleField, JavadocNotVisibleMethod, JavadocNotVisibleType, JavadocParameterizedConstructorArgumentTypeMismatch, JavadocParameterizedMethodArgumentTypeMismatch, JavadocParameterMismatch, JavadocTypeArgumentsForRawGenericConstructor, JavadocTypeArgumentsForRawGenericMethod, JavadocUndefinedConstructor, JavadocUndefinedField, JavadocUndefinedMethod, JavadocUndefinedType, JavadocUnexpectedTag, JavadocUnexpectedText, JavadocUnterminatedInlineTag, JavadocUsingDeprecatedConstructor, JavadocUsingDeprecatedField, JavadocUsingDeprecatedMethod, JavadocUsingDeprecatedType, JmlDisabled, JmlEsc2Caution, JmlEsc2Error, JmlEsc2Fatal, JmlEsc2Warning, LocalVariableCannotBeNull, LocalVariableCanOnlyBeNull, LocalVariableHidingField, LocalVariableHidingLocalVariable, LocalVariableIsNeverUsed, LocalVariableMayBeNull, MaskedCatch, MethodButWithConstructorName, MethodMissingDeprecatedAnnotation, MethodMustOverride, MethodMustOverrideOrImplement, MethodNameClash, MethodReducesVisibility, MethodRelated, MethodRequiresBody, MethodReturnsNull, MethodReturnsVoid, MethodVarargsArgumentNeedCast, MissingArgumentsForParameterizedMemberType, MissingEnclosingInstance, MissingEnclosingInstanceForConstructorCall, MissingEnumConstantCase, MissingOverrideAnnotation, MissingReturnType, MissingSemiColon, MissingSerialVersion, MissingTypeInConstructor, MissingTypeInMethod, MissingValueForAnnotationMember, modelFieldHaveNoInitializer, MustDefineEitherDimensionExpressionsOrInitializer, MustSpecifyPackage, NativeMethodsCannotBeStrictfp, NeedToEmulateConstructorAccess, NeedToEmulateFieldReadAccess, NeedToEmulateFieldWriteAccess, NeedToEmulateMethodAccess, NoAdditionalBoundAfterTypeVariable, NoFieldOnBaseType, NoImplicitStringConversionForCharArrayExpression, NoMessageSendOnArrayType, NoMessageSendOnBaseType, NonBlankFinalLocalAssignment, NonConstantExpression, NonExternalizedStringLiteral, NonGenericConstructor, NonGenericMethod, NonGenericType, NonNullLocalVariableComparisonYieldsFalse, NonStaticAccessToStaticField, NonStaticAccessToStaticMethod, NonStaticContextForEnumMemberType, NonStaticFieldFromStaticInvocation, NonStaticTypeFromStaticInvocation, NotVisibleConstructor, NotVisibleConstructorInDefaultConstructor, NotVisibleConstructorInImplicitConstructorCall, NotVisibleField, NotVisibleMethod, NotVisibleType, NullLocalVariableComparisonYieldsFalse, NullLocalVariableInstanceofYieldsFalse, NullLocalVariableReference, NullSourceString, NumericValueOutOfRange, ObjectCannotBeGeneric, ObjectCannotHaveSuperTypes, ObjectHasNoSuperclass, ObjectMustBeClass, OuterLocalMustBeFinal, OverridingDeprecatedMethod, OverridingMethodWithoutSuperInvocation, OverridingNonVisibleMethod, PackageCollidesWithType, PackageIsNotExpectedPackage, ParameterAssignment, ParameterizedConstructorArgumentTypeMismatch, ParameterizedMethodArgumentTypeMismatch, ParameterMismatch, ParsingError, ParsingErrorDeleteToken, ParsingErrorDeleteTokens, ParsingErrorInsertToComplete, ParsingErrorInsertToCompletePhrase, ParsingErrorInsertToCompleteScope, ParsingErrorInsertTokenAfter, ParsingErrorInsertTokenBefore, ParsingErrorInvalidToken, ParsingErrorMergeTokens, ParsingErrorMisplacedConstruct, ParsingErrorNoSuggestion, ParsingErrorNoSuggestionForTokens, ParsingErrorOnKeyword, ParsingErrorOnKeywordNoSuggestion, ParsingErrorReplaceTokens, ParsingErrorUnexpectedEOF, PossibleAccidentalBooleanAssignment, PotentialNullLocalVariableReference, PublicClassMustMatchFileName, RawMemberTypeCannotBeParameterized, RawTypeReference, RecursiveConstructorInvocation, RedefinedArgument, RedefinedLocal, RedundantLocalVariableNullAssignment, RedundantNullCheckOnNonNullLocalVariable, RedundantNullCheckOnNullLocalVariable, RedundantSuperinterface, ReferenceToForwardField, ReferenceToForwardTypeVariable, ReturnTypeAmbiguous, ReturnTypeCannotBeVoidArray, ReturnTypeInheritedNameHidesEnclosingName, ReturnTypeInternalNameProvided, ReturnTypeNotFound, ReturnTypeNotVisible, SendNull, SendToNull, ShouldReturnValue, StaticInheritedMethodConflicts, StaticMemberOfParameterizedType, StaticMethodRequested, StringConstantIsExceedingUtf8Limit, SuperclassAmbiguous, SuperclassInheritedNameHidesEnclosingName, SuperclassInternalNameProvided, SuperclassMustBeAClass, SuperclassNotFound, SuperclassNotVisible, SuperfluousSemicolon, SuperInterfaceMustBeAnInterface, SuperInterfacesCollide, SuperTypeUsingWildcard, Syntax, Task, ThisInStaticContext, ThisSuperDuringConstructorInvocation, TooManyArgumentSlots, TooManyArrayDimensions, TooManyBytesForStringConstant, TooManyConstantsInConstantPool, TooManyFields, TooManyLocalVariableSlots, TooManyMethods, TooManySyntheticArgumentSlots, TypeArgumentMismatch, TypeArgumentsForRawGenericConstructor, TypeArgumentsForRawGenericMethod, TypeCollidesWithPackage, TypeHidingType, TypeHidingTypeParameterFromMethod, TypeHidingTypeParameterFromType, TypeMismatch, TypeMissingDeprecatedAnnotation, TypeParameterHidingType, TypeReferenceNotExplicitlyMarkedWithNullity, TypeRelated, UnboxingConversion, Unclassified, UndefinedAnnotationMember, UndefinedConstructor, UndefinedConstructorInDefaultConstructor, UndefinedConstructorInImplicitConstructorCall, UndefinedField, UndefinedLabel, UndefinedMethod, UndefinedName, UndefinedType, UndefinedTypeVariable, UndocumentedEmptyBlock, UnexpectedStaticModifierForField, UnexpectedStaticModifierForMethod, UnhandledException, UnhandledExceptionInDefaultConstructor, UnhandledExceptionInImplicitConstructorCall, UnhandledWarningToken, UninitializedBlankFinalField, UninitializedBlankNonNullField, UninitializedLocalVariable, UnmatchedBracket, UnnecessaryArgumentCast, UnnecessaryCast, UnnecessaryElse, UnnecessaryInstanceof, UnnecessaryNLSTag, UnqualifiedFieldAccess, UnreachableCatch, UnsafeGenericArrayForVarargs, UnsafeGenericCast, UnsafeRawConstructorInvocation, UnsafeRawFieldAssignment, UnsafeRawGenericConstructorInvocation, UnsafeRawGenericMethodInvocation, UnsafeRawMethodInvocation, UnsafeReturnTypeOverride, UnsafeTypeConversion, UnterminatedComment, UnterminatedString, UnusedConstructorDeclaredThrownException, UnusedImport, UnusedLabel, UnusedMethodDeclaredThrownException, UnusedPrivateConstructor, UnusedPrivateField, UnusedPrivateMethod, UnusedPrivateType, UnusedTypeArgumentsForConstructorInvocation, UnusedTypeArgumentsForMethodInvocation, UnusedWarningToken, UseAssertAsAnIdentifier, UseEnumAsAnIdentifier, UsingDeprecatedConstructor, UsingDeprecatedField, UsingDeprecatedMethod, UsingDeprecatedType, VarargsConflict, VariableTypeCannotBeVoid, VariableTypeCannotBeVoidArray, VoidMethodReturnsValue, WildcardConstructorInvocation, WildcardFieldAssignment, WildcardMethodInvocation
 
Constructor Summary
DefaultProblem(char[] originatingFileName, java.lang.String message, int id, java.lang.String[] stringArguments, int severity, int startPosition, int endPosition, int line, int column)
           
 
Method Summary
 java.lang.String errorReportSource(char[] unitSource)
           
 java.lang.String[] getArguments()
          Answer back the original arguments recorded into the problem.
 int getCategoryID()
          Returns an integer identifying the category of this problem.
 int getID()
          Answer the type of problem.
 java.lang.String getInternalCategoryMessage()
          Answers a readable name for the category which this problem belongs to, or null if none could be found.
 java.lang.String getMarkerType()
          Returns the marker type associated to this problem.
 java.lang.String getMessage()
          Answer a localized, human-readable message string which describes the problem.
 char[] getOriginatingFileName()
          Answer the file name in which the problem was found.
 int getSourceColumnNumber()
          Answer the line number in source where the problem begins.
 int getSourceEnd()
          Answer the end position of the problem (inclusive), or -1 if unknown.
 int getSourceLineNumber()
          Answer the line number in source where the problem begins.
 int getSourceStart()
          Answer the start position of the problem (inclusive), or -1 if unknown.
 boolean isError()
          Checks the severity to see if the Error bit is set.
 boolean isWarning()
          Checks the severity to see if the Error bit is not set.
 void setOriginatingFileName(char[] fileName)
           
 void setSourceEnd(int sourceEnd)
          Set the end position of the problem (inclusive), or -1 if unknown.
 void setSourceLineNumber(int lineNumber)
          Set the line number in source where the problem begins.
 void setSourceStart(int sourceStart)
          Set the start position of the problem (inclusive), or -1 if unknown.
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.jdt.core.compiler.CategorizedProblem
getExtraMarkerAttributeNames, getExtraMarkerAttributeValues
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_VALUES

public static final java.lang.Object[] EMPTY_VALUES
Constructor Detail

DefaultProblem

public DefaultProblem(char[] originatingFileName,
                      java.lang.String message,
                      int id,
                      java.lang.String[] stringArguments,
                      int severity,
                      int startPosition,
                      int endPosition,
                      int line,
                      int column)
Method Detail

errorReportSource

public java.lang.String errorReportSource(char[] unitSource)

getArguments

public java.lang.String[] getArguments()
Answer back the original arguments recorded into the problem.

Returns:
java.lang.String[]

getCategoryID

public int getCategoryID()
Description copied from class: CategorizedProblem
Returns an integer identifying the category of this problem. Categories, like problem IDs are defined in the context of some marker type. Custom implementations of CategorizedProblem may choose arbitrary values for problem/category IDs, as long as they are associated with a different marker type. Standard Java problem markers (i.e. marker type is "org.eclipse.jdt.core.problem") carry an attribute "categoryId" persisting the originating problem category ID as defined by this method).

Specified by:
getCategoryID in class CategorizedProblem
Returns:
id - an integer identifying the category of this problem
See Also:
CategorizedProblem.getCategoryID()

getID

public int getID()
Answer the type of problem.

Returns:
int
See Also:
IProblem.getID()

getInternalCategoryMessage

public java.lang.String getInternalCategoryMessage()
Answers a readable name for the category which this problem belongs to, or null if none could be found. FOR TESTING PURPOSE

Returns:
java.lang.String

getMarkerType

public java.lang.String getMarkerType()
Returns the marker type associated to this problem.

Specified by:
getMarkerType in class CategorizedProblem
Returns:
the type of the marker which would be associated to the problem
See Also:
CategorizedProblem.getMarkerType()

getMessage

public java.lang.String getMessage()
Answer a localized, human-readable message string which describes the problem.

Returns:
java.lang.String

getOriginatingFileName

public char[] getOriginatingFileName()
Answer the file name in which the problem was found.

Returns:
char[]

getSourceEnd

public int getSourceEnd()
Answer the end position of the problem (inclusive), or -1 if unknown.

Returns:
int

getSourceColumnNumber

public int getSourceColumnNumber()
Answer the line number in source where the problem begins.

Returns:
int

getSourceLineNumber

public int getSourceLineNumber()
Answer the line number in source where the problem begins.

Returns:
int

getSourceStart

public int getSourceStart()
Answer the start position of the problem (inclusive), or -1 if unknown.

Returns:
int

isError

public boolean isError()
Description copied from interface: IProblem
Checks the severity to see if the Error bit is set.

Returns:
true if the Error bit is set for the severity, false otherwise

isWarning

public boolean isWarning()
Description copied from interface: IProblem
Checks the severity to see if the Error bit is not set.

Returns:
true if the Error bit is not set for the severity, false otherwise

setOriginatingFileName

public void setOriginatingFileName(char[] fileName)

setSourceEnd

public void setSourceEnd(int sourceEnd)
Set the end position of the problem (inclusive), or -1 if unknown. Used for shifting problem positions.

Parameters:
sourceEnd - the new value of the sourceEnd of the receiver

setSourceLineNumber

public void setSourceLineNumber(int lineNumber)
Set the line number in source where the problem begins.

Parameters:
lineNumber - the new value of the line number of the receiver

setSourceStart

public void setSourceStart(int sourceStart)
Set the start position of the problem (inclusive), or -1 if unknown. Used for shifting problem positions.

Parameters:
sourceStart - the new value of the source start position of the receiver

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object