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 SummaryConstructors Constructor Description PreprocessorEnvironmentsComputer()
 - 
Method SummaryAll 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- 
computeEnvironmentspublic static void computeEnvironments(IfPreprocessor preprocessor, boolean intersectWithParent, Version version) ComputeEnvironmentsfor BslIfPreprocessorparts. ComputeEnvironmentsfor each part ofIfPreprocessorand result intersect with parentEnvironmentalelement'sEnvironments- Parameters:
- preprocessor- can't be- null
- intersectWithParent- if- truewe need to intersect- Environmentsfor- PreprocessorIfConditionalwith parent- Environmental
- version- actual- Version, can't be- null
- Throws:
- IllegalArgumentException
 
 - 
isPreprocessorLiteralContainEnvpublic static boolean isPreprocessorLiteralContainEnv(PreprocessorLiteralExpression literal, Environment env) Define thatPreprocessorLiteralExpressioncontainsenv- Parameters:
- literal-- PreprocessorLiteralExpression
- env-- Environment
- Returns:
- true, if contains,- falseif doesn't contain or literal or env is- null
 
 - 
getEnvironmentsByPreprocessorLiteralpublic static Environments getEnvironmentsByPreprocessorLiteral(PreprocessorLiteralExpression literal) - Parameters:
- literal-- PreprocessorLiteralExpression
- Returns:
- corresponding Environments
 
 
- 
 
-