public abstract class AstPrimClafer extends AstClafer
claferClafer
Modifier and Type | Method and Description |
---|---|
AstConcreteClafer |
addChild(String name)
Add a new concrete child under this Clafer.
|
AstConstraint |
addConstraint(AstBoolExpr constraint)
Add a new constraint under this Clafer.
|
AstClafer |
extending(AstAbstractClafer superClafer)
Set the supertype of this Clafer.
|
AstClafer |
refTo(AstClafer targetType)
Set this Clafer's reference to target type.
|
AstClafer |
refToUnique(AstClafer targetType)
Set this Clafer's reference to target type along with a uniqueness
constraint.
|
AstConcreteClafer |
withGroupCard(Card groupCard)
Set this Clafer's group cardinality.
|
equals, getChildren, getConstraints, getGroupCard, getName, getRef, getSuperClafer, hasChildren, hasConstraints, hashCode, hasRef, hasSuperClafer, toString, withGroupCard, withGroupCard
public AstClafer extending(AstAbstractClafer superClafer)
public AstClafer refToUnique(AstClafer targetType)
refToUnique
in class AstClafer
targetType
- the type to refer topublic AstConcreteClafer withGroupCard(Card groupCard)
withGroupCard
in class AstClafer
groupCard
- the group cardinalitypublic AstConcreteClafer addChild(String name)
public AstConstraint addConstraint(AstBoolExpr constraint)
addConstraint
in class AstClafer
constraint
- a tautologyCopyright © 2013. All Rights Reserved.