com.ibm.etools.cobol.application.model.cobol

Class LiteralType

  • java.lang.Object
    • org.eclipse.emf.common.util.AbstractEnumerator
      • com.ibm.etools.cobol.application.model.cobol.LiteralType
  • All Implemented Interfaces:
    java.io.Serializable, org.eclipse.emf.common.util.Enumerator


    public final class LiteralType
    extends org.eclipse.emf.common.util.AbstractEnumerator
    A representation of the types of literals.

    The figurative literal types are:

    • FALSE
    • TRUE
    • HIGH_VALUE
    • LOW_VALUE
    • NULL
    • QUOTE
    • SPACE
    • ZERO
    • CICS_DFHRESP
    • CICS_DFHVALUE

    The standard literal types are:

    • integer number
    • real number
    • string

    This includes the literals of the enumeration 'Literal Type', and utility methods for working with them.

    See Also:
    COBOLPackage.getLiteralType(), Serialized Form
    • Method Detail

      • get

        public static LiteralType get(java.lang.String literal)
        Returns the 'Literal Type' literal with the specified literal value.
      • getByName

        public static LiteralType getByName(java.lang.String name)
        Returns the 'Literal Type' literal with the specified name.
      • get

        public static LiteralType get(int value)
        Returns the 'Literal Type' literal with the specified integer value.