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

Interface UPSISwitchRef

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


    public interface UPSISwitchRef
    extends ASTNode
    A representation of a reference to a UPSI switch.

    The following features are supported:

    See Also:
    COBOLPackage.getUPSISwitchRef()
    • Method Detail

      • getBit

        UPSISwitchBit getBit()
        Returns the value of the 'Bit' attribute. The literals are from the enumeration UPSISwitchBit.

        If the UPSI switch is referenced using the default environment name, this method returns the representation of that name. If the UPSI switch name is declared in the SPECIAL-NAMES paragraph, this method returns the default value, which is UPSISwitchBit.UPSI_0_LITERAL.

        Returns:
        the value of the 'Bit' attribute.
        See Also:
        UPSISwitchBit, setBit(UPSISwitchBit), COBOLPackage.getUPSISwitchRef_Bit()
      • getSwitch

        UPSISwitch getSwitch()
        Returns the value of the 'Switch' reference.

        If the UPSI switch name is specified in the SPECIAL-NAMES paragraph, this method returns the UPSI switch. If the UPSI switch is referenced using the default environment name, this method returns null.

        Returns:
        the value of the 'Switch' reference.
        See Also:
        setSwitch(UPSISwitch), COBOLPackage.getUPSISwitchRef_Switch()
      • setSwitch

        void setSwitch(UPSISwitch value)
        Sets the value of the 'Switch' reference.
        Parameters:
        value - the new value of the 'Switch' reference.
        See Also:
        getSwitch()