Class AttributeVariable

All Implemented Interfaces:
IAttributeAccess

public class AttributeVariable extends Variable
A variable which represents an attribute. However, access to an attribute may be qualified, e.g. via a CompoundAccess, i.e., qualifier.attribute whereby qualifier may even be c.a.attribute of unlimited nesting. However, the attribute shall point to the original definition of the attribute variable. This class is a (polymorphic) subclass of Variable as it just adds an attribute (and helps saving memory in case that the qualifying attribute is not needed).
Author:
Holger Eichelberger
  • Field Details

  • Constructor Details

    • AttributeVariable

      AttributeVariable()
      Constructor for serialization.
    • AttributeVariable

      public AttributeVariable(ConstraintSyntaxTree qualifier, Attribute attribute)
      Creates an attribute variable.
      Parameters:
      qualifier - an optional expression required to uniquely address the specific variable the attribute is referring to (may be null)
      attribute - the attribute (as variable)
  • Method Details