Class AbstractBslOwnerComputer
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.resource.owner.AbstractBslOwnerComputer
-
- All Implemented Interfaces:
IBslOwnerComputer
public abstract class AbstractBslOwnerComputer extends Object implements IBslOwnerComputer
Part of common realization forIBslOwnerComputer
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<org.eclipse.emf.ecore.EClass,org.eclipse.emf.ecore.EClass>
commandEClassByEClass
protected Map<String,org.eclipse.emf.ecore.EClass>
eClassBySegment
-
Constructor Summary
Constructors Constructor Description AbstractBslOwnerComputer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Defines
computeDefines(ModuleType type, org.eclipse.emf.ecore.EClass ownerEClass)
ComputesDefines
by module type and module ownerabstract Environments
computeEnvironments(ModuleType type, org.eclipse.emf.ecore.EClass owner)
ComputesEnvironments
by module type and module ownerorg.eclipse.emf.ecore.EClass
getCommandByEClass(org.eclipse.emf.ecore.EClass eClass)
Gets correspondingEClass
for command by owner EClassorg.eclipse.emf.ecore.EClass
getEClassByFirstSegmentModuleName(String segment)
Gets correspondingEClass
by the first part of module namevoid
initialize(String segment, String eClassName, String commandEClassName)
Add special bound between the first part of module name, EClass of module owner and its command EClassboolean
isCommandEClass(org.eclipse.emf.ecore.EClass eClass)
Checks EClass that is commandEClass
boolean
isContainsEClass(org.eclipse.emf.ecore.EClass eClass)
Checks that this extension point has information about theEClass
-
-
-
Method Detail
-
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 interfaceIBslOwnerComputer
- Parameters:
segment
- the first part of module nameeClassName
- corresponding ownerEClass
by the first module namecommandEClassName
- corresponding commandEClass
by the module owner EClass
-
getEClassByFirstSegmentModuleName
public org.eclipse.emf.ecore.EClass getEClassByFirstSegmentModuleName(String segment)
Description copied from interface:IBslOwnerComputer
Gets correspondingEClass
by the first part of module name- Specified by:
getEClassByFirstSegmentModuleName
in interfaceIBslOwnerComputer
- Parameters:
segment
- the first part of module name- Returns:
- corresponding
EClass
ornull
-
isContainsEClass
public boolean isContainsEClass(org.eclipse.emf.ecore.EClass eClass)
Description copied from interface:IBslOwnerComputer
Checks that this extension point has information about theEClass
- Specified by:
isContainsEClass
in interfaceIBslOwnerComputer
- Parameters:
eClass
- checkingEClass
- Returns:
true
if this extension point has information about gotEClass
-
getCommandByEClass
public org.eclipse.emf.ecore.EClass getCommandByEClass(org.eclipse.emf.ecore.EClass eClass)
Description copied from interface:IBslOwnerComputer
Gets correspondingEClass
for command by owner EClass- Specified by:
getCommandByEClass
in interfaceIBslOwnerComputer
- Parameters:
eClass
- ownerEClass
- Returns:
- command
EClass
ornull
-
isCommandEClass
public boolean isCommandEClass(org.eclipse.emf.ecore.EClass eClass)
Description copied from interface:IBslOwnerComputer
Checks EClass that is commandEClass
- Specified by:
isCommandEClass
in interfaceIBslOwnerComputer
- Parameters:
eClass
- checkingEClass
- 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
ComputesEnvironments
by module type and module owner- Specified by:
computeEnvironments
in interfaceIBslOwnerComputer
- Parameters:
type
- module typeowner
- module owner- Returns:
Environments
of module ornull
-
computeDefines
public abstract Defines computeDefines(ModuleType type, org.eclipse.emf.ecore.EClass ownerEClass)
Description copied from interface:IBslOwnerComputer
ComputesDefines
by module type and module owner- Specified by:
computeDefines
in interfaceIBslOwnerComputer
- Parameters:
type
- module type- Returns:
Defines
of module ornull
-
-