Class VarInfo


  • public class VarInfo
    extends java.lang.Object
    A variable info saves information about the first occurrence of a variable, i.e. its declaration and first binding.
    • Constructor Summary

      Constructors 
      Constructor Description
      VarInfo​(Variable var, int tupleindex, java.lang.Object valuesource, int subindex)
      Create a new VarInfo.
    • Constructor Detail

      • VarInfo

        public VarInfo​(Variable var,
                       int tupleindex,
                       java.lang.Object valuesource,
                       int subindex)
        Create a new VarInfo.
        Parameters:
        var - The variable.
        tupleindex - The tuple index.
        attr - The attribute.
        subindex - The subindex.
    • Method Detail

      • getVariable

        public Variable getVariable()
        Get the variable.
        Returns:
        The variable.
      • getTupleIndex

        public int getTupleIndex()
        Get the tupleindex.
        Returns:
        The tupleindex.
      • getSubindex

        public int getSubindex()
        Get the subindex.
        Returns:
        The subindex.
      • getValueSource

        public java.lang.Object getValueSource()
        Get the value source.
        Returns:
        The value source.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation.