Package com._1c.g5.v8.dt.bsl.common
Class StaticFeatureAccessProcessor
java.lang.Object
com._1c.g5.v8.dt.bsl.common.StaticFeatureAccessProcessor
- Direct Known Subclasses:
VariableProcessor,VariablesExtractor
Processor for BSL language rule "featureName(param1?, param2?, ..)"
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize withBlockStaticFeatureAccessProcessor(Block block, org.eclipse.xtext.util.CancelIndicator cancelIndicator) Initialize withBlockStaticFeatureAccessProcessor(Collection<Statement> allStatements) Initialize with collection of StatementsStaticFeatureAccessProcessor(Collection<Statement> allStatements, org.eclipse.xtext.util.CancelIndicator cancelIndicator) Initialize with collection of Statements -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddoProcess(StaticFeatureAccess sfa, boolean targetOfAssignment) Function to perform processing of eachStaticFeatureAccesscontaining in theBlock.protected voiddoProcessInternal(Conditional cond) ProcessingConditionalprotected voidProcessingDynamicFeatureAccessprotected voidProcessingFunctionStyleCreatorprotected voiddoProcessInternal(IfStatement stat) ProcessingIfStatementprotected voiddoProcessInternal(IndexAccess expr) ProcessingIndexAccessprotected voidProcessingOperatorStyleCreatorprotected voidProcessingPreprocessorprotected voiddoProcessInternal(Statement stat) ProcessingStatementprotected voidProcessingTryExceptStatementprotected booleanChecks that execution is canceledvoidprocess()Start processing for all statements inBlock
-
Constructor Details
-
StaticFeatureAccessProcessor
Initialize withBlock- Parameters:
block-
-
StaticFeatureAccessProcessor
public StaticFeatureAccessProcessor(Block block, org.eclipse.xtext.util.CancelIndicator cancelIndicator) Initialize withBlock- Parameters:
block-cancel- indicator (notnull)
-
StaticFeatureAccessProcessor
Initialize with collection of Statements- Parameters:
collection- of theStatement, cannot benull
-
StaticFeatureAccessProcessor
public StaticFeatureAccessProcessor(Collection<Statement> allStatements, org.eclipse.xtext.util.CancelIndicator cancelIndicator) Initialize with collection of Statements- Parameters:
collection- of theStatement, cannot benullcancel- indicator (notnull)
-
-
Method Details
-
process
public void process()Start processing for all statements inBlock -
doProcess
Function to perform processing of eachStaticFeatureAccesscontaining in theBlock.- Parameters:
sfa-StaticFeatureAccessinstance to process. Notnull.targetOfAssignment-trueif passedStaticFeatureAccessrepresents target of assignment (single variable in the left side of assignment or loop variable in the For statement)
-
doProcessInternal
ProcessingTryExceptStatement- Parameters:
stat-TryExceptStatement, cannot benull
-
doProcessInternal
ProcessingIfStatement- Parameters:
stat-IfStatement, cannot benull
-
doProcessInternal
ProcessingConditional- Parameters:
stat-Conditional, cannot benull
-
isCanceled
protected boolean isCanceled()Checks that execution is canceled- Returns:
truein case execution is canceled,falseotherwise
-
doProcessInternal
ProcessingFunctionStyleCreator- Parameters:
expr- processingFunctionStyleCreator, cannot benull
-
doProcessInternal
ProcessingOperatorStyleCreator- Parameters:
expr- processingOperatorStyleCreator, cannot benull
-
doProcessInternal
ProcessingPreprocessor- Parameters:
stat- processingPreprocessor, cannot benull
-
doProcessInternal
ProcessingStatement- Parameters:
stat- processingStatement, cannot benull
-
doProcessInternal
ProcessingDynamicFeatureAccess- Parameters:
expr- processingDynamicFeatureAccess, cannot benull
-
doProcessInternal
ProcessingIndexAccess- Parameters:
expr- processingIndexAccess, cannot benull
-