Class VariableProcessor

  • Direct Known Subclasses:
    com._1c.g5.v8.dt.internal.bsl.ui.refactoring.StaticFeatureAccessProcessorForExtractRefactoring

    public class VariableProcessor
    extends StaticFeatureAccessProcessor
    Special StaticFeatureAccessProcessor for found all Variable that change value and
    Variable for read values from it Instances of StatementProcessorForExtractRefactoring are stateful and are not safe for use by multiple threads.
    • Method Detail

      • variablesForChangeValue

        public Map<Variable,​List<org.eclipse.xtext.nodemodel.INode>> variablesForChangeValue()
        Gets all variables and their nodes which change value
        Returns:
        accordance between variables which change value and their INode
      • variablesForReadValue

        public Map<Variable,​List<org.eclipse.xtext.nodemodel.INode>> variablesForReadValue()
        Gets all variables and their nodes from which values are read
        Returns:
        accordance between variables from which values are read and their INode
      • isRefMethodParam

        protected boolean isRefMethodParam​(StaticFeatureAccess sfa)
        Checks that sfa is part of method call
        Parameters:
        sfa - checking StaticFeatureAccess, can't be null
        Returns:
        true if sfa is part of method call, false otherwise
      • addNewVariable

        protected void addNewVariable​(Variable variable,
                                      org.eclipse.xtext.nodemodel.INode node,
                                      Map<Variable,​List<org.eclipse.xtext.nodemodel.INode>> variables)
        Add variable to variables
        Parameters:
        variable - add variable, can't be null
        node - actual INode of variable, can't be null
        variables - container for adding, can't be null