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 intlowerBoundstatic intUNBOUNDEDprotected intupperBound
-
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 voidbuild(AST cst, IModule module)protected static intgetBound(java.lang.String text)intgetLowerBound()intgetUpperBound()booleanisInBounds(int n)booleanisMany()booleanisOne()booleanisUnbounded()-
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:
buildin interfaceModuleElement- Overrides:
buildin 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)
-
-