当前位置: 首页>>代码示例>>C#>>正文


C# biz.ritter.javapi.getName方法代码示例

本文整理汇总了C#中biz.ritter.javapi.getName方法的典型用法代码示例。如果您正苦于以下问题:C# biz.ritter.javapi.getName方法的具体用法?C# biz.ritter.javapi.getName怎么用?C# biz.ritter.javapi.getName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在biz.ritter.javapi的用法示例。


在下文中一共展示了biz.ritter.javapi.getName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: IncompleteAnnotationException

        /**
         * Constructs an instance with the incomplete annotation type and the name
         * of the element that's missing.
         *
         * @param annotationType
         *            the annotation type.
         * @param elementName
         *            the name of the incomplete element.
         */
        public IncompleteAnnotationException(
			java.lang.Class annotationType, String elementName)
            : base("The element, "+elementName+", is not complete for the annotation "+annotationType.getName()+".")
        {
            //$NON-NLS-1$
            this.annotationTypeJ = annotationType;
            this.elementNameJ = elementName;
        }
开发者ID:sailesh341,项目名称:JavApi,代码行数:17,代码来源:IncompleteAnnotationException.cs

示例2: getExplicitBeanInfo

        private static BeanInfo getExplicitBeanInfo(java.lang.Class beanClass)
        {
            String beanInfoClassName = beanClass.getName() + "BeanInfo"; //$NON-NLS-1$
            try
            {
                return loadBeanInfo(beanInfoClassName, beanClass);
            }
            catch (Exception e)
            {
                // fall through
            }

            int index = beanInfoClassName.lastIndexOf('.');
            String beanInfoName = index >= 0 ? beanInfoClassName
                    .substring(index + 1) : beanInfoClassName;
            BeanInfo theBeanInfo = null;
            BeanDescriptor beanDescriptor = null;
            for (int i = 0; i < searchPath.Length; i++)
            {
                beanInfoClassName = searchPath[i] + "." + beanInfoName; //$NON-NLS-1$
                try
                {
                    theBeanInfo = loadBeanInfo(beanInfoClassName, beanClass);
                }
                catch (Exception e)
                {
                    // ignore, try next one
                    continue;
                }
                beanDescriptor = theBeanInfo.getBeanDescriptor();
                if (beanDescriptor != null
                        && beanClass == beanDescriptor.getBeanClass())
                {
                    return theBeanInfo;
                }
            }
            if (new java.lang.Class(typeof(BeanInfo)).isAssignableFrom(beanClass))
            {
                try
                {
                    return loadBeanInfo(beanClass.getName(), beanClass);
                }
                catch (Exception e)
                {
                    // fall through
                }
            }
            return null;
        }
开发者ID:gadfly,项目名称:nofs,代码行数:49,代码来源:java.bean.Introspector.cs

示例3: insertProviderAt

 /**
  * Inserts a provider at a specified position
  *
  * @param provider
  * @param position
  * @return
  */
 public static int insertProviderAt(java.security.Provider provider, int position)
 {
     int size = providers.size();
     if ((position < 1) || (position > size))
     {
         position = size + 1;
     }
     providers.add(position - 1, provider);
     providersNames.put(provider.getName(), provider);
     setNeedRefresh();
     return position;
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:19,代码来源:Services.cs

示例4: getShortClassName

 /**
  * <p>
  * Utility method for getting the unqualified name of a {@link Class}.
  * </p>
  *
  * @param leguminaClass
  *            The Class to get the name from.
  * @return A String instance or <code>null</code>.
  */
 private String getShortClassName(java.lang.Class leguminaClass)
 {
     if (leguminaClass == null)
     {
         return null;
     }
     String beanClassName = leguminaClass.getName();
     int lastIndex = beanClassName.lastIndexOf("."); //$NON-NLS-1$
     return (lastIndex == -1) ? beanClassName : beanClassName.substring(lastIndex + 1);
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:19,代码来源:BeanDescriptor.cs

示例5: InstantiationError

 /**
  * Constructs a new {@code InstantiationError} with the current stack trace
  * and the class that caused this error.
  *
  * @param clazz
  *            the class that can not be instantiated.
  */
 protected internal InstantiationError(java.lang.Class clazz)
     : base(clazz.getName())
 {
 }
开发者ID:sailesh341,项目名称:JavApi,代码行数:11,代码来源:InstantiationError.cs


注:本文中的biz.ritter.javapi.getName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。