Class AbstractBslOwnerComputer

java.lang.Object
com._1c.g5.v8.dt.bsl.resource.owner.AbstractBslOwnerComputer
All Implemented Interfaces:
IBslOwnerComputer
Direct Known Subclasses:
BslOwnerComputer

public abstract class AbstractBslOwnerComputer extends Object implements IBslOwnerComputer
Part of common realization for IBslOwnerComputer
  • Field Details

    • eClassBySegment

      protected Map<String,org.eclipse.emf.ecore.EClass> eClassBySegment
    • commandEClassByEClass

      protected Map<org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EClass> commandEClassByEClass
  • Constructor Details

    • AbstractBslOwnerComputer

      public AbstractBslOwnerComputer()
  • Method Details

    • initialize

      public void initialize(String segment, String eClassName, String commandEClassName)
      Description copied from interface: IBslOwnerComputer
      Add special bound between the first part of module name, EClass of module owner and its command EClass
      Specified by:
      initialize in interface IBslOwnerComputer
      Parameters:
      segment - the first part of module name
      eClassName - corresponding owner EClass by the first module name
      commandEClassName - corresponding command EClass by the module owner EClass
    • getEClassByFirstSegmentModuleName

      public org.eclipse.emf.ecore.EClass getEClassByFirstSegmentModuleName(String segment)
      Description copied from interface: IBslOwnerComputer
      Gets corresponding EClass by the first part of module name
      Specified by:
      getEClassByFirstSegmentModuleName in interface IBslOwnerComputer
      Parameters:
      segment - the first part of module name
      Returns:
      corresponding EClass or null
    • isContainsEClass

      public boolean isContainsEClass(org.eclipse.emf.ecore.EClass eClass)
      Description copied from interface: IBslOwnerComputer
      Checks that this extension point has information about the EClass
      Specified by:
      isContainsEClass in interface IBslOwnerComputer
      Parameters:
      eClass - checking EClass
      Returns:
      true if this extension point has information about got EClass
    • getCommandByEClass

      public org.eclipse.emf.ecore.EClass getCommandByEClass(org.eclipse.emf.ecore.EClass eClass)
      Description copied from interface: IBslOwnerComputer
      Gets corresponding EClass for command by owner EClass
      Specified by:
      getCommandByEClass in interface IBslOwnerComputer
      Parameters:
      eClass - owner EClass
      Returns:
      command EClass or null
    • isCommandEClass

      public boolean isCommandEClass(org.eclipse.emf.ecore.EClass eClass)
      Description copied from interface: IBslOwnerComputer
      Checks EClass that is command EClass
      Specified by:
      isCommandEClass in interface IBslOwnerComputer
      Parameters:
      eClass - checking EClass
      Returns:
      true if it's command EClass
    • computeEnvironments

      public abstract Environments computeEnvironments(ModuleType type, org.eclipse.emf.ecore.EClass owner)
      Description copied from interface: IBslOwnerComputer
      Computes Environments by module type and module owner
      Specified by:
      computeEnvironments in interface IBslOwnerComputer
      Parameters:
      type - module type
      owner - module owner
      Returns:
      Environments of module or null
    • computeDefines

      public abstract Defines computeDefines(ModuleType type, org.eclipse.emf.ecore.EClass ownerEClass)
      Description copied from interface: IBslOwnerComputer
      Computes Defines by module type and module owner
      Specified by:
      computeDefines in interface IBslOwnerComputer
      Parameters:
      type - module type
      Returns:
      Defines of module or null