Class PartialParseResult

  • All Implemented Interfaces:
    org.eclipse.xtext.parser.IParseResult

    public class PartialParseResult
    extends org.eclipse.xtext.parser.ParseResult
    Special parse result containing information about last reparsing method from Module
    • Constructor Detail

      • PartialParseResult

        public PartialParseResult​(org.eclipse.xtext.parser.IParseResult parseResult,
                                  Method reparseMethod,
                                  Collection<Method> calleesMethod)
        Constructor
        Parameters:
        parseResult - actual IParseResult, can't be null
        reparseMethod - last reparsing method from Module, can't be null
        calleesMethod - Methods are called from reparseMethod before editing, cannot be null
      • PartialParseResult

        public PartialParseResult​(org.eclipse.xtext.parser.IParseResult parseResult,
                                  Method reparseMethod)
        Constructor
        Parameters:
        parseResult - actual IParseResult, can't be null
        reparseMethod - last reparsing method from Module, can't be null
      • PartialParseResult

        public PartialParseResult​(org.eclipse.emf.ecore.EObject rootAstElement,
                                  org.eclipse.xtext.nodemodel.ICompositeNode rootNode,
                                  boolean hasErrors)
        Constructor
        Parameters:
        rootAstElement - root of ast parse tree element, can't be null
        rootNode - ICompositeNode corresponding to the root ast parse tree element, can't be null
        hasErrors - true if sntax error was found, false otherwise
    • Method Detail

      • isOnlyMethodReparse

        public boolean isOnlyMethodReparse()
        Checks that last editting in Module corresponding only to the one Method
        Returns:
        true if last editting in Module corresponding only to the one Method, false otherwise
      • getCalleesMethod

        public Collection<Method> getCalleesMethod()
        Gets Methods are called from reparseMethod before editing
        Returns:
        Methods are called from reparseMethod before editing, cannot be null
      • getSyntaxErrors

        public Iterable<org.eclipse.xtext.nodemodel.INode> getSyntaxErrors()
        Specified by:
        getSyntaxErrors in interface org.eclipse.xtext.parser.IParseResult
        Overrides:
        getSyntaxErrors in class org.eclipse.xtext.parser.ParseResult