Class PartialParseResult
- java.lang.Object
- 
- org.eclipse.xtext.parser.ParseResult
- 
- com._1c.g5.v8.dt.bsl.parser.antlr.PartialParseResult
 
 
- 
- All Implemented Interfaces:
- org.eclipse.xtext.parser.IParseResult
 
 public class PartialParseResult extends org.eclipse.xtext.parser.ParseResultSpecial parse result containing information about last reparsing method fromModule
- 
- 
Constructor SummaryConstructors Constructor Description PartialParseResult(org.eclipse.emf.ecore.EObject rootAstElement, org.eclipse.xtext.nodemodel.ICompositeNode rootNode, boolean hasErrors)ConstructorPartialParseResult(org.eclipse.xtext.parser.IParseResult parseResult, Method reparseMethod)ConstructorPartialParseResult(org.eclipse.xtext.parser.IParseResult parseResult, Method reparseMethod, Collection<Method> calleesMethod)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCalleeMethodReturnType(String calleFunctionUniqueName, Collection<TypeItem> types)Adds return types which was computed before reparsed method was changed for method called from reparsed methodCollection<TypeItem>getCalleeMethodReturnType(String calleFunctionUniqueName)Gets return types which was computed before reparsed method was changed for method called from reparsed methodCollection<Method>getCalleesMethod()GetsMethods are called fromreparseMethodbefore editingList<Collection<TypeItem>>getOldParametersTypes()Gets input parameter types for reparsed method which was computed before method changedCollection<TypeItem>getOldReturnTypes()Gets return types for reparsed function which was computed before method changedMethodgetReparseMethod()Gets last reparsing method fromModuleIterable<org.eclipse.xtext.nodemodel.INode>getSyntaxErrors()booleanisOnlyMethodReparse()voidsetOldParametersTypes(List<Collection<TypeItem>> oldParametersTypes)Sets input parameter types for reparsed method which was computed before method changedvoidsetOldReturnTypes(Collection<TypeItem> oldReturnTypes)Sets return types for reparsed function which was computed before method changed
 
- 
- 
- 
Constructor Detail- 
PartialParseResultpublic PartialParseResult(org.eclipse.xtext.parser.IParseResult parseResult, Method reparseMethod, Collection<Method> calleesMethod)Constructor
 - 
PartialParseResultpublic 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
 
 - 
PartialParseResultpublic 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-- ICompositeNodecorresponding to the root ast parse tree element, can't be- null
- hasErrors-- trueif sntax error was found,- falseotherwise
 
 
- 
 - 
Method Detail- 
isOnlyMethodReparsepublic boolean isOnlyMethodReparse() 
 - 
getReparseMethodpublic Method getReparseMethod() Gets last reparsing method fromModule- Returns:
- last reparsing method from Module, can benullifisOnlyMethodReparse()returnfalse
 
 - 
getCalleesMethodpublic Collection<Method> getCalleesMethod() GetsMethods are called fromreparseMethodbefore editing- Returns:
- Methods are called from- reparseMethodbefore editing, cannot be- null
 
 - 
getSyntaxErrorspublic Iterable<org.eclipse.xtext.nodemodel.INode> getSyntaxErrors() - Specified by:
- getSyntaxErrorsin interface- org.eclipse.xtext.parser.IParseResult
- Overrides:
- getSyntaxErrorsin class- org.eclipse.xtext.parser.ParseResult
 
 - 
setOldReturnTypespublic void setOldReturnTypes(Collection<TypeItem> oldReturnTypes) Sets return types for reparsed function which was computed before method changed- Parameters:
- oldReturnTypes- return types computed before changes, cannot be- null
 
 - 
setOldParametersTypespublic void setOldParametersTypes(List<Collection<TypeItem>> oldParametersTypes) Sets input parameter types for reparsed method which was computed before method changed- Parameters:
- list- each item of list contains input types for one method parameter, cannot be- null
 
 - 
getOldReturnTypespublic Collection<TypeItem> getOldReturnTypes() Gets return types for reparsed function which was computed before method changed- Returns:
- return types computed before changes, cannot be null
 
 - 
getOldParametersTypespublic List<Collection<TypeItem>> getOldParametersTypes() Gets input parameter types for reparsed method which was computed before method changed- Returns:
- list each item of list contains input types for one method parameter, cannot be null
 
 - 
addCalleeMethodReturnTypepublic void addCalleeMethodReturnType(String calleFunctionUniqueName, Collection<TypeItem> types) Adds return types which was computed before reparsed method was changed for method called from reparsed method- Parameters:
- calleFunctionUniqueName- unique name of the method called in reparsed method, cannot be- null
- return- types computed before changes in reparsed method, cannot be- null
 
 - 
getCalleeMethodReturnTypepublic Collection<TypeItem> getCalleeMethodReturnType(String calleFunctionUniqueName) Gets return types which was computed before reparsed method was changed for method called from reparsed method- Parameters:
- calleFunctionUniqueName- unique name of the method called in reparsed method, cannot be- null
- Returns:
- return types computed before changes in reparsed method, can be nullif unique name is unknown or no information about returning types
 
 
- 
 
-