Class Variable


  • public final class Variable
    extends Object
    Immutable class representing a variable of an asset in a MAL language.
    Since:
    1.0.0
    • Method Detail

      • getName

        public String getName()
        Returns the name of this Variable object.
        Returns:
        the name of this Variable object
        Since:
        1.0.0
      • getAsset

        public Asset getAsset()
        Returns the asset of this Variable object.
        Returns:
        the asset of this Variable object
        Since:
        1.0.0
      • getStepExpression

        public StepExpression getStepExpression()
        Returns the step expression of this Variable object.
        Returns:
        the step expression of this Variable object.
        Since:
        1.0.0
      • hasSuperVariable

        public boolean hasSuperVariable()
        Returns whether this Variable object has a super variable.
        Returns:
        whether this Variable object has a super variable
        Since:
        1.*.0
      • getSuperVariable

        public Variable getSuperVariable()
        Returns the super variable of this Variable object.
        Returns:
        the super variable of this Variable object
        Throws:
        UnsupportedOperationException - if this Variable object does not have a super variable
        Since:
        1.0.0