Package com._1c.g5.v8.dt.dcs.expressions
Class SimpleTestExpressionParseHelper
- java.lang.Object
-
- com._1c.g5.v8.dt.dcs.expressions.SimpleTestExpressionParseHelper
-
- Direct Known Subclasses:
ExpressionsGrammarBugTest,ExpressionsGrammarFullTest
public class SimpleTestExpressionParseHelper extends Object
Special parser helper for simple Expressions tests
-
-
Field Summary
Fields Modifier and Type Field Description protected com._1c.g5.v8.dt.lcore.tests.parser.helper.ParseHelperEncoder<Expression>parserprotected org.eclipse.emf.ecore.resource.ResourceSetresourceSetprotected com.google.inject.Provider<org.eclipse.xtext.resource.XtextResourceSet>resourceSetProvider
-
Constructor Summary
Constructors Constructor Description SimpleTestExpressionParseHelper()
-
Method Summary
All 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 Expression language
-
-
-
Field Detail
-
parser
@Inject protected com._1c.g5.v8.dt.lcore.tests.parser.helper.ParseHelperEncoder<Expression> parser
-
resourceSetProvider
@Inject protected com.google.inject.Provider<org.eclipse.xtext.resource.XtextResourceSet> resourceSetProvider
-
resourceSet
protected org.eclipse.emf.ecore.resource.ResourceSet resourceSet
-
-
Method Detail
-
getModuleLineDelimeter
protected String getModuleLineDelimeter()
Gets line delimiter for Bsl module- Returns:
- delimiter for Bsl module, can't be
null
-
parseFile
protected org.eclipse.emf.ecore.resource.Resource parseFile(String fileName) throws Exception
Parse file by Expression language- Parameters:
fileName- name of the file, can't benull- Returns:
- created Bsl resource, can't be
null - Throws:
Exception- all detected exception
-
getTextFromFile
protected String getTextFromFile(String fileName) throws IOException
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
-
-