Class FormAttributeTypeComputer
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.AbstractInvocationTypeComputer
-
- com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.FormAttributeTypeComputer
-
- All Implemented Interfaces:
ContextTypeComputer
,TypeComputer
public class FormAttributeTypeComputer extends AbstractInvocationTypeComputer
The computer of form attribute name in the literal in form module.
-
-
Constructor Summary
Constructors Constructor Description FormAttributeTypeComputer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<org.eclipse.xtext.util.Pair<String,Integer>>
getDynamicInvocationParams(DynamicFeatureAccess featureAccess)
Gets the dynamic invocation parameters.protected Set<org.eclipse.xtext.util.Pair<String,Integer>>
getStaticInvocationParams(StaticFeatureAccess featureAccess)
Gets the static invocation parameters.String
getSupportedType()
Returns the supported type ID of this computer.boolean
isSupport(StringLiteral literal, List<String> content)
Quick checks if type computer is support the literal.protected boolean
isValidModule(Supplier<Module> module, FeatureAccess fa)
Checks if the module is valid for this string literal content type computing in some invocation context.-
Methods inherited from class com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.AbstractInvocationTypeComputer
computeIsValidForSupportedType, getDynamicInvocationSourceTypes, isValidSourceType, order
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.TypeComputer
computeWithAnnotations
-
-
-
-
Method Detail
-
isSupport
public boolean isSupport(StringLiteral literal, List<String> content)
Description copied from interface:TypeComputer
Quick checks if type computer is support the literal. This method explicitly calls before#computeIsValidForSupportedType(StringLiteral, List)
- Parameters:
literal
- the literalcontent
- the content- Returns:
- true, if the literal is support by computer
-
getSupportedType
public String getSupportedType()
Description copied from interface:TypeComputer
Returns the supported type ID of this computer.- Returns:
- the supported type ID, registered in extension point.
-
getStaticInvocationParams
protected Set<org.eclipse.xtext.util.Pair<String,Integer>> getStaticInvocationParams(StaticFeatureAccess featureAccess)
Description copied from class:AbstractInvocationTypeComputer
Gets the static invocation parameters. Should return both English and Russian variants of method name. Clients should override this method to implement type computer on static invocation context.- Overrides:
getStaticInvocationParams
in classAbstractInvocationTypeComputer
- Parameters:
featureAccess
- the static feature access, if need dependably compute the collection of methods.- Returns:
- the static invocation parameters, collection of global context method name and position of string literal in the invocation parameters.
-
getDynamicInvocationParams
protected Set<org.eclipse.xtext.util.Pair<String,Integer>> getDynamicInvocationParams(DynamicFeatureAccess featureAccess)
Description copied from class:AbstractInvocationTypeComputer
Gets the dynamic invocation parameters. Should return both English and Russian variants of method name. Clients should override this method to implement type computer on dynamic invocation context.- Overrides:
getDynamicInvocationParams
in classAbstractInvocationTypeComputer
- Parameters:
featureAccess
- the dynamic feature access, if need dependably compute the collection of methods.- Returns:
- the dynamic invocation parameters, collection of type context method name and position of string literal in the invocation parameters.
-
isValidModule
protected boolean isValidModule(Supplier<Module> module, FeatureAccess fa)
Description copied from class:AbstractInvocationTypeComputer
Checks if the module is valid for this string literal content type computing in some invocation context. This method allows to check module type,FeatureAccess
Environments
or any other heavy computing condition if the method of invocation and string literal parameter position matches the requirement.- Overrides:
isValidModule
in classAbstractInvocationTypeComputer
- Parameters:
module
- the supplier of module to checkfa
- the feature access to check- Returns:
- true, if the module is valid to compute.
-
-