|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IGlobalExistsStatement
A "global" exists statement. This tests for the existence or absence of an object - rather than of an attribute or a member of a collection, like the exists statement.
Abstract syntax reference:
thereIs ("no")? element:ModelReference (Variable)? (constraint:Constraint)?
| Field Summary |
|---|
| Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode |
|---|
NEWLINE |
| Method Summary | |
|---|---|
IConstraint |
getConstraint()
Return the constraint to check relative to the object being iterated over. |
int |
getCount()
Return the cardinality constraint if there is one. |
IModelElement |
getElement()
Return the model element being checked for existence. |
IVariable |
getVariable()
If the statement is used to check for the existence (rather than absence) of an element, the element can be assigned to a variable if found. |
boolean |
hasConstraint()
Return true if there is a constraint attached that is to be executed relative to the model element. |
| Methods inherited from interface net.sourceforge.nrl.parser.ast.constraints.IConstraint |
|---|
getNRLDataType, setNRLDataType |
| Methods inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode |
|---|
accept, dump, getColumn, getLine, getUserData, setUserData |
| Method Detail |
|---|
IConstraint getConstraint()
hasConstraint() to check if it exists first.
int getCount()
It never returns null.
IModelElement getElement()
IVariable getVariable()
boolean hasConstraint()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||