Class BslProjectConverterKeyComputer
java.lang.Object
com.e1c.langtool.v8.dt.naming.AbstractFeatureKeyComputer
com.e1c.langtool.v8.dt.bsl.naming.BslKeyComputer
com.e1c.langtool.v8.dt.bsl.naming.BslProjectConverterKeyComputer
- All Implemented Interfaces:
FeatureKeyMigrationnExtension,IFeatureKeyComputer,IFeatureKeyConverterExtension
public class BslProjectConverterKeyComputer
extends BslKeyComputer
implements IFeatureKeyConverterExtension
The
BslProjectConverterKeyComputer class extends the functionality of BslKeyComputer and implements
the IFeatureKeyConverterExtension interface. It provides methods for computing feature keys for BSL projects,
including conversion of feature keys and handling translation of project names.
This class uses an AtomicReference for storing the translation provider and a ReadWriteLock to ensure
thread-safe access to it.
This class also provides methods for computing feature keys for various BSL elements such as string literals, methods, and variables.
-
Field Summary
Fields inherited from class com.e1c.langtool.v8.dt.bsl.naming.BslKeyComputer
FQN_FEATURE_ACCESS, FQN_FEATURE_ACCESS_OLD, FQN_FUNC, FQN_LABEL, FQN_METHOD, FQN_NSTR, FQN_PARAM, FQN_RAISE, FQN_REGION, FQN_RETURN, FQN_STRING, FQN_VAR, NON_BREAKING_SPACE, typeComputerFields inherited from class com.e1c.langtool.v8.dt.naming.AbstractFeatureKeyComputer
SUFFIX -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new bsl project converter key computer. -
Method Summary
Modifier and TypeMethodDescriptionprotected FeatureKey_computeFqn(Method method) protected FeatureKey_computeFqn(StringLiteral literal) protected FeatureKey_computeFqn(Variable var) getConvertedFeatureKey(org.eclipse.emf.ecore.EObject obj, String translation, ITranslateProject project) Computes the converted feature key for the givenEObject, translation, and translation project.getFeatureKey(org.eclipse.emf.ecore.EObject obj) Gets the feature key by given object.Methods inherited from class com.e1c.langtool.v8.dt.bsl.naming.BslKeyComputer
_computeFqn, _computeFqn, _computeFqn, _computeFqn, _computeFqn, _computeFqn, _computeFqn, _computeFqn, _computeFqn, _computeFqn, _computeFqn, computeFqn, getLanguageCode, getOldFeatureKeys, getTranslationProperties, isSupport, isSupported, replaceNonBreakingSpacesMethods inherited from class com.e1c.langtool.v8.dt.naming.AbstractFeatureKeyComputer
_computeListFqn, _computeParentFeatureFqn, computeListOrParent, toFeatureKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.e1c.langtool.emf.naming.IFeatureKeyComputer
isSupported
-
Constructor Details
-
BslProjectConverterKeyComputer
public BslProjectConverterKeyComputer()Instantiates a new bsl project converter key computer.
-
-
Method Details
-
getConvertedFeatureKey
public FeatureKey getConvertedFeatureKey(org.eclipse.emf.ecore.EObject obj, String translation, ITranslateProject project) Description copied from interface:IFeatureKeyConverterExtensionComputes the converted feature key for the givenEObject, translation, and translation project.- Specified by:
getConvertedFeatureKeyin interfaceIFeatureKeyConverterExtension- Parameters:
obj- the EObject for which to compute the feature key, cannot benull.translation- the translation string, cannot benull.project- the translation projectnull.- Returns:
- the computed converted feature key
null.
-
getFeatureKey
Description copied from interface:IFeatureKeyComputerGets the feature key by given object.- Specified by:
getFeatureKeyin interfaceIFeatureKeyComputer- Overrides:
getFeatureKeyin classAbstractFeatureKeyComputer- Parameters:
obj- the object- Returns:
- the feature key
-
_computeFqn
- Overrides:
_computeFqnin classBslKeyComputer
-
_computeFqn
- Overrides:
_computeFqnin classBslKeyComputer
-
_computeFqn
- Overrides:
_computeFqnin classBslKeyComputer
-