Package com._1c.g5.v8.dt.bsl
Class SimpleTestBslParseHelper
java.lang.Object
com._1c.g5.v8.dt.bsl.SimpleTestBslParseHelper
- Direct Known Subclasses:
AsyncAwaitGrammarTest,BslQueryWizardUtilsTest,CustomNodeModelUtilsTest,FullGrammarTest,GrammarOrderTest,LocalVariableExtractValidatorTest,MethodExtractValidatorTest,NodeOccurencesFinderTest,NumberLiteralValidatorTest,PreprocessorGrammarStructureTest,RaiseStatementGrammarTest,RaiseStatementValidatorTest,RegionPreprocessorTypeTest,SemicolonTokenValidatorTest,SurroundWithRegionTest
Special parser helper for simple Bsl tests
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ParseHelperEncoder<Module>protected org.eclipse.emf.ecore.resource.ResourceSetprotected com.google.inject.Provider<org.eclipse.xtext.resource.XtextResourceSet> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringGets line delimiter for Bsl moduleprotected StringgetTextFromFile(String fileName) Reads text from fileprotected org.eclipse.emf.ecore.resource.ResourceParse file by Bsl language
-
Field Details
-
parser
-
resourceSetProvider
@Inject protected com.google.inject.Provider<org.eclipse.xtext.resource.XtextResourceSet> resourceSetProvider -
resourceSet
protected org.eclipse.emf.ecore.resource.ResourceSet resourceSet
-
-
Constructor Details
-
SimpleTestBslParseHelper
public SimpleTestBslParseHelper()
-
-
Method Details
-
getModuleLineDelimeter
Gets line delimiter for Bsl module- Returns:
- delimiter for Bsl module, can't be
null
-
parseFile
Parse file by Bsl language- Parameters:
fileName- name of the file, can't benull- Returns:
- created Bsl resource, can't be
null - Throws:
Exception- all detected exception
-
getTextFromFile
Reads text from file- Parameters:
fileName- name of the file, can't benull- Returns:
- content of the file, can't be
null - Throws:
IOException- all detected exception
-