Class VariableOccurrence

    • Constructor Detail

      • VariableOccurrence

        public VariableOccurrence​(String name,
                                  List<String> params,
                                  org.eclipse.jface.text.IRegion region,
                                  String text)
        Creates new instance of this
        Parameters:
        name - variable name, cannot be null
        params - The params of this occurrence, cannot be null
        region - The region of this occurrence, cannot be null
        text - The text of the occurrence, cannot be null
    • Method Detail

      • getRegion

        public org.eclipse.jface.text.IRegion getRegion()
        Description copied from interface: IVariableOccurrence
        Returns the region occurrence of this variable
        Specified by:
        getRegion in interface IVariableOccurrence
        Returns:
        The region of this occurrence, cannot be null
      • getParameter

        public String getParameter​(int i)
        Description copied from interface: IVariableOccurrence
        Returns the parameter with the given order. Counts from 0
        Specified by:
        getParameter in interface IVariableOccurrence
        Parameters:
        i - The order of the parameter to be returned
        Returns:
        The value of the parameter, can be null
      • getParametersCount

        public int getParametersCount()
        Description copied from interface: IVariableOccurrence
        Returns the number representing the amount of parameters this variable has
        Specified by:
        getParametersCount in interface IVariableOccurrence
        Returns:
        The number of parameters held by this variable