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
Special parser helper for simple Expressions tests
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ParseHelperEncoder<Expression>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 Expression 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
-
SimpleTestExpressionParseHelper
public SimpleTestExpressionParseHelper()
-
-
Method Details
-
getModuleLineDelimeter
Gets line delimiter for Bsl module- Returns:
- delimiter for Bsl module, can't be
null
-
parseFile
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
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
-