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
 
 public class SimpleTestBslParseHelper extends Object Special parser helper for simple Bsl tests
- 
- 
Field SummaryFields Modifier and Type Field Description protected com._1c.g5.v8.dt.lcore.tests.parser.helper.ParseHelperEncoder<Module>parserprotected org.eclipse.emf.ecore.resource.ResourceSetresourceSetprotected com.google.inject.Provider<org.eclipse.xtext.resource.XtextResourceSet>resourceSetProvider
 - 
Constructor SummaryConstructors Constructor Description SimpleTestBslParseHelper()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetModuleLineDelimeter()Gets line delimiter for Bsl moduleprotected StringgetTextFromFile(String fileName)Reads text from fileprotected org.eclipse.emf.ecore.resource.ResourceparseFile(String fileName)Parse file by Bsl language
 
- 
- 
- 
Field Detail- 
parser@Inject protected com._1c.g5.v8.dt.lcore.tests.parser.helper.ParseHelperEncoder<Module> parser 
 - 
resourceSetProvider@Inject protected com.google.inject.Provider<org.eclipse.xtext.resource.XtextResourceSet> resourceSetProvider 
 - 
resourceSetprotected org.eclipse.emf.ecore.resource.ResourceSet resourceSet 
 
- 
 - 
Method Detail- 
getModuleLineDelimeterprotected String getModuleLineDelimeter() Gets line delimiter for Bsl module- Returns:
- delimiter for Bsl module, can't be null
 
 - 
parseFileprotected org.eclipse.emf.ecore.resource.Resource parseFile(String fileName) throws Exception Parse file by Bsl language- Parameters:
- fileName- name of the file, can't be- null
- Returns:
- created Bsl resource, can't be null
- Throws:
- Exception- all detected exception
 
 - 
getTextFromFileprotected String getTextFromFile(String fileName) throws IOException Reads text from file- Parameters:
- fileName- name of the file, can't be- null
- Returns:
- content of the file, can't be null
- Throws:
- IOException- all detected exception
 
 
- 
 
-