Ejemplo n.º 1
0
        /// <exception cref="BadSyntaxException">
        /// The name does not fit to the syntax.
        /// </exception>
        /// <exception cref="ReservedNameException">
        /// The name is a reserved name.
        /// </exception>
        public override EnumValue AddValue(string declaration)
        {
            EnumValue value = new JavaEnumValue(declaration);

            AddValue(value);
            return(value);
        }
Ejemplo n.º 2
0
        /// <exception cref="BadSyntaxException">
        /// The name does not fit to the syntax.
        /// </exception>
        /// <exception cref="ReservedNameException">
        /// The name is a reserved name.
        /// </exception>
        public override EnumValue ModifyValue(EnumValue value, string declaration)
        {
            EnumValue newValue = new JavaEnumValue(declaration);

            ChangeValue(value, newValue);
            return(value);
        }
Ejemplo n.º 3
0
		/// <exception cref="BadSyntaxException">
		/// The name does not fit to the syntax.
		/// </exception>
		/// <exception cref="ReservedNameException">
		/// The name is a reserved name.
		/// </exception>
		public override EnumValue AddValue(string declaration)
		{
			EnumValue value = new JavaEnumValue(declaration);

			AddValue(value);
			return value;
		}
Ejemplo n.º 4
0
		/// <exception cref="BadSyntaxException">
		/// The name does not fit to the syntax.
		/// </exception>
		/// <exception cref="ReservedNameException">
		/// The name is a reserved name.
		/// </exception>
		public override EnumValue ModifyValue(EnumValue value, string declaration)
		{
			EnumValue newValue = new JavaEnumValue(declaration);

			if (ChangeValue(value, newValue))
				return newValue;
			else
				return value;
		}