Package com._1c.g5.v8.dt.bsl.resource
Class PreprocessorEnvironmentsComputer
java.lang.Object
com._1c.g5.v8.dt.bsl.resource.PreprocessorEnvironmentsComputer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcomputeEnvironments(IfPreprocessor preprocessor, boolean intersectWithParent, Version version) ComputeEnvironmentsfor BslIfPreprocessorparts.static Environmentsstatic booleanDefine thatPreprocessorLiteralExpressioncontainsenv
-
Constructor Details
-
PreprocessorEnvironmentsComputer
public PreprocessorEnvironmentsComputer()
-
-
Method Details
-
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
-