Class StructureKeyTypeComputer

    • Field Detail

      • DYNAMIC_INVOCATION

        public static final Set<org.eclipse.xtext.util.Pair<String,​Integer>> DYNAMIC_INVOCATION
      • DYNAMIC_INVOCATION_SOURCE_TYPES

        public static final Set<String> DYNAMIC_INVOCATION_SOURCE_TYPES
    • Constructor Detail

      • StructureKeyTypeComputer

        public StructureKeyTypeComputer()
    • 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 literal
        content - 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.
      • 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 class AbstractInvocationTypeComputer
        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.