示例#1
0
        /* (non-Javadoc)
         * @see ocl20.CoreOperation#getReturnType()
         */

        public virtual CoreClassifier getReturnType()
        {
            CoreClassifier returnType = getSpecificReturnParameterType();

            if (returnType != null && OclTypesDefinition.typeNeedsToBeParsed(returnType))
            {
                return(OclTypesFactory.createTypeFromString(returnType.getName()));
            }
            else
            {
                return(returnType);
            }

//		return	getSpecificReturnParameterType();
        }
示例#2
0
        /* (non-Javadoc)
         * @see ocl20.CoreOperation#getParametersTypesExceptReturn()
         */

        public List <object> getParametersTypesExceptReturn()
        {
            List <object> parameters = getSpecificParameterTypesExceptReturn();
            List <object> result     = new List <object>();

            if (parameters != null)
            {
                foreach (CoreClassifier paramType in parameters)
                {
                    if (OclTypesDefinition.typeNeedsToBeParsed(paramType.getName()))
                    {
                        result.Add(OclTypesFactory.createTypeFromString(paramType.getName()));
                    }
                    else
                    {
                        result.Add(paramType);
                    }
                }
            }
            return(result);


//		return	adjustCollectionResult(getSpecificParameterTypesExceptReturn());
        }