Class ComposeFileSemanticSequencer

  • All Implemented Interfaces:
    org.eclipse.xtext.serializer.sequencer.ISemanticSequencer

    public class ComposeFileSemanticSequencer
    extends org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer
    • Field Summary

      • Fields inherited from class org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer

        genericSequencer, genericSequencerProvider
      • Fields inherited from class org.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer

        diagnosticProvider, errorAcceptor, feederProvider, masterSequencer, nodeProvider, sequenceAcceptor, transientValues
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void sequence​(org.eclipse.xtext.serializer.ISerializationContext context, EObject semanticObject)  
      protected void sequence_Build​(org.eclipse.xtext.serializer.ISerializationContext context, Build semanticObject)
      Contexts: Build returns Build Constraint: build=Value
      protected void sequence_BuildLongSyntax​(org.eclipse.xtext.serializer.ISerializationContext context, BuildLongSyntax semanticObject)
      Contexts: Build returns BuildLongSyntax BuildLongSyntax returns BuildLongSyntax Constraint: ( context=Value | dockerfile=Value | args=ListOrMapping | labels=ListOrMapping | cache_from=ListOrMapping | network=Value | target=Value | shm_size=Value )+
      protected void sequence_Config​(org.eclipse.xtext.serializer.ISerializationContext context, Config semanticObject)
      Contexts: DeployConfigs returns Config Config returns Config Constraint: ( parallelism=Value | delay=Value | failure_action=Value | monitor=Value | max_failure_ratio=Value | order=Value )+
      protected void sequence_Configs​(org.eclipse.xtext.serializer.ISerializationContext context, Configs semanticObject)
      Contexts: Configs returns Configs Constraint: (name=ID (file=Value | external=Value | customName=Value)+)
      protected void sequence_CredentialSpec​(org.eclipse.xtext.serializer.ISerializationContext context, CredentialSpec semanticObject)
      Contexts: CredentialSpec returns CredentialSpec Constraint: (file=Value | registry=Value)
      protected void sequence_Deploy​(org.eclipse.xtext.serializer.ISerializationContext context, Deploy semanticObject)
      Contexts: Deploy returns Deploy Constraint: ( endpoint_mode=Value | labels=Mapping | mode=Value | placement=Placement | replicas=Value | resources=Value | restart_policy=RestartPolicy | rollback_config=DeployConfigs | update_config=DeployConfigs )+
      protected void sequence_DeployConfigs​(org.eclipse.xtext.serializer.ISerializationContext context, Configs semanticObject)
      Contexts: DeployConfigs returns Configs Constraint: list=ListOrMapping
      protected void sequence_DeployConfigsLongSyntax​(org.eclipse.xtext.serializer.ISerializationContext context, DeployConfigsLongSyntax semanticObject)
      Contexts: DeployConfigs returns DeployConfigsLongSyntax DeployConfigsLongSyntax returns DeployConfigsLongSyntax Constraint: (source=Value target=Value uid=Value gid=Value mode=Value)
      protected void sequence_DockerCompose​(org.eclipse.xtext.serializer.ISerializationContext context, DockerCompose semanticObject)
      Contexts: DockerCompose returns DockerCompose Constraint: ( version=STRING services+=Service* volumes+=Volumes* networks+=Networks* configs+=Configs* secrets+=Secrets* )
      protected void sequence_Healthcheck​(org.eclipse.xtext.serializer.ISerializationContext context, Healthcheck semanticObject)
      Contexts: Healthcheck returns Healthcheck Constraint: ( disable=Value | interval=Value | retries=Value | test=ValueOrList | timeout=Value | start_period=Value )+
      protected void sequence_Ipam​(org.eclipse.xtext.serializer.ISerializationContext context, Ipam semanticObject)
      Contexts: Ipam returns Ipam Constraint: (driver=Value config=ListOrMapping)
      protected void sequence_List​(org.eclipse.xtext.serializer.ISerializationContext context, List semanticObject)
      Contexts: ListOrMapping returns List List returns List Constraint: list+=Value+
      protected void sequence_List_ValueOrList​(org.eclipse.xtext.serializer.ISerializationContext context, List semanticObject)
      Contexts: ValueOrList returns List Constraint: (list+=Value | list+=Value+)
      protected void sequence_Logging​(org.eclipse.xtext.serializer.ISerializationContext context, Logging semanticObject)
      Contexts: Logging returns Logging Constraint: (driver=Value options=Mapping)+
      protected void sequence_Mapping​(org.eclipse.xtext.serializer.ISerializationContext context, Mapping semanticObject)
      Contexts: ListOrMapping returns Mapping Mapping returns Mapping Constraint: (map+=MappingWithPrefixAndColon+ | map+=MappingWithoutPrefixAndColon+ | map+=MappingWithPrefixAndEqual+ | map+=MappingWithoutPrefixAndEqual+)
      protected void sequence_MappingWithoutPrefixAndColon​(org.eclipse.xtext.serializer.ISerializationContext context, MappingWithoutPrefixAndColon semanticObject)
      Contexts: MappingWithoutPrefixAndColon returns MappingWithoutPrefixAndColon Constraint: (name=Value value=Value?)
      protected void sequence_MappingWithoutPrefixAndEqual​(org.eclipse.xtext.serializer.ISerializationContext context, MappingWithoutPrefixAndEqual semanticObject)
      Contexts: MappingWithoutPrefixAndEqual returns MappingWithoutPrefixAndEqual Constraint: (name=Value value=Value?)
      protected void sequence_MappingWithPrefixAndColon​(org.eclipse.xtext.serializer.ISerializationContext context, MappingWithPrefixAndColon semanticObject)
      Contexts: MappingWithPrefixAndColon returns MappingWithPrefixAndColon Constraint: (name=Value value=Value?)
      protected void sequence_MappingWithPrefixAndEqual​(org.eclipse.xtext.serializer.ISerializationContext context, MappingWithPrefixAndEqual semanticObject)
      Contexts: MappingWithPrefixAndEqual returns MappingWithPrefixAndEqual Constraint: (name=Value value=Value?)
      protected void sequence_Networks​(org.eclipse.xtext.serializer.ISerializationContext context, Networks semanticObject)
      Contexts: Networks returns Networks Constraint: ( name=ID ( driver=Value | driver_opts=Mapping | attachable=Value | enable_ipv6=Value | ipam=Ipam | internal=Value | labels=ListOrMapping | external=Value | customName=Value )* )
      protected void sequence_Placement​(org.eclipse.xtext.serializer.ISerializationContext context, Placement semanticObject)
      Contexts: Placement returns Placement Constraint: (constraints=ValueOrList | preferences=ListOrMapping)+
      protected void sequence_PortLongSyntax​(org.eclipse.xtext.serializer.ISerializationContext context, PortLongSyntax semanticObject)
      Contexts: Ports returns PortLongSyntax PortLongSyntax returns PortLongSyntax Constraint: (target=Value published=Value protocol=Value mode=Value)
      protected void sequence_Ports​(org.eclipse.xtext.serializer.ISerializationContext context, Ports semanticObject)
      Contexts: Ports returns Ports Constraint: ports=List
      protected void sequence_RestartPolicy​(org.eclipse.xtext.serializer.ISerializationContext context, RestartPolicy semanticObject)
      Contexts: RestartPolicy returns RestartPolicy Constraint: (condition=Value | delay=Value | max_attempts=Value | window=Value)+
      protected void sequence_Secrets​(org.eclipse.xtext.serializer.ISerializationContext context, Secrets semanticObject)
      Contexts: Secrets returns Secrets Constraint: (name=ID (file=Value | external=Value | customName=Value)+)
      protected void sequence_Service​(org.eclipse.xtext.serializer.ISerializationContext context, Service semanticObject)
      Contexts: Service returns Service Constraint: ( name=ID ( build=Build | cap_add=List | cap_drop=List | cgroup_parent=Value | command=Value | command=Value | container_name=Value | credential_spec=CredentialSpec | depends_on=List | deploy=Deploy | devices=List | dns=List | dns=List | domainname=Value | entrypoint=ValueOrList | env_file=ValueOrList | environment=Mapping | expose=List | external_links=List | external_links=ListOrMapping | healthcheck=Healthcheck | hostname=Value | image=Value | init=Value | ipc=Value | isolation=Value | labels=ListOrMapping | links=ListOrMapping | logging=Logging | mac_address=Value | network_mode=Value | networks=List | pid=Value | ports=Ports | privileged=Value | read_only=Value | restart=Value | secrets=ServiceSecrets | security_opt=List | shm_size=Value | stdin_open=Value | stop_grace_period=Value | stop_signal=Value | sysctls=ListOrMapping | sysctls=ValueOrList | tty=Value | ulimits=Ulimits | user=Value | userns_mode=Value | volumes=ServiceVolumes | working_dir=Value )+ )
      protected void sequence_ServiceSecrets​(org.eclipse.xtext.serializer.ISerializationContext context, ServiceSecrets semanticObject)
      Contexts: ServiceSecrets returns ServiceSecrets Constraint: secret=Value
      protected void sequence_ServiceSecretsLongSyntax​(org.eclipse.xtext.serializer.ISerializationContext context, ServiceSecretsLongSyntax semanticObject)
      Contexts: ServiceSecrets returns ServiceSecretsLongSyntax ServiceSecretsLongSyntax returns ServiceSecretsLongSyntax Constraint: (source=Value target=Value uid=Value gid=Value mode=Value)
      protected void sequence_ServiceVolumeLongSyntax​(org.eclipse.xtext.serializer.ISerializationContext context, ServiceVolumeLongSyntax semanticObject)
      Contexts: ServiceVolumes returns ServiceVolumeLongSyntax ServiceVolumeLongSyntax returns ServiceVolumeLongSyntax Constraint: ( type=Value source=Value target=Value read_only=Value consistency=Value bindPropagation=Value volumeNocopy=Value tmpfsSize=Value )
      protected void sequence_ServiceVolumes​(org.eclipse.xtext.serializer.ISerializationContext context, ServiceVolumes semanticObject)
      Contexts: ServiceVolumes returns ServiceVolumes Constraint: volumes=Value
      protected void sequence_Ulimits​(org.eclipse.xtext.serializer.ISerializationContext context, Ulimits semanticObject)
      Contexts: Ulimits returns Ulimits Constraint: ((name=ID value=Value) | (name=ID soft=Value hard=Value))
      protected void sequence_Volumes​(org.eclipse.xtext.serializer.ISerializationContext context, Volumes semanticObject)
      Contexts: Volumes returns Volumes Constraint: (name=ID (driver=Value | driver_opts=Mapping | external=Value | labels=ListOrMapping | customName=Value)*)
      • Methods inherited from class org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer

        init
      • Methods inherited from class org.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer

        createContext, createNodeProvider, createSequence, createSequence, createSequencerFeeder, createSequencerFeeder, createSequencerFeeder, createSequencerFeeder, init, setMasterSequencer
    • Constructor Detail

      • ComposeFileSemanticSequencer

        public ComposeFileSemanticSequencer()
    • Method Detail

      • sequence

        public void sequence​(org.eclipse.xtext.serializer.ISerializationContext context,
                             EObject semanticObject)
        Overrides:
        sequence in class org.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer
      • sequence_BuildLongSyntax

        protected void sequence_BuildLongSyntax​(org.eclipse.xtext.serializer.ISerializationContext context,
                                                BuildLongSyntax semanticObject)
        Contexts: Build returns BuildLongSyntax BuildLongSyntax returns BuildLongSyntax Constraint: ( context=Value | dockerfile=Value | args=ListOrMapping | labels=ListOrMapping | cache_from=ListOrMapping | network=Value | target=Value | shm_size=Value )+
      • sequence_Build

        protected void sequence_Build​(org.eclipse.xtext.serializer.ISerializationContext context,
                                      Build semanticObject)
        Contexts: Build returns Build Constraint: build=Value
      • sequence_Config

        protected void sequence_Config​(org.eclipse.xtext.serializer.ISerializationContext context,
                                       Config semanticObject)
        Contexts: DeployConfigs returns Config Config returns Config Constraint: ( parallelism=Value | delay=Value | failure_action=Value | monitor=Value | max_failure_ratio=Value | order=Value )+
      • sequence_Configs

        protected void sequence_Configs​(org.eclipse.xtext.serializer.ISerializationContext context,
                                        Configs semanticObject)
        Contexts: Configs returns Configs Constraint: (name=ID (file=Value | external=Value | customName=Value)+)
      • sequence_CredentialSpec

        protected void sequence_CredentialSpec​(org.eclipse.xtext.serializer.ISerializationContext context,
                                               CredentialSpec semanticObject)
        Contexts: CredentialSpec returns CredentialSpec Constraint: (file=Value | registry=Value)
      • sequence_DeployConfigsLongSyntax

        protected void sequence_DeployConfigsLongSyntax​(org.eclipse.xtext.serializer.ISerializationContext context,
                                                        DeployConfigsLongSyntax semanticObject)
        Contexts: DeployConfigs returns DeployConfigsLongSyntax DeployConfigsLongSyntax returns DeployConfigsLongSyntax Constraint: (source=Value target=Value uid=Value gid=Value mode=Value)
      • sequence_DeployConfigs

        protected void sequence_DeployConfigs​(org.eclipse.xtext.serializer.ISerializationContext context,
                                              Configs semanticObject)
        Contexts: DeployConfigs returns Configs Constraint: list=ListOrMapping
      • sequence_Deploy

        protected void sequence_Deploy​(org.eclipse.xtext.serializer.ISerializationContext context,
                                       Deploy semanticObject)
        Contexts: Deploy returns Deploy Constraint: ( endpoint_mode=Value | labels=Mapping | mode=Value | placement=Placement | replicas=Value | resources=Value | restart_policy=RestartPolicy | rollback_config=DeployConfigs | update_config=DeployConfigs )+
      • sequence_DockerCompose

        protected void sequence_DockerCompose​(org.eclipse.xtext.serializer.ISerializationContext context,
                                              DockerCompose semanticObject)
        Contexts: DockerCompose returns DockerCompose Constraint: ( version=STRING services+=Service* volumes+=Volumes* networks+=Networks* configs+=Configs* secrets+=Secrets* )
      • sequence_Healthcheck

        protected void sequence_Healthcheck​(org.eclipse.xtext.serializer.ISerializationContext context,
                                            Healthcheck semanticObject)
        Contexts: Healthcheck returns Healthcheck Constraint: ( disable=Value | interval=Value | retries=Value | test=ValueOrList | timeout=Value | start_period=Value )+
      • sequence_Ipam

        protected void sequence_Ipam​(org.eclipse.xtext.serializer.ISerializationContext context,
                                     Ipam semanticObject)
        Contexts: Ipam returns Ipam Constraint: (driver=Value config=ListOrMapping)
      • sequence_List

        protected void sequence_List​(org.eclipse.xtext.serializer.ISerializationContext context,
                                     List semanticObject)
        Contexts: ListOrMapping returns List List returns List Constraint: list+=Value+
      • sequence_List_ValueOrList

        protected void sequence_List_ValueOrList​(org.eclipse.xtext.serializer.ISerializationContext context,
                                                 List semanticObject)
        Contexts: ValueOrList returns List Constraint: (list+=Value | list+=Value+)
      • sequence_Logging

        protected void sequence_Logging​(org.eclipse.xtext.serializer.ISerializationContext context,
                                        Logging semanticObject)
        Contexts: Logging returns Logging Constraint: (driver=Value options=Mapping)+
      • sequence_MappingWithPrefixAndColon

        protected void sequence_MappingWithPrefixAndColon​(org.eclipse.xtext.serializer.ISerializationContext context,
                                                          MappingWithPrefixAndColon semanticObject)
        Contexts: MappingWithPrefixAndColon returns MappingWithPrefixAndColon Constraint: (name=Value value=Value?)
      • sequence_MappingWithPrefixAndEqual

        protected void sequence_MappingWithPrefixAndEqual​(org.eclipse.xtext.serializer.ISerializationContext context,
                                                          MappingWithPrefixAndEqual semanticObject)
        Contexts: MappingWithPrefixAndEqual returns MappingWithPrefixAndEqual Constraint: (name=Value value=Value?)
      • sequence_MappingWithoutPrefixAndColon

        protected void sequence_MappingWithoutPrefixAndColon​(org.eclipse.xtext.serializer.ISerializationContext context,
                                                             MappingWithoutPrefixAndColon semanticObject)
        Contexts: MappingWithoutPrefixAndColon returns MappingWithoutPrefixAndColon Constraint: (name=Value value=Value?)
      • sequence_MappingWithoutPrefixAndEqual

        protected void sequence_MappingWithoutPrefixAndEqual​(org.eclipse.xtext.serializer.ISerializationContext context,
                                                             MappingWithoutPrefixAndEqual semanticObject)
        Contexts: MappingWithoutPrefixAndEqual returns MappingWithoutPrefixAndEqual Constraint: (name=Value value=Value?)
      • sequence_Mapping

        protected void sequence_Mapping​(org.eclipse.xtext.serializer.ISerializationContext context,
                                        Mapping semanticObject)
        Contexts: ListOrMapping returns Mapping Mapping returns Mapping Constraint: (map+=MappingWithPrefixAndColon+ | map+=MappingWithoutPrefixAndColon+ | map+=MappingWithPrefixAndEqual+ | map+=MappingWithoutPrefixAndEqual+)
      • sequence_Networks

        protected void sequence_Networks​(org.eclipse.xtext.serializer.ISerializationContext context,
                                         Networks semanticObject)
        Contexts: Networks returns Networks Constraint: ( name=ID ( driver=Value | driver_opts=Mapping | attachable=Value | enable_ipv6=Value | ipam=Ipam | internal=Value | labels=ListOrMapping | external=Value | customName=Value )* )
      • sequence_Placement

        protected void sequence_Placement​(org.eclipse.xtext.serializer.ISerializationContext context,
                                          Placement semanticObject)
        Contexts: Placement returns Placement Constraint: (constraints=ValueOrList | preferences=ListOrMapping)+
      • sequence_PortLongSyntax

        protected void sequence_PortLongSyntax​(org.eclipse.xtext.serializer.ISerializationContext context,
                                               PortLongSyntax semanticObject)
        Contexts: Ports returns PortLongSyntax PortLongSyntax returns PortLongSyntax Constraint: (target=Value published=Value protocol=Value mode=Value)
      • sequence_Ports

        protected void sequence_Ports​(org.eclipse.xtext.serializer.ISerializationContext context,
                                      Ports semanticObject)
        Contexts: Ports returns Ports Constraint: ports=List
      • sequence_RestartPolicy

        protected void sequence_RestartPolicy​(org.eclipse.xtext.serializer.ISerializationContext context,
                                              RestartPolicy semanticObject)
        Contexts: RestartPolicy returns RestartPolicy Constraint: (condition=Value | delay=Value | max_attempts=Value | window=Value)+
      • sequence_Secrets

        protected void sequence_Secrets​(org.eclipse.xtext.serializer.ISerializationContext context,
                                        Secrets semanticObject)
        Contexts: Secrets returns Secrets Constraint: (name=ID (file=Value | external=Value | customName=Value)+)
      • sequence_ServiceSecretsLongSyntax

        protected void sequence_ServiceSecretsLongSyntax​(org.eclipse.xtext.serializer.ISerializationContext context,
                                                         ServiceSecretsLongSyntax semanticObject)
        Contexts: ServiceSecrets returns ServiceSecretsLongSyntax ServiceSecretsLongSyntax returns ServiceSecretsLongSyntax Constraint: (source=Value target=Value uid=Value gid=Value mode=Value)
      • sequence_ServiceSecrets

        protected void sequence_ServiceSecrets​(org.eclipse.xtext.serializer.ISerializationContext context,
                                               ServiceSecrets semanticObject)
        Contexts: ServiceSecrets returns ServiceSecrets Constraint: secret=Value
      • sequence_ServiceVolumeLongSyntax

        protected void sequence_ServiceVolumeLongSyntax​(org.eclipse.xtext.serializer.ISerializationContext context,
                                                        ServiceVolumeLongSyntax semanticObject)
        Contexts: ServiceVolumes returns ServiceVolumeLongSyntax ServiceVolumeLongSyntax returns ServiceVolumeLongSyntax Constraint: ( type=Value source=Value target=Value read_only=Value consistency=Value bindPropagation=Value volumeNocopy=Value tmpfsSize=Value )
      • sequence_ServiceVolumes

        protected void sequence_ServiceVolumes​(org.eclipse.xtext.serializer.ISerializationContext context,
                                               ServiceVolumes semanticObject)
        Contexts: ServiceVolumes returns ServiceVolumes Constraint: volumes=Value
      • sequence_Service

        protected void sequence_Service​(org.eclipse.xtext.serializer.ISerializationContext context,
                                        Service semanticObject)
        Contexts: Service returns Service Constraint: ( name=ID ( build=Build | cap_add=List | cap_drop=List | cgroup_parent=Value | command=Value | command=Value | container_name=Value | credential_spec=CredentialSpec | depends_on=List | deploy=Deploy | devices=List | dns=List | dns=List | domainname=Value | entrypoint=ValueOrList | env_file=ValueOrList | environment=Mapping | expose=List | external_links=List | external_links=ListOrMapping | healthcheck=Healthcheck | hostname=Value | image=Value | init=Value | ipc=Value | isolation=Value | labels=ListOrMapping | links=ListOrMapping | logging=Logging | mac_address=Value | network_mode=Value | networks=List | pid=Value | ports=Ports | privileged=Value | read_only=Value | restart=Value | secrets=ServiceSecrets | security_opt=List | shm_size=Value | stdin_open=Value | stop_grace_period=Value | stop_signal=Value | sysctls=ListOrMapping | sysctls=ValueOrList | tty=Value | ulimits=Ulimits | user=Value | userns_mode=Value | volumes=ServiceVolumes | working_dir=Value )+ )
      • sequence_Ulimits

        protected void sequence_Ulimits​(org.eclipse.xtext.serializer.ISerializationContext context,
                                        Ulimits semanticObject)
        Contexts: Ulimits returns Ulimits Constraint: ((name=ID value=Value) | (name=ID soft=Value hard=Value))
      • sequence_Volumes

        protected void sequence_Volumes​(org.eclipse.xtext.serializer.ISerializationContext context,
                                        Volumes semanticObject)
        Contexts: Volumes returns Volumes Constraint: (name=ID (driver=Value | driver_opts=Mapping | external=Value | labels=ListOrMapping | customName=Value)*)