Class Defines


  • public class Defines
    extends Object
    Set of Define instance.
    • Field Detail

      • EMPTY

        public static final Defines EMPTY
    • Constructor Detail

      • Defines

        public Defines​(Define... defines)
        Constructor.
        Parameters:
        defines - array of Define to be contained in created instance.
    • Method Detail

      • defined

        public Define defined​(String symbol)
        Checks whether symbol defined or not.
        Parameters:
        symbol - symbol to check. May not be null.
        Returns:
        instance of corresponding Define if symbol is defined. Otherwise null.
      • environments

        public Environments environments​(String symbol)
        Gets Environments instance associated with symbol.
        Parameters:
        symbol - symbol to check. May not be null.
        Returns:
        instance of corresponding Environments if symbol is defined. Otherwise null.
      • add

        public Defines add​(Defines defines)
        Adds instance of Defines passed in parameter to this instance and creates new containig sum of two instances.
        Parameters:
        defines - instance of Defines to be added to this. Can't be null.
        Returns:
        result of addition.