Package org.eclipse.epsilon.epl.dom
Class Cardinality
- java.lang.Object
-
- org.eclipse.epsilon.common.module.AbstractModuleElement
-
- org.eclipse.epsilon.epl.dom.Cardinality
-
- All Implemented Interfaces:
ModuleElement
public class Cardinality extends AbstractModuleElement
-
-
Field Summary
Fields Modifier and Type Field Description protected int
lowerBound
static int
UNBOUNDED
protected int
upperBound
-
Constructor Summary
Constructors Constructor Description Cardinality()
Cardinality(int lowerBound, int upperBound)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(AST cst, IModule module)
protected static int
getBound(java.lang.String text)
int
getLowerBound()
int
getUpperBound()
boolean
isInBounds(int n)
boolean
isMany()
boolean
isOne()
boolean
isUnbounded()
-
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri, toString
-
-
-
-
Field Detail
-
UNBOUNDED
public static final int UNBOUNDED
- See Also:
- Constant Field Values
-
lowerBound
protected int lowerBound
-
upperBound
protected int upperBound
-
-
Method Detail
-
build
public void build(AST cst, IModule module)
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classAbstractModuleElement
-
getBound
protected static int getBound(java.lang.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)
-
-