Class QueryTypeComputer

    • Constructor Detail

      • QueryTypeComputer

        public QueryTypeComputer()
    • Method Detail

      • order

        public int order()
        Description copied from interface: TypeComputer
        Order of call to compute string literal type.
        Specified by:
        order in interface TypeComputer
        Returns:
        the order of call
      • 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 interface TypeValidator
        Parameters:
        literal - the string literal, cannot be null.
        content - the content of lines of the string literal, cannot be null.
        monitor - the monitor to check cancel status, cannot be null.
        Returns:
        the status of validation, cannot return null.
      • isStartWithSelect

        protected boolean isStartWithSelect​(List<String> content,
                                            org.eclipse.xtext.util.CancelIndicator monitor)
        Checks if the literal content starts with "SELECT" keyword.
        Parameters:
        content - the content, cannot be null.
        monitor - the monitor, cannot be null.
        Returns:
        true, if it starts with SELECT