Class Cardinality

All Implemented Interfaces:
ModuleElement

public class Cardinality extends AbstractModuleElement
  • Field Details

    • UNBOUNDED

      public static final int UNBOUNDED
      See Also:
    • lowerBound

      protected int lowerBound
    • upperBound

      protected int upperBound
  • Constructor Details

    • Cardinality

      public Cardinality()
    • Cardinality

      public Cardinality(int lowerBound, int upperBound)
  • Method Details

    • build

      public void build(AST cst, IModule module)
      Specified by:
      build in interface ModuleElement
      Overrides:
      build in class AbstractModuleElement
    • getBound

      protected static int getBound(String text)
    • getUpperBound

      public int getUpperBound()
    • getLowerBound

      public int getLowerBound()
    • isUnbounded

      public boolean isUnbounded()
    • isMany

      public boolean isMany()
    • isOne

      public boolean isOne()
    • isInBounds

      public boolean isInBounds(int n)