Class Compound

  • Direct Known Subclasses:
    Compound, Compound

    public class Compound
    extends java.lang.Object
    Represents a compound mostly through its type.
    Author:
    Holger Eichelberger
    • Constructor Detail

      • Compound

        public Compound​(CompoundTypeDescriptor type)
        Creates a compound.
        Parameters:
        type - the type of the compound
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the compound.
        Returns:
        the name of the compound
      • getRefines

        public CompoundTypeDescriptor getRefines()
        Returns the refined compound.
        Returns:
        the refined compound (null for none)
      • isAbstract

        public boolean isAbstract()
        Returns whether the compound is abstract.
        Returns:
        true for abstract, false else
      • getSlotsCount

        public int getSlotsCount()
        Returns the number of slots.
        Returns:
        the number of slots
      • getType

        public TypeDescriptor<?> getType()
        Returns the defined type.
        Returns:
        the defined type
      • accept

        public java.lang.Object accept​(IVisitor visitor)
                                throws VilException
        Accepts the visitor for visiting.
        Parameters:
        visitor - the visitor to be used
        Returns:
        the result of visiting this instance (may be null)
        Throws:
        VilException - in case that visiting fails (e.g., execution)