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

Interface LiteralTypedValue

  • All Superinterfaces:
    ASTNode, org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier


    public interface LiteralTypedValue
    extends ASTNode
    A representation of a literal value. The value itself is a string, and the value type specifies the type of literal.

    The following features are supported:

    See Also:
    COBOLPackage.getLiteralTypedValue()
    • Method Detail

      • getVal

        java.lang.String getVal()
        Returns the value of the 'Val' attribute.

        The value is the string representation of the literal. For string literals, the beginning and ending quotes are included in the value.

        Returns:
        the value of the 'Val' attribute.
        See Also:
        setVal(String), COBOLPackage.getLiteralTypedValue_Val()
      • setVal

        void setVal(java.lang.String value)
        Sets the value of the 'Val' attribute.
        Parameters:
        value - the new value of the 'Val' attribute.
        See Also:
        getVal()
      • getValType

        LiteralType getValType()
        Returns the value of the 'Val Type' attribute. The literals are from the enumeration LiteralType.

        The value is the type of literal.

        Returns:
        the value of the 'Val Type' attribute.
        See Also:
        LiteralType, setValType(LiteralType), COBOLPackage.getLiteralTypedValue_ValType()
      • isIsAll

        boolean isIsAll()
        Returns the value of the 'Is All' attribute.

        The value is true if the keyword ALL is specified before the literal; false otherwise.

        Returns:
        the value of the 'Is All' attribute.
        See Also:
        setIsAll(boolean), COBOLPackage.getLiteralTypedValue_IsAll()
      • setIsAll

        void setIsAll(boolean value)
        Sets the value of the 'Is All' attribute.
        Parameters:
        value - the new value of the 'Is All' attribute.
        See Also:
        isIsAll()