Class BslKeyComputer
java.lang.Object
com.e1c.langtool.v8.dt.naming.AbstractFeatureKeyComputer
com.e1c.langtool.v8.dt.bsl.naming.BslKeyComputer
- All Implemented Interfaces:
FeatureKeyMigrationnExtension,IFeatureKeyComputer
- Direct Known Subclasses:
BslProjectConverterKeyComputer,ProjectBslKeyComputer
public class BslKeyComputer
extends AbstractFeatureKeyComputer
implements FeatureKeyMigrationnExtension
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final StringThe Constant for specifying a function.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringThe Constant for specifying a Raise statement.static final Stringstatic final StringThe Constant for specifying a Return statement.static final Stringstatic final Stringstatic final StringThe Constant for replacing a non breaking spaceprotected IStringLiteralTypeComputerThe type computer.Fields inherited from class com.e1c.langtool.v8.dt.naming.AbstractFeatureKeyComputer
SUFFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FeatureKeyprotected FeatureKeyprotected FeatureKey_computeFqn(FormalParam var) protected FeatureKeyprotected FeatureKey_computeFqn(Invocation inv) protected FeatureKey_computeFqn(Label label) protected FeatureKey_computeFqn(Method method) protected FeatureKeyprotected FeatureKeyprotected FeatureKeyprotected FeatureKey_computeFqn(StringLiteral literal) protected FeatureKey_computeFqn(Variable var) protected FeatureKey_computeFqn(Method method) protected FeatureKey_computeFqn(Property property) computeFqn(org.eclipse.emf.ecore.EObject obj) protected StringgetLanguageCode(StringLiteral literal) Get default language code of the project this string literal defined in.Gets the old feature keys for the feature key ofFeatureValueif migration may be applied.protected TranslatorPropertiesgetTranslationProperties(StringLiteral literal) Gets the translation properties.booleanisSupport(ContextTranslationKey contexTranslationKey) Checks if it is support the feature value.booleanisSupported(org.eclipse.emf.ecore.EObject object) Checks if this compueter is supported the object.protected StringreplaceNonBreakingSpaces(String input) Replaces non breaking spaces.Methods inherited from class com.e1c.langtool.v8.dt.naming.AbstractFeatureKeyComputer
_computeListFqn, _computeParentFeatureFqn, computeListOrParent, getFeatureKey, 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
getFeatureKey
-
Field Details
-
FQN_REGION
- See Also:
-
FQN_NSTR
- See Also:
-
FQN_STRING
- See Also:
-
FQN_FEATURE_ACCESS
- See Also:
-
FQN_FEATURE_ACCESS_OLD
- See Also:
-
FQN_LABEL
- See Also:
-
FQN_METHOD
- See Also:
-
FQN_VAR
- See Also:
-
FQN_PARAM
- See Also:
-
NON_BREAKING_SPACE
The Constant for replacing a non breaking space- See Also:
-
FQN_FUNC
The Constant for specifying a function.- See Also:
-
FQN_RETURN
The Constant for specifying a Return statement.- See Also:
-
FQN_RAISE
The Constant for specifying a Raise statement.- See Also:
-
typeComputer
The type computer.
-
-
Constructor Details
-
BslKeyComputer
public BslKeyComputer()
-
-
Method Details
-
isSupported
public boolean isSupported(org.eclipse.emf.ecore.EObject object) Description copied from interface:IFeatureKeyComputerChecks if this compueter is supported the object.- Specified by:
isSupportedin interfaceIFeatureKeyComputer- Parameters:
object- the object- Returns:
- true, if is supported
-
computeFqn
- Specified by:
computeFqnin classAbstractFeatureKeyComputer
-
_computeFqn
-
_computeFqn
-
_computeFqn
-
_computeFqn
-
_computeFqn
-
_computeFqn
-
replaceNonBreakingSpaces
Replaces non breaking spaces.- Parameters:
input- the input, can not benull- Returns:
- the string, can be
null
-
getLanguageCode
Get default language code of the project this string literal defined in.- Parameters:
literal- String literal. Shall not benull.- Returns:
- Language code string or
nullif we are failed to determine project default language code.
-
getTranslationProperties
Gets the translation properties.- Parameters:
literal- the literal, cannot benull- Returns:
- the translation properties, can be
null
-
_computeFqn
-
_computeFqn
-
_computeFqn
-
_computeFqn
-
_computeFqn
-
_computeFqn
-
_computeFqn
-
_computeFqn
-
isSupport
Description copied from interface:FeatureKeyMigrationnExtensionChecks if it is support the feature value.- Specified by:
isSupportin interfaceFeatureKeyMigrationnExtension- Parameters:
contexTranslationKey- the context translation key, cannot benull.- Returns:
- true, if it is support this translation key to migrate it
-
getOldFeatureKeys
Description copied from interface:FeatureKeyMigrationnExtensionGets the old feature keys for the feature key ofFeatureValueif migration may be applied.- Specified by:
getOldFeatureKeysin interfaceFeatureKeyMigrationnExtension- Parameters:
key- the key, cannot benull.- Returns:
- the old feature keys
-