public interface IProblem
Note, that semantic problems are modeled via ISemanticProblem
.
Modifier and Type | Field and Description |
---|---|
static String |
A_NAMESPACE_NAME
Deprecated.
Not used.
|
static String |
A_PREPROC_CONDITION
Deprecated.
Not used.
|
static String |
A_PREPROC_CONDITIONAL_MISMATCH
Deprecated.
Not used.
|
static String |
A_PREPROC_INCLUDE_FILENAME
Deprecated.
Not used.
|
static String |
A_PREPROC_MACRO_NAME
Deprecated.
Not used.
|
static String |
A_PREPROC_POUND_ERROR
Deprecated.
Not used.
|
static String |
A_PREPROC_POUND_WARNING
Deprecated.
Not used.
|
static String |
A_PREPROC_UNKNOWN_DIRECTIVE
Deprecated.
Not used.
|
static String |
A_SCANNER_BADCHAR
Deprecated.
Not used.
|
static String |
A_SYMBOL_NAME
Deprecated.
Not used.
|
static String |
A_TYPE_NAME
Deprecated.
Not used.
|
static String |
FILENAME_NOT_PROVIDED
Deprecated.
Not used.
|
static int |
IGNORE_CATEGORIES_MASK
Mask to use in order to filter out the category portion of the problem ID.
|
static int |
INT_VALUE_NOT_PROVIDED
-1, returned when an offset or a line number is unknown.
|
static int |
INTERNAL_RELATED
IProblem relates to an implementation or design limitation
|
static int |
MISSING_SEMICOLON
Missing semicolon.
|
static int |
PREPROCESSOR_CIRCULAR_INCLUSION
Circular inclusion encountered by Preprocessor.
|
static int |
PREPROCESSOR_CONDITIONAL_EVAL_ERROR
Preprocessor Conditional cannot not be evaluated due.
|
static int |
PREPROCESSOR_DEFINITION_NOT_FOUND
Macro definition not found by Preprocessor.
|
static int |
PREPROCESSOR_EXCEEDS_MAXIMUM_INCLUSION_DEPTH
Maximum inclusion depth is exceeded
|
static int |
PREPROCESSOR_INCLUSION_NOT_FOUND
Inclusion not found by Preprocessor.
|
static int |
PREPROCESSOR_INVALID_DIRECTIVE
Invalid or unknown preprocessor directive encountered by Preprocessor.
|
static int |
PREPROCESSOR_INVALID_MACRO_DEFN
Invalid format to Macro definition.
|
static int |
PREPROCESSOR_INVALID_MACRO_REDEFN
Invalid macro redefinition encountered by Preprocessor.
|
static int |
PREPROCESSOR_INVALID_VA_ARGS
__VA_ARGS__ encountered in macro definition without the required '...' parameter
Required attributes: none
|
static int |
PREPROCESSOR_MACRO_PASTING_ERROR
Invalid Macro Pasting encountered by Preprocessor.
|
static int |
PREPROCESSOR_MACRO_USAGE_ERROR
Invalid macro usage encountered by Preprocessor.
|
static int |
PREPROCESSOR_MISSING_RPAREN_PARMLIST
macro argument "..." encountered without the required ')' i.e.
|
static int |
PREPROCESSOR_MULTIPLE_USER_DEFINED_SUFFIXES_IN_CONCATENATION
During concatenation of string literals, at least two were found with more than one type of UDL suffix.
|
static int |
PREPROCESSOR_POUND_ERROR
#error encountered by Preprocessor.
|
static int |
PREPROCESSOR_POUND_WARNING
#warning encountered by Preprocessor.
|
static int |
PREPROCESSOR_RELATED
IProblem relates to a valid error on the preprocessor
|
static int |
PREPROCESSOR_UNBALANCE_CONDITION
Preprocessor conditionals seem unbalanced.
|
static int |
SCANNER_ASSIGNMENT_NOT_ALLOWED
Assignment '=' encountered in macro by Scanner.
|
static int |
SCANNER_BAD_BINARY_FORMAT
Bad binary encountered by Scanner.
|
static int |
SCANNER_BAD_CHARACTER
Bad character encountered by Scanner.
|
static int |
SCANNER_BAD_CONDITIONAL_EXPRESSION
Division by 0 encountered in macro by Scanner.
|
static int |
SCANNER_BAD_DECIMAL_FORMAT
Bad decimal encountered by Scanner.
|
static int |
SCANNER_BAD_FLOATING_POINT
Bad floating point encountered by Scanner.
|
static int |
SCANNER_BAD_HEX_FORMAT
Bad hexadecimal encountered by Scanner.
|
static int |
SCANNER_BAD_OCTAL_FORMAT
Bad octal encountered by Scanner.
|
static int |
SCANNER_CONSTANT_WITH_BAD_SUFFIX
Invalid suffix on constant
|
static int |
SCANNER_DIVIDE_BY_ZERO
Division by 0 encountered in macro by Scanner.
|
static int |
SCANNER_EXPRESSION_SYNTAX_ERROR
Expression syntax error encountered in macro by Scanner.
|
static int |
SCANNER_FLOAT_WITH_BAD_PREFIX
Invalid prefix on float
|
static int |
SCANNER_ILLEGAL_IDENTIFIER
Expression syntax error encountered in macro by Scanner.
|
static int |
SCANNER_INVALID_ESCAPECHAR
Invalid escape sequence encountered by Scanner.
|
static int |
SCANNER_MISSING_R_PAREN
Missing ')' encountered in macro by Scanner.
|
static int |
SCANNER_RELATED
IProblem relates to a valid error on the Scanner
|
static int |
SCANNER_UNBOUNDED_STRING
Unbounded literal string encountered by Scanner.
|
static int |
SCANNER_UNEXPECTED_EOF
Unexpected EOF encountered by Scanner.
|
static int |
SEMANTIC_AMBIGUOUS_LOOKUP
Deprecated.
Not used.
|
static int |
SEMANTIC_BAD_VISIBILITY
Deprecated.
Not used.
|
static int |
SEMANTIC_CIRCULAR_INHERITANCE
Deprecated.
Not used.
|
static int |
SEMANTIC_ILLFORMED_FRIEND
Deprecated.
Not used.
|
static int |
SEMANTIC_INVALID_CONVERSION_TYPE
Deprecated.
Not used.
|
static int |
SEMANTIC_INVALID_OVERLOAD
Deprecated.
Not used.
|
static int |
SEMANTIC_INVALID_TEMPLATE
Deprecated.
Not used.
|
static int |
SEMANTIC_INVALID_TEMPLATE_ARGUMENT
Deprecated.
Not used.
|
static int |
SEMANTIC_INVALID_TEMPLATE_PARAMETER
Deprecated.
Not used.
|
static int |
SEMANTIC_INVALID_TYPE
Deprecated.
Not used.
|
static int |
SEMANTIC_INVALID_USING
Deprecated.
Not used.
|
static int |
SEMANTIC_MALFORMED_EXPRESSION
Deprecated.
Not used.
|
static int |
SEMANTIC_NAME_NOT_FOUND
Deprecated.
Not used.
|
static int |
SEMANTIC_NAME_NOT_PROVIDED
Deprecated.
Not used.
|
static int |
SEMANTIC_RECURSIVE_TEMPLATE_INSTANTIATION
Deprecated.
Not used.
|
static int |
SEMANTIC_REDECLARED_TEMPLATE_PARAMETER
Deprecated.
Not used.
|
static int |
SEMANTIC_UNABLE_TO_RESOLVE_FUNCTION
Deprecated.
Not used.
|
static int |
SEMANTIC_UNIQUE_NAME_PREDEFINED
Deprecated.
Not used.
|
static int |
SEMANTICS_RELATED
Deprecated.
Not used.
|
static int |
SYNTAX_ERROR |
static int |
SYNTAX_RELATED
IProblem relates to a valid syntax error in the parser
|
static int |
TEMPLATE_ARGUMENT_NESTING_DEPTH_LIMIT_EXCEEDED
The parser's template argument nesting depth limit was exceeded.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkCategory(int bitmask)
Check the parameter bit-mask against an IProblem's ID to broadly segregate the
types of problems.
|
String[] |
getArguments()
Returns a possibly empty argument array to compute the message.
|
int |
getID()
Returns the problem id
|
String |
getMessage()
Returns a human-readable message describing the problem.
|
String |
getMessageWithLocation()
Returns a human-readable message string describing the problem, adding
location information.
|
char[] |
getOriginatingFileName()
Returns the file name in which the problem was found
|
int |
getSourceEnd()
Returns the end position of the problem (inclusive), or
INT_VALUE_NOT_PROVIDED if unknown. |
int |
getSourceLineNumber()
Returns the line number where the problem begins, or
INT_VALUE_NOT_PROVIDED if unknown. |
int |
getSourceStart()
Returns the start position of the problem (inclusive), or
INT_VALUE_NOT_PROVIDED if unknown. |
boolean |
isError()
Returns whether the problem is an error.
|
boolean |
isWarning()
Returns whether the problem is a warning.
|
static final int INT_VALUE_NOT_PROVIDED
static final int SCANNER_RELATED
static final int PREPROCESSOR_RELATED
static final int SYNTAX_RELATED
static final int INTERNAL_RELATED
static final int IGNORE_CATEGORIES_MASK
static final int SCANNER_BAD_CHARACTER
static final int SCANNER_UNBOUNDED_STRING
static final int SCANNER_INVALID_ESCAPECHAR
static final int SCANNER_BAD_FLOATING_POINT
static final int SCANNER_BAD_HEX_FORMAT
static final int SCANNER_UNEXPECTED_EOF
static final int SCANNER_BAD_OCTAL_FORMAT
static final int SCANNER_BAD_DECIMAL_FORMAT
static final int SCANNER_ASSIGNMENT_NOT_ALLOWED
static final int SCANNER_DIVIDE_BY_ZERO
static final int SCANNER_MISSING_R_PAREN
static final int SCANNER_EXPRESSION_SYNTAX_ERROR
static final int SCANNER_ILLEGAL_IDENTIFIER
static final int SCANNER_BAD_CONDITIONAL_EXPRESSION
static final int SCANNER_BAD_BINARY_FORMAT
static final int SCANNER_CONSTANT_WITH_BAD_SUFFIX
static final int SCANNER_FLOAT_WITH_BAD_PREFIX
static final int PREPROCESSOR_POUND_ERROR
A_PREPROC_POUND_ERROR
,
Constant Field Valuesstatic final int PREPROCESSOR_INCLUSION_NOT_FOUND
A_PREPROC_INCLUDE_FILENAME
,
Constant Field Valuesstatic final int PREPROCESSOR_DEFINITION_NOT_FOUND
A_PREPROC_MACRO_NAME
,
Constant Field Valuesstatic final int PREPROCESSOR_UNBALANCE_CONDITION
static final int PREPROCESSOR_INVALID_MACRO_DEFN
A_PREPROC_MACRO_NAME
,
Constant Field Valuesstatic final int PREPROCESSOR_INVALID_DIRECTIVE
A_PREPROC_UNKNOWN_DIRECTIVE
,
Constant Field Valuesstatic final int PREPROCESSOR_INVALID_MACRO_REDEFN
A_PREPROC_MACRO_NAME
,
Constant Field Valuesstatic final int PREPROCESSOR_CONDITIONAL_EVAL_ERROR
A_PREPROC_CONDITION
,
Constant Field Valuesstatic final int PREPROCESSOR_MACRO_USAGE_ERROR
A_PREPROC_MACRO_NAME
,
Constant Field Valuesstatic final int PREPROCESSOR_MACRO_PASTING_ERROR
A_PREPROC_MACRO_NAME
,
Constant Field Valuesstatic final int PREPROCESSOR_CIRCULAR_INCLUSION
A_PREPROC_INCLUDE_FILENAME
,
Constant Field Valuesstatic final int PREPROCESSOR_MISSING_RPAREN_PARMLIST
static final int PREPROCESSOR_INVALID_VA_ARGS
static final int PREPROCESSOR_POUND_WARNING
A_PREPROC_POUND_WARNING
,
Constant Field Valuesstatic final int PREPROCESSOR_EXCEEDS_MAXIMUM_INCLUSION_DEPTH
static final int PREPROCESSOR_MULTIPLE_USER_DEFINED_SUFFIXES_IN_CONCATENATION
static final int SYNTAX_ERROR
static final int MISSING_SEMICOLON
static final int TEMPLATE_ARGUMENT_NESTING_DEPTH_LIMIT_EXCEEDED
@Deprecated static final int SEMANTICS_RELATED
@Deprecated static final String A_PREPROC_POUND_ERROR
@Deprecated static final String A_PREPROC_POUND_WARNING
@Deprecated static final String A_PREPROC_INCLUDE_FILENAME
@Deprecated static final String A_PREPROC_MACRO_NAME
@Deprecated static final String A_PREPROC_CONDITION
@Deprecated static final String A_PREPROC_UNKNOWN_DIRECTIVE
@Deprecated static final String A_PREPROC_CONDITIONAL_MISMATCH
@Deprecated static final String A_SCANNER_BADCHAR
@Deprecated static final String A_SYMBOL_NAME
@Deprecated static final String A_NAMESPACE_NAME
@Deprecated static final String A_TYPE_NAME
@Deprecated static final String FILENAME_NOT_PROVIDED
@Deprecated static final int SEMANTIC_UNIQUE_NAME_PREDEFINED
@Deprecated static final int SEMANTIC_NAME_NOT_FOUND
@Deprecated static final int SEMANTIC_NAME_NOT_PROVIDED
@Deprecated static final int SEMANTIC_INVALID_OVERLOAD
@Deprecated static final int SEMANTIC_INVALID_USING
@Deprecated static final int SEMANTIC_AMBIGUOUS_LOOKUP
@Deprecated static final int SEMANTIC_INVALID_TYPE
@Deprecated static final int SEMANTIC_CIRCULAR_INHERITANCE
@Deprecated static final int SEMANTIC_INVALID_TEMPLATE
@Deprecated static final int SEMANTIC_BAD_VISIBILITY
@Deprecated static final int SEMANTIC_UNABLE_TO_RESOLVE_FUNCTION
@Deprecated static final int SEMANTIC_INVALID_TEMPLATE_ARGUMENT
@Deprecated static final int SEMANTIC_INVALID_TEMPLATE_PARAMETER
@Deprecated static final int SEMANTIC_REDECLARED_TEMPLATE_PARAMETER
@Deprecated static final int SEMANTIC_INVALID_CONVERSION_TYPE
@Deprecated static final int SEMANTIC_MALFORMED_EXPRESSION
@Deprecated static final int SEMANTIC_ILLFORMED_FRIEND
@Deprecated static final int SEMANTIC_RECURSIVE_TEMPLATE_INSTANTIATION
int getID()
String getMessage()
String getMessageWithLocation()
String[] getArguments()
char[] getOriginatingFileName()
int getSourceStart()
INT_VALUE_NOT_PROVIDED
if unknown.int getSourceEnd()
INT_VALUE_NOT_PROVIDED
if unknown.int getSourceLineNumber()
INT_VALUE_NOT_PROVIDED
if unknown.boolean isError()
boolean isWarning()
boolean checkCategory(int bitmask)
bitmask
- Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.