Package ptolemy.data.type

Examples of ptolemy.data.type.ArrayType$ElementTypeTerm


         * cannot be determined.
         */
        private ArrayType _getArrayTypeRaw(int length) throws IllegalActionException  {
            Type type = input.getType();
            if (_arrayType == null || !_arrayType.getElementType().equals(type)) {
                $ASSIGN$_arrayType(new ArrayType(type, length));
            }
            return _arrayType;
        }
View Full Code Here


     *  is the first argument, with length equal to the second argument.
     *  @param type The type of the array.
     *  @return The type of the value returned from the corresponding function.
     */
    public static Type arrayTypeReturnType(Type type) {
        return new ArrayType(type);
    }
View Full Code Here

     @param type2 The type of the second argument to the
     *  corresponding function.
     *  @return The type of the value returned from the corresponding function.
     */
    public static Type arrayTypeReturnType(Type type1, Type type2) {
        return new ArrayType(type2);
    }
View Full Code Here

                            "filter(): specified array element is not "
                                    + "compatible with function argument type.");
                }

                // Force size to be unknown
                return new ArrayType(((ArrayType) arrayTokenType)
                        .getElementType());
            }
        } else {
            return BaseType.UNKNOWN;
        }
View Full Code Here

                            "iterate(): invalid function: function return "
                                    + "type is not "
                                    + "compatible with function argument type.");
                }

                return new ArrayType(TypeLattice.leastUpperBound(resultType,
                        initialType));
            }
        } else {
            return BaseType.UNKNOWN;
        }
View Full Code Here

                    }
                }
            }

            Type resultType = castFunctionType.getReturnType();
            return new ArrayType(resultType);
        } else {
            return BaseType.UNKNOWN;
        }
    }
View Full Code Here

     @param type The type of the argument to the corresponding function.
     *  @return The type of the value returned from the corresponding function.
     */
    public static Type maxReturnType(Type type) {
        if (type instanceof ArrayType) {
            ArrayType arrayType = (ArrayType) type;
            return arrayType.getElementType();
        } else {
            return BaseType.UNKNOWN;
        }
    }
View Full Code Here

     @param type The type of the argument to the corresponding function.
     *  @return The type of the value returned from the corresponding function.
     */
    public static Type minReturnType(Type type) {
        if (type instanceof ArrayType) {
            ArrayType arrayType = (ArrayType) type;
            return arrayType.getElementType();
        } else {
            return BaseType.UNKNOWN;
        }
    }
View Full Code Here

     @param type The type of the argument to the corresponding function.
     *  @return The type of the value returned from the corresponding function.
     */
    public static Type randomReturnType(Type type) {
        if (type.equals(BaseType.INT)) {
            return new ArrayType(BaseType.DOUBLE);
        } else {
            return BaseType.UNKNOWN;
        }
    }
View Full Code Here

     @param type2 The type of the second argument to the
     *  corresponding function.
     *  @return The type of the value returned from the corresponding function.
     */
    public static Type repeatReturnType(Type type1, Type type2) {
        return new ArrayType(type2);
    }
View Full Code Here

TOP

Related Classes of ptolemy.data.type.ArrayType$ElementTypeTerm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.