| Package | Description |
|---|---|
| net.sourceforge.nrl.parser.ast |
The fully resolved abstract syntax tree (AST) representation of the constraint language.
|
| net.sourceforge.nrl.parser.ast.constraints | |
| net.sourceforge.nrl.parser.ast.constraints.impl | |
| net.sourceforge.nrl.parser.model |
Definition of the internal meta-model that rules are written against.
|
| net.sourceforge.nrl.parser.operators |
Operator library management package.
|
| net.sourceforge.nrl.parser.type |
Abstract type assignment and type checking for the completed AST.
|
| Modifier and Type | Field and Description |
|---|---|
static NRLDataType |
NRLDataType.BOOLEAN
Scalar boolean type
|
static NRLDataType |
NRLDataType.DATE
Scalar date type
|
static NRLDataType |
NRLDataType.DECIMAL
Scalar decimal (float, double) type
|
static NRLDataType |
NRLDataType.ELEMENT
Scalar element type (complex model element)
|
static NRLDataType |
NRLDataType.INTEGER
Scalar Integer type
|
static NRLDataType |
NRLDataType.STRING
Scalar string type
|
static NRLDataType |
NRLDataType.UNKNOWN |
static NRLDataType |
NRLDataType.VOID
Scalar void type
|
| Modifier and Type | Method and Description |
|---|---|
NRLDataType |
Variable.getNRLDataType() |
NRLDataType |
IVariable.getNRLDataType()
Return a type constant from the
NRLDataType class, indicating the
data type of the variable. |
| Modifier and Type | Method and Description |
|---|---|
void |
Variable.setNRLDataType(NRLDataType type) |
void |
IVariable.setNRLDataType(NRLDataType type)
Assign an NRL type to this variable.
|
| Constructor and Description |
|---|
NRLDataType(NRLDataType other) |
| Modifier and Type | Method and Description |
|---|---|
NRLDataType |
IValidationFragmentDeclaration.getNRLDataType()
Return the return type of the fragment.
|
NRLDataType |
IConstraint.getNRLDataType()
Return a type constant from the
NRLDataType class,
indicating the data type of the constraint. |
| Modifier and Type | Method and Description |
|---|---|
void |
IConstraint.setNRLDataType(NRLDataType type)
Assign an NRL type to this constraint.
|
| Modifier and Type | Method and Description |
|---|---|
NRLDataType |
ValidationFragmentDeclarationImpl.getNRLDataType() |
NRLDataType |
ConstraintImpl.getNRLDataType() |
| Modifier and Type | Method and Description |
|---|---|
void |
ValidationFragmentDeclarationImpl.setNRLDataType(NRLDataType type) |
void |
ConstraintImpl.setNRLDataType(NRLDataType type) |
| Modifier and Type | Method and Description |
|---|---|
NRLDataType |
PrimitiveTypeFactory.getNrlType(String name)
Return the NRL data type of a built-in type, given its name
|
| Modifier and Type | Method and Description |
|---|---|
IDataType |
PrimitiveTypeFactory.getType(NRLDataType nrlType)
Return a data type object corresponding to the given NRL type.
|
| Modifier and Type | Method and Description |
|---|---|
NRLDataType |
Parameter.getNRLDataType() |
NRLDataType |
IParameter.getNRLDataType()
Return the NRL type of the parameter.
|
NRLDataType |
Operator.getNRLReturnType() |
NRLDataType |
IOperator.getNRLReturnType()
Returns the return type of the operator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Parameter.setNRLDataType(NRLDataType type) |
void |
IParameter.setNRLDataType(NRLDataType type)
Set the NRL type of the parameter.
|
void |
Operator.setNRLReturnType(NRLDataType returnType) |
void |
IOperator.setNRLReturnType(NRLDataType type)
Set the NRL type of the return type
|
| Modifier and Type | Method and Description |
|---|---|
NRLDataType |
TypeMappingEntry.getType()
Return the internal data type this maps to.
|
NRLDataType |
TypeMapping.getType(IAttribute attr) |
NRLDataType |
ITypeMapping.getType(IAttribute attr)
Map the type of an attribute to an internal abstract type.
|
NRLDataType |
TypeMapping.getType(IModelElement element) |
NRLDataType |
ITypeMapping.getType(IModelElement element)
Map a model element to an internal, abstract type.
|
protected NRLDataType |
ConstraintTypeChecker.getType(IModelElement element)
Use the type mappings to look up the internal type for a model element.
|
static NRLDataType |
TypeMapping.getTypeFromString(String type)
Convert a string representation of a type back to an integer number.
|
| Modifier and Type | Method and Description |
|---|---|
TypeMappingEntry |
TypeMapping.addMapping(String packageName,
String typeName,
NRLDataType type)
Add a mapping from a type name, in a particular package, to an internal type.
|
static String |
TypeMapping.getStringForType(NRLDataType type)
Return a serializable string for the integer constant from
NRLDataType. |
static boolean |
ConstraintTypeChecker.isAssignmentCompatible(NRLDataType assignedTo,
NRLDataType assignedFrom)
Check if two NRL types are assignment compatible.
|
boolean |
ConstraintTypeChecker.isNumber(NRLDataType type)
Helper method to idenitfy if a type is a number (integer or decimal)
|
void |
TypeMappingEntry.setType(NRLDataType type)
Set the internal type
|
protected void |
ConstraintTypeChecker.visitIsInList(List<IIdentifier> list,
IExpression expression,
NRLDataType exprType) |
| Constructor and Description |
|---|
TypeMappingEntry(String packageName,
String modelElementName,
NRLDataType type) |
Copyright © 2006-2013. All Rights Reserved.