Class ImplicitVariablesProcessor

java.lang.Object
com._1c.g5.v8.dt.bsl.common.ImplicitVariablesProcessor
Direct Known Subclasses:
ImplicitVariablesScope.ImplicitVariableCollector

public abstract class ImplicitVariablesProcessor extends Object
Abstract class to be used as base class for processors dealing with ImplicitVariable instances.
Recall that only StaticFeatureAccess instances representing left side of assignment can contain ImplicitVariable instances. Method process() walks through all of such StaticFeatureAccess instances in the Block and invoke doProcess(StaticFeatureAccess) for each of them. StaticFeatureAccess instances are processed in syntactic order.
  • Constructor Details

    • ImplicitVariablesProcessor

      public ImplicitVariablesProcessor(Block block, Statement lastStatement)
      Parameters:
      block - Block to be processed. Not null.
      lastStatement - last statement to be processed
  • Method Details

    • process

      public void process()
      Process StaticFeatureAccess instances representing left side of assignment.
    • setStop

      protected void setStop()
      Sets flag of stop processor to true
    • doProcess

      protected abstract void doProcess(StaticFeatureAccess left)
      Function to perform processing of StaticFeatureAccess representing left side of assignment.
      Parameters:
      left - StaticFeatureAccess instance to process. Not null.