|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConstraint
A constraint occurs in a rule or fragment declaration, or recursively elsewhere.
Abstract syntax reference: Constraint ::= IfThenStatement
Field Summary |
---|
Fields inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode |
---|
NEWLINE |
Method Summary | |
---|---|
NRLDataType |
getNRLDataType()
Return a type constant from the NRLDataType class,
indicating the data type of the constraint. |
void |
setNRLDataType(NRLDataType type)
Assign an NRL type to this constraint. |
Methods inherited from interface net.sourceforge.nrl.parser.ast.INRLAstNode |
---|
accept, dump, getColumn, getLine, getUserData, setUserData |
Method Detail |
---|
NRLDataType getNRLDataType()
NRLDataType
class,
indicating the data type of the constraint.
This can only be called once a type inference algorithm has been applied
to the constraint or the entire AST. Constraints either have type
themselves, in the case of primitive constraints, or derived types
inherited from expressions. Before type inference is called, the type is
always NRLDataType.Type#Unknown
.
void setNRLDataType(NRLDataType type)
type
- the type
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |