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
public abstract class StaticFeatureAccessProcessor extends Object
Processor for BSL language rule "featureName(param1?, param2?, ..)"
-
-
Constructor Summary
Constructors Constructor Description StaticFeatureAccessProcessor(Block block)
Initialize withBlock
StaticFeatureAccessProcessor(Block block, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
Initialize withBlock
StaticFeatureAccessProcessor(Collection<Statement> allStatements)
Initialize with collection of StatementsStaticFeatureAccessProcessor(Collection<Statement> allStatements, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
Initialize with collection of Statements
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
doProcess(StaticFeatureAccess sfa, boolean targetOfAssignment)
Function to perform processing of eachStaticFeatureAccess
containing in theBlock
.protected void
doProcessInternal(Conditional cond)
ProcessingConditional
protected void
doProcessInternal(DynamicFeatureAccess expr)
ProcessingDynamicFeatureAccess
protected void
doProcessInternal(FunctionStyleCreator expr)
ProcessingFunctionStyleCreator
protected void
doProcessInternal(IfStatement stat)
ProcessingIfStatement
protected void
doProcessInternal(IndexAccess expr)
ProcessingIndexAccess
protected void
doProcessInternal(OperatorStyleCreator expr)
ProcessingOperatorStyleCreator
protected void
doProcessInternal(Preprocessor stat)
ProcessingPreprocessor
protected void
doProcessInternal(Statement stat)
ProcessingStatement
protected void
doProcessInternal(TryExceptStatement stat)
ProcessingTryExceptStatement
protected boolean
isCanceled()
Checks that execution is canceledvoid
process()
Start processing for all statements inBlock
-
-
-
Constructor Detail
-
StaticFeatureAccessProcessor
public StaticFeatureAccessProcessor(Block block)
Initialize withBlock
- Parameters:
block
-
-
StaticFeatureAccessProcessor
public StaticFeatureAccessProcessor(Block block, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
Initialize withBlock
- Parameters:
block
-cancel
- indicator (notnull
)
-
StaticFeatureAccessProcessor
public StaticFeatureAccessProcessor(Collection<Statement> allStatements)
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 benull
cancel
- indicator (notnull
)
-
-
Method Detail
-
process
public void process()
Start processing for all statements inBlock
-
doProcess
protected abstract void doProcess(StaticFeatureAccess sfa, boolean targetOfAssignment)
Function to perform processing of eachStaticFeatureAccess
containing in theBlock
.- Parameters:
sfa
-StaticFeatureAccess
instance to process. Notnull
.targetOfAssignment
-true
if passedStaticFeatureAccess
represents target of assignment (single variable in the left side of assignment or loop variable in the For statement)
-
doProcessInternal
protected void doProcessInternal(TryExceptStatement stat)
ProcessingTryExceptStatement
- Parameters:
stat
-TryExceptStatement
, cannot benull
-
doProcessInternal
protected void doProcessInternal(IfStatement stat)
ProcessingIfStatement
- Parameters:
stat
-IfStatement
, cannot benull
-
doProcessInternal
protected void doProcessInternal(Conditional cond)
ProcessingConditional
- Parameters:
stat
-Conditional
, cannot benull
-
isCanceled
protected boolean isCanceled()
Checks that execution is canceled- Returns:
true
in case execution is canceled,false
otherwise
-
doProcessInternal
protected void doProcessInternal(FunctionStyleCreator expr)
ProcessingFunctionStyleCreator
- Parameters:
expr
- processingFunctionStyleCreator
, cannot benull
-
doProcessInternal
protected void doProcessInternal(OperatorStyleCreator expr)
ProcessingOperatorStyleCreator
- Parameters:
expr
- processingOperatorStyleCreator
, cannot benull
-
doProcessInternal
protected void doProcessInternal(Preprocessor stat)
ProcessingPreprocessor
- Parameters:
stat
- processingPreprocessor
, cannot benull
-
doProcessInternal
protected void doProcessInternal(Statement stat)
ProcessingStatement
- Parameters:
stat
- processingStatement
, cannot benull
-
doProcessInternal
protected void doProcessInternal(DynamicFeatureAccess expr)
ProcessingDynamicFeatureAccess
- Parameters:
expr
- processingDynamicFeatureAccess
, cannot benull
-
doProcessInternal
protected void doProcessInternal(IndexAccess expr)
ProcessingIndexAccess
- Parameters:
expr
- processingIndexAccess
, cannot benull
-
-