/** * Constructs a PrimitiveObjectConstraint * * @param path * @param occurrences * @param nodeId * @param parent * @param item */ public CPrimitiveObject(String path, Interval<Integer> occurrences, String nodeId, CAttribute parent, CPrimitive item) { super(item == null, path, item == null ? null : item.getType(), occurrences, nodeId, parent, item == null ? null : item.assumedValue()); this.item = item; }
/** * Constructs a PrimitiveObjectConstraint * * @param path * @param occurrences * @param nodeId * @param parent * @param item */ public CPrimitiveObject(String path, Interval<Integer> occurrences, String nodeId, CAttribute parent, CPrimitive item) { super(item == null, path, item == null ? null : item.getType(), occurrences, nodeId, parent, item == null ? null : item.assumedValue()); this.item = item; }
throw new Exception("unsupported primitive type: " + cp.getType());
cp = c_primitive(); jj_consume_token(SYM_END_CBLOCK); item2 = new ExpressionLeaf("C_"+cp.getType().toUpperCase(), cp, //SG 2013-01-31: Need to add "C_" because it is a C_* constraint pattern here, with the type usually being displayed in upper case ExpressionLeaf.ReferenceType.CONSTRAINT); break;
cp = c_primitive(); jj_consume_token(SYM_END_CBLOCK); item2 = new ExpressionLeaf("C_"+cp.getType().toUpperCase(), cp, //SG 2013-01-31: Need to add "C_" because it is a C_* constraint pattern here, with the type usually being displayed in upper case ExpressionLeaf.ReferenceType.CONSTRAINT); break;