Class XdtoFactoryPackageCollectionPackageTypeComputer
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.AbstractInvocationTypeComputer
-
- com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.XdtoFactoryPackageCollectionPackageTypeComputer
-
- All Implemented Interfaces:
ContextTypeComputer
,TypeComputer
public class XdtoFactoryPackageCollectionPackageTypeComputer extends AbstractInvocationTypeComputer
The computer of XDTO package name that pass to the collection of packages Get method.
-
-
Field Summary
Fields Modifier and Type Field Description static Set<org.eclipse.xtext.util.Pair<String,Integer>>
DYNAMIC_INVOCATION
static Set<String>
DYNAMIC_INVOCATION_SOURCE_TYPES
-
Constructor Summary
Constructors Constructor Description XdtoFactoryPackageCollectionPackageTypeComputer()
-
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 Collection<String>
getDynamicInvocationSourceTypes(DynamicFeatureAccess fa)
Gets the type names of the source of the dynamic invocation method.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.int
order()
Order of call to compute string literal type.-
Methods inherited from class com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.AbstractInvocationTypeComputer
computeIsValidForSupportedType, getStaticInvocationParams, isValidModule, isValidSourceType
-
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
-
order
public int order()
Description copied from interface:TypeComputer
Order of call to compute string literal type.- Specified by:
order
in interfaceTypeComputer
- Overrides:
order
in classAbstractInvocationTypeComputer
- Returns:
- the order of call
-
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.
-
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.
-
getDynamicInvocationSourceTypes
protected Collection<String> getDynamicInvocationSourceTypes(DynamicFeatureAccess fa)
Description copied from class:AbstractInvocationTypeComputer
Gets the type names of the source of the dynamic invocation method. Clients should override this method to implement type computer on dynamic invocation context.- Overrides:
getDynamicInvocationSourceTypes
in classAbstractInvocationTypeComputer
- Parameters:
fa
- the dynamic feature access to get collection of its source types, if dependable onDynamicFeatureAccess
- Returns:
- the type names of source of dynamic invocation.
-
-