Class SortColumnsTypeComputer
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.AbstractInvocationTypeComputer
-
- com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.SortColumnsTypeComputer
-
- All Implemented Interfaces:
ContextTypeComputer
,TypeComputer
,TypeValidator
public class SortColumnsTypeComputer extends AbstractInvocationTypeComputer implements TypeValidator
The computer and validator of list of fields with sort direction.
-
-
Field Summary
Fields Modifier and Type Field Description static Set<org.eclipse.xtext.util.Pair<String,Integer>>
DYNAMIC_INVOCATION
-
Constructor Summary
Constructors Constructor Description SortColumnsTypeComputer()
-
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.String
getSupportedType()
Returns the supported type ID of the string literal content validator.org.eclipse.core.runtime.IStatus
validate(StringLiteral literal, List<String> content, org.eclipse.xtext.util.CancelIndicator monitor)
Checks that content of string literal is valid for the declared content type.-
Methods inherited from class com._1c.g5.v8.dt.bsl.stringliteral.contenttypes.AbstractInvocationTypeComputer
computeIsValidForSupportedType, getDynamicInvocationSourceTypes, getStaticInvocationParams, isValidModule, 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, isSupport
-
-
-
-
Method Detail
-
getSupportedType
public String getSupportedType()
Description copied from interface:TypeValidator
Returns the supported type ID of the string literal content validator.- Specified by:
getSupportedType
in interfaceTypeComputer
- Specified by:
getSupportedType
in interfaceTypeValidator
- Returns:
- the supported type, cannot return
null
.
-
validate
public org.eclipse.core.runtime.IStatus validate(StringLiteral literal, List<String> content, org.eclipse.xtext.util.CancelIndicator monitor)
Description copied from interface:TypeValidator
Checks that content of string literal is valid for the declared content type.- Specified by:
validate
in interfaceTypeValidator
- Parameters:
literal
- the string literal, cannot benull
.content
- the content of lines of the string literal, cannot benull
.monitor
- the monitor to check cancel status, cannot benull
.- Returns:
- the status of validation, cannot return
null
.
-
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.
-
-