Package com._1c.g5.v8.dt.bsl.resource
Class PreprocessorEnvironmentsComputer
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.resource.PreprocessorEnvironmentsComputer
-
public class PreprocessorEnvironmentsComputer extends Object
-
-
Constructor Summary
Constructors Constructor Description PreprocessorEnvironmentsComputer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcomputeEnvironments(IfPreprocessor preprocessor, boolean intersectWithParent, Version version)ComputeEnvironmentsfor BslIfPreprocessorparts.static EnvironmentsgetEnvironmentsByPreprocessorLiteral(PreprocessorLiteralExpression literal)static booleanisPreprocessorLiteralContainEnv(PreprocessorLiteralExpression literal, Environment env)Define thatPreprocessorLiteralExpressioncontainsenv
-
-
-
Method Detail
-
computeEnvironments
public static void computeEnvironments(IfPreprocessor preprocessor, boolean intersectWithParent, Version version)
ComputeEnvironmentsfor BslIfPreprocessorparts. ComputeEnvironmentsfor each part ofIfPreprocessorand result intersect with parentEnvironmentalelement'sEnvironments- Parameters:
preprocessor- can't benullintersectWithParent- iftruewe need to intersectEnvironmentsforPreprocessorIfConditionalwith parentEnvironmentalversion- actualVersion, can't benull- Throws:
IllegalArgumentException
-
isPreprocessorLiteralContainEnv
public static boolean isPreprocessorLiteralContainEnv(PreprocessorLiteralExpression literal, Environment env)
Define thatPreprocessorLiteralExpressioncontainsenv- Parameters:
literal-PreprocessorLiteralExpressionenv-Environment- Returns:
true, if contains,falseif doesn't contain or literal or env isnull
-
getEnvironmentsByPreprocessorLiteral
public static Environments getEnvironmentsByPreprocessorLiteral(PreprocessorLiteralExpression literal)
- Parameters:
literal-PreprocessorLiteralExpression- Returns:
- corresponding
Environments
-
-