net.sourceforge.nrl.parser
Interface IStatusCode


public interface IStatusCode

An interface of status code constants for the syntax and semantic error classes.

These status codes give a rough indication of the type of error that occurred and can be referred to in manuals.


Field Summary
static int ACTION_FRAGMENT_PARAMETER_MISMATCH
          Something wrong with macro invocation parameters
static int ADD_NEEDS_COLLECTION
          Addition only allowed with collections
static int ADD_TYPES_INCOMPATIBLE
          Addition of object to incompatible collection
static int AMBIGUOUS_EXISTENCE
          Ambiguous implied existence reference
static int ARITHMETIC_EXPRESSION_ARGS_INVALID
          Arithmetic expression over invalid arguments
static int ASSIGNMENT_TYPE_INCOMPATIBLE
          Assignment between incompatible types (e.g.
static int ATTRIBUTE_AMBIGUOUS
          An attribute reference is ambiguous (occurs in multiple contexts).
static int BINARY_OPERATOR_ARGUMENTS_NOT_BOOLEAN
          The arguments to a binary operator (and, or...) were not boolean
static int BINARY_PREDICATE_ARGUMENT_COLLECTION
          Collection used as argument in binary predicate
static int BINARY_PREDICATE_ARGUMENT_COMPLEX
          Complex object used as argument in binary predicate
static int BINARY_PREDICATE_ARGUMENT_INCOMPATIBLE
          Binary predicate arguments are not compatible
static int CANNOT_CAST_COLLECTION
          Collection attributes cannot be cast
static int CAST_COLLECTION
          Cannot cast a collection
static int CAST_REQUIRES_SUBTYPE
          Cast expression needs a subtype to cast to
static int COLLECTION_EXPECTED
          Data type or other complex element found where a collection was expected
static int CONTEXT_NAVIGATION
          Context must refer to a single model element, without navigation
static int CONTEXT_SIMPLE_TYPE
          Context element refers to a simple type
static int CONTEXT_UNKNOWN
          Context element not found
static int CREATE_REFERENCE_INVALID
          Incompatible type being created (e.g.
static int DATATYPE_NAVIGATION
          Tried to navigate attributes of a simple data type (impossible)
static int DUPLICATE_ACTION_FRAGMENT
          Duplicate fragment identifier
static int DUPLICATE_FRAGMENT
          Duplicate fragment id
static int DUPLICATE_GLOBAL_VARIABLE
          Duplicate global variable
static int DUPLICATE_RULE
          Duplicate rule id
static int DUPLICATE_RULESET
          Duplicate rule set identifier
static int DUPLICATE_VARIABLE
          Duplicate variable declaration
static int ELEMENT_AMBIGUOUS
          Global element reference ambiguous
static int ELSE_ARGUMENTS_NOT_BOOLEAN
          The arguments to an else were not boolean
static int FRAGMENT_CYCLICAL_REFERENCE
          Property reference cycle
static int FRAGMENT_PARAMETER_MISMATCH
          Wrong number/type of property parameters
static int FRAGMENT_RESULT_COMPLEX
          Complex results not allowed in property
static int GLOBAL_VARIABLE_NAVIGATION
          Tried to use global variable as a non-constant
static int IF_ARGUMENTS_NOT_BOOLEAN
          The arguments to an if were not boolean
static int IF_STATEMENT_MULTIPLE_TYPES
          If statement with multiple return types
static int ILLEGAL_ASSIGNMENT_TARGET
          Cannot set model elements or variables
static int ILLEGAL_ELEMENT_REFERENCE
          Reference to an element where only an attribute should be allowed
static int ILLEGAL_STATIC_REFERENCE
          Reference to static variable where none are allowed
static int ILLEGAL_VARIABLE_NAVIGATION
          Tried to navigate from a variable bound to an expression
static int IMPLICIT_ITERATION
          Implicit iteration
static int INVALID_ACTION_FRAGMENT_REF
          Reference to non-existent fragment
static int INVALID_FRAGMENT_REF
          Invalid property reference
static int INVALID_PACKAGE_REFERENCE
          A name referenced is not a package (but should be)
static int INVALID_VARIABLE_NAME
          Invalid variable name (e.g.
static int IS_IN_EXPRESSION_INCOMPATIBLE
          "is in" expression not compatible
static int IS_IN_EXPRESSION_TYPE_MISMATCH
          "is in" expression has a type mismatch with the list of values
static int IS_IN_LIST_ENTRY_INVALID
          "is in" has an invalid entry in the list
static int ITERATION_NEEDS_COLLECTION
          Iteration only allowed over collections
static int LEXER_ERROR
          Lexer error - invalid character
static int MODEL_NOT_FOUND
          The model file was not found
static int NUMBER_EXPECTED
          Number type was expected
static int OPERATOR_COLLECTION_PARAMETER
          Cannot pass collections as parameters
static int OPERATOR_PARAMETER_MISMATCH
          Mismatch between parameter definition and operator invocation
static int OPERATOR_TYPE_MISMATCH
          Operator parameter type mismatch
static int OPERATOR_TYPE_UNKNOWN
          Operator parameter/return type is unknown
static int OPERATOR_UNKNOWN
          Unknown operator reference
static int PARSER_ERROR
          Unexpected token
static int PROPERTY_CONTEXT_MISMATCH
          Tried to apply a property to the wrong type of object
static int PROPERTY_NOT_BOOLEAN
          A property has been declared with a non-boolean constraint
static int QUANTIFIER_ARGUMENT_NOT_BOOLEAN
          Quantifiers (exists, forall, not exists) expect a boolean condition as a sub-element.
static int REMOVE_CANNOT_REMOVE_COLLECTION
          Cannot remove a collection
static int REMOVE_NEEDS_COLLECTION
          Removal only allowed from collections
static int REMOVE_TYPES_INCOMPATIBLE
          Removing incompatible type from collection
static int RETRIEVE_REFERENCE_INVALID
          Incompatible type being selected from (e.g.
static int RULE_NOT_BOOLEAN
          A rule has been declared with a non-boolean constraint
static int RULESET_MIXES_RULETYPES
          Constraint and action rules mixed in set
static int RULESET_PRECONDITION_NOT_BOOLEAN
          Rule set precondition is not a boolean
static int SELECTION_CONSTRAINT_NOT_BOOLEAN
          Selection expression constraints must be boolean.
static int STATIC_REFERENCE_TO_NONSTATIC_ATTRIBUTE
          Tried to make a static reference to a non-static attribute
static int THEN_ARGUMENTS_NOT_BOOLEAN
          The arguments to a then were not boolean
static int UNKNOWN_ATTRIBUTE
          Reference to an unknown attribute
static int UNKNOWN_DATATYPE
          Model element or operator type is unknown
static int UNKNOWN_ELEMENT_OR_ATTRIBUTE
          Reference to an unknown element or attribute
static int VOID_OPERATOR_IN_EXPRESSION
          Operator void type in expression
static int WHERE_CLAUSE_DISALLOWED
          Illegal to delete a single attribute with a where clause
static int WHERE_NOT_BOOLEAN
          Where clause is not boolean
 

Field Detail

LEXER_ERROR

static final int LEXER_ERROR
Lexer error - invalid character

See Also:
Constant Field Values

PARSER_ERROR

static final int PARSER_ERROR
Unexpected token

See Also:
Constant Field Values

INVALID_VARIABLE_NAME

static final int INVALID_VARIABLE_NAME
Invalid variable name (e.g. spaces in it)

See Also:
Constant Field Values

DUPLICATE_RULE

static final int DUPLICATE_RULE
Duplicate rule id

See Also:
Constant Field Values

DUPLICATE_FRAGMENT

static final int DUPLICATE_FRAGMENT
Duplicate fragment id

See Also:
Constant Field Values

INVALID_FRAGMENT_REF

static final int INVALID_FRAGMENT_REF
Invalid property reference

See Also:
Constant Field Values

AMBIGUOUS_EXISTENCE

static final int AMBIGUOUS_EXISTENCE
Ambiguous implied existence reference

See Also:
Constant Field Values

DUPLICATE_RULESET

static final int DUPLICATE_RULESET
Duplicate rule set identifier

See Also:
Constant Field Values

DUPLICATE_GLOBAL_VARIABLE

static final int DUPLICATE_GLOBAL_VARIABLE
Duplicate global variable

See Also:
Constant Field Values

FRAGMENT_CYCLICAL_REFERENCE

static final int FRAGMENT_CYCLICAL_REFERENCE
Property reference cycle

See Also:
Constant Field Values

OPERATOR_UNKNOWN

static final int OPERATOR_UNKNOWN
Unknown operator reference

See Also:
Constant Field Values

OPERATOR_PARAMETER_MISMATCH

static final int OPERATOR_PARAMETER_MISMATCH
Mismatch between parameter definition and operator invocation

See Also:
Constant Field Values

DUPLICATE_ACTION_FRAGMENT

static final int DUPLICATE_ACTION_FRAGMENT
Duplicate fragment identifier

See Also:
Constant Field Values

INVALID_ACTION_FRAGMENT_REF

static final int INVALID_ACTION_FRAGMENT_REF
Reference to non-existent fragment

See Also:
Constant Field Values

MODEL_NOT_FOUND

static final int MODEL_NOT_FOUND
The model file was not found

See Also:
Constant Field Values

CONTEXT_UNKNOWN

static final int CONTEXT_UNKNOWN
Context element not found

See Also:
Constant Field Values

CONTEXT_SIMPLE_TYPE

static final int CONTEXT_SIMPLE_TYPE
Context element refers to a simple type

See Also:
Constant Field Values

ELEMENT_AMBIGUOUS

static final int ELEMENT_AMBIGUOUS
Global element reference ambiguous

See Also:
Constant Field Values

UNKNOWN_ELEMENT_OR_ATTRIBUTE

static final int UNKNOWN_ELEMENT_OR_ATTRIBUTE
Reference to an unknown element or attribute

See Also:
Constant Field Values

UNKNOWN_ATTRIBUTE

static final int UNKNOWN_ATTRIBUTE
Reference to an unknown attribute

See Also:
Constant Field Values

ILLEGAL_ELEMENT_REFERENCE

static final int ILLEGAL_ELEMENT_REFERENCE
Reference to an element where only an attribute should be allowed

See Also:
Constant Field Values

DATATYPE_NAVIGATION

static final int DATATYPE_NAVIGATION
Tried to navigate attributes of a simple data type (impossible)

See Also:
Constant Field Values

STATIC_REFERENCE_TO_NONSTATIC_ATTRIBUTE

static final int STATIC_REFERENCE_TO_NONSTATIC_ATTRIBUTE
Tried to make a static reference to a non-static attribute

See Also:
Constant Field Values

INVALID_PACKAGE_REFERENCE

static final int INVALID_PACKAGE_REFERENCE
A name referenced is not a package (but should be)

See Also:
Constant Field Values

CONTEXT_NAVIGATION

static final int CONTEXT_NAVIGATION
Context must refer to a single model element, without navigation

See Also:
Constant Field Values

ATTRIBUTE_AMBIGUOUS

static final int ATTRIBUTE_AMBIGUOUS
An attribute reference is ambiguous (occurs in multiple contexts).

See Also:
Constant Field Values

ILLEGAL_VARIABLE_NAVIGATION

static final int ILLEGAL_VARIABLE_NAVIGATION
Tried to navigate from a variable bound to an expression

See Also:
Constant Field Values

DUPLICATE_VARIABLE

static final int DUPLICATE_VARIABLE
Duplicate variable declaration

See Also:
Constant Field Values

GLOBAL_VARIABLE_NAVIGATION

static final int GLOBAL_VARIABLE_NAVIGATION
Tried to use global variable as a non-constant

See Also:
Constant Field Values

ILLEGAL_STATIC_REFERENCE

static final int ILLEGAL_STATIC_REFERENCE
Reference to static variable where none are allowed

See Also:
Constant Field Values

CREATE_REFERENCE_INVALID

static final int CREATE_REFERENCE_INVALID
Incompatible type being created (e.g. not classifier)

See Also:
Constant Field Values

RETRIEVE_REFERENCE_INVALID

static final int RETRIEVE_REFERENCE_INVALID
Incompatible type being selected from (e.g. not classifier)

See Also:
Constant Field Values

RULE_NOT_BOOLEAN

static final int RULE_NOT_BOOLEAN
A rule has been declared with a non-boolean constraint

See Also:
Constant Field Values

PROPERTY_NOT_BOOLEAN

static final int PROPERTY_NOT_BOOLEAN
A property has been declared with a non-boolean constraint

See Also:
Constant Field Values

BINARY_OPERATOR_ARGUMENTS_NOT_BOOLEAN

static final int BINARY_OPERATOR_ARGUMENTS_NOT_BOOLEAN
The arguments to a binary operator (and, or...) were not boolean

See Also:
Constant Field Values

IF_ARGUMENTS_NOT_BOOLEAN

static final int IF_ARGUMENTS_NOT_BOOLEAN
The arguments to an if were not boolean

See Also:
Constant Field Values

THEN_ARGUMENTS_NOT_BOOLEAN

static final int THEN_ARGUMENTS_NOT_BOOLEAN
The arguments to a then were not boolean

See Also:
Constant Field Values

ELSE_ARGUMENTS_NOT_BOOLEAN

static final int ELSE_ARGUMENTS_NOT_BOOLEAN
The arguments to an else were not boolean

See Also:
Constant Field Values

PROPERTY_CONTEXT_MISMATCH

static final int PROPERTY_CONTEXT_MISMATCH
Tried to apply a property to the wrong type of object

See Also:
Constant Field Values

ARITHMETIC_EXPRESSION_ARGS_INVALID

static final int ARITHMETIC_EXPRESSION_ARGS_INVALID
Arithmetic expression over invalid arguments

See Also:
Constant Field Values

BINARY_PREDICATE_ARGUMENT_COMPLEX

static final int BINARY_PREDICATE_ARGUMENT_COMPLEX
Complex object used as argument in binary predicate

See Also:
Constant Field Values

BINARY_PREDICATE_ARGUMENT_COLLECTION

static final int BINARY_PREDICATE_ARGUMENT_COLLECTION
Collection used as argument in binary predicate

See Also:
Constant Field Values

COLLECTION_EXPECTED

static final int COLLECTION_EXPECTED
Data type or other complex element found where a collection was expected

See Also:
Constant Field Values

IMPLICIT_ITERATION

static final int IMPLICIT_ITERATION
Implicit iteration

See Also:
Constant Field Values

NUMBER_EXPECTED

static final int NUMBER_EXPECTED
Number type was expected

See Also:
Constant Field Values

QUANTIFIER_ARGUMENT_NOT_BOOLEAN

static final int QUANTIFIER_ARGUMENT_NOT_BOOLEAN
Quantifiers (exists, forall, not exists) expect a boolean condition as a sub-element.

See Also:
Constant Field Values

BINARY_PREDICATE_ARGUMENT_INCOMPATIBLE

static final int BINARY_PREDICATE_ARGUMENT_INCOMPATIBLE
Binary predicate arguments are not compatible

See Also:
Constant Field Values

IS_IN_EXPRESSION_INCOMPATIBLE

static final int IS_IN_EXPRESSION_INCOMPATIBLE
"is in" expression not compatible

See Also:
Constant Field Values

RULESET_PRECONDITION_NOT_BOOLEAN

static final int RULESET_PRECONDITION_NOT_BOOLEAN
Rule set precondition is not a boolean

See Also:
Constant Field Values

FRAGMENT_PARAMETER_MISMATCH

static final int FRAGMENT_PARAMETER_MISMATCH
Wrong number/type of property parameters

See Also:
Constant Field Values

FRAGMENT_RESULT_COMPLEX

static final int FRAGMENT_RESULT_COMPLEX
Complex results not allowed in property

See Also:
Constant Field Values

IF_STATEMENT_MULTIPLE_TYPES

static final int IF_STATEMENT_MULTIPLE_TYPES
If statement with multiple return types

See Also:
Constant Field Values

CAST_REQUIRES_SUBTYPE

static final int CAST_REQUIRES_SUBTYPE
Cast expression needs a subtype to cast to

See Also:
Constant Field Values

CANNOT_CAST_COLLECTION

static final int CANNOT_CAST_COLLECTION
Collection attributes cannot be cast

See Also:
Constant Field Values

UNKNOWN_DATATYPE

static final int UNKNOWN_DATATYPE
Model element or operator type is unknown

See Also:
Constant Field Values

OPERATOR_TYPE_MISMATCH

static final int OPERATOR_TYPE_MISMATCH
Operator parameter type mismatch

See Also:
Constant Field Values

VOID_OPERATOR_IN_EXPRESSION

static final int VOID_OPERATOR_IN_EXPRESSION
Operator void type in expression

See Also:
Constant Field Values

OPERATOR_TYPE_UNKNOWN

static final int OPERATOR_TYPE_UNKNOWN
Operator parameter/return type is unknown

See Also:
Constant Field Values

IS_IN_EXPRESSION_TYPE_MISMATCH

static final int IS_IN_EXPRESSION_TYPE_MISMATCH
"is in" expression has a type mismatch with the list of values

See Also:
Constant Field Values

IS_IN_LIST_ENTRY_INVALID

static final int IS_IN_LIST_ENTRY_INVALID
"is in" has an invalid entry in the list

See Also:
Constant Field Values

CAST_COLLECTION

static final int CAST_COLLECTION
Cannot cast a collection

See Also:
Constant Field Values

OPERATOR_COLLECTION_PARAMETER

static final int OPERATOR_COLLECTION_PARAMETER
Cannot pass collections as parameters

See Also:
Constant Field Values

SELECTION_CONSTRAINT_NOT_BOOLEAN

static final int SELECTION_CONSTRAINT_NOT_BOOLEAN
Selection expression constraints must be boolean.

See Also:
Constant Field Values

WHERE_NOT_BOOLEAN

static final int WHERE_NOT_BOOLEAN
Where clause is not boolean

See Also:
Constant Field Values

WHERE_CLAUSE_DISALLOWED

static final int WHERE_CLAUSE_DISALLOWED
Illegal to delete a single attribute with a where clause

See Also:
Constant Field Values

ITERATION_NEEDS_COLLECTION

static final int ITERATION_NEEDS_COLLECTION
Iteration only allowed over collections

See Also:
Constant Field Values

REMOVE_NEEDS_COLLECTION

static final int REMOVE_NEEDS_COLLECTION
Removal only allowed from collections

See Also:
Constant Field Values

REMOVE_TYPES_INCOMPATIBLE

static final int REMOVE_TYPES_INCOMPATIBLE
Removing incompatible type from collection

See Also:
Constant Field Values

ASSIGNMENT_TYPE_INCOMPATIBLE

static final int ASSIGNMENT_TYPE_INCOMPATIBLE
Assignment between incompatible types (e.g. number = date)

See Also:
Constant Field Values

ADD_NEEDS_COLLECTION

static final int ADD_NEEDS_COLLECTION
Addition only allowed with collections

See Also:
Constant Field Values

ADD_TYPES_INCOMPATIBLE

static final int ADD_TYPES_INCOMPATIBLE
Addition of object to incompatible collection

See Also:
Constant Field Values

ILLEGAL_ASSIGNMENT_TARGET

static final int ILLEGAL_ASSIGNMENT_TARGET
Cannot set model elements or variables

See Also:
Constant Field Values

ACTION_FRAGMENT_PARAMETER_MISMATCH

static final int ACTION_FRAGMENT_PARAMETER_MISMATCH
Something wrong with macro invocation parameters

See Also:
Constant Field Values

RULESET_MIXES_RULETYPES

static final int RULESET_MIXES_RULETYPES
Constraint and action rules mixed in set

See Also:
Constant Field Values

REMOVE_CANNOT_REMOVE_COLLECTION

static final int REMOVE_CANNOT_REMOVE_COLLECTION
Cannot remove a collection

See Also:
Constant Field Values


Copyright © 2006-2010 Christian Nentwich and others