本文整理汇总了C#中biz.ritter.javapi.getSuperclass方法的典型用法代码示例。如果您正苦于以下问题:C# biz.ritter.javapi.getSuperclass方法的具体用法?C# biz.ritter.javapi.getSuperclass怎么用?C# biz.ritter.javapi.getSuperclass使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类biz.ritter.javapi
的用法示例。
在下文中一共展示了biz.ritter.javapi.getSuperclass方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: getBeanInfoImpl
private static StandardBeanInfo getBeanInfoImpl(java.lang.Class beanClass, java.lang.Class stopClass,
int flags)
{
//throws IntrospectionException {
BeanInfo explicitInfo = null;
if (flags == USE_ALL_BEANINFO)
{
explicitInfo = getExplicitBeanInfo(beanClass);
}
StandardBeanInfo beanInfo = new StandardBeanInfo(beanClass, explicitInfo, stopClass);
if (beanInfo.additionalBeanInfo != null)
{
for (int i = beanInfo.additionalBeanInfo.Length - 1; i >= 0; i--)
{
BeanInfo info = beanInfo.additionalBeanInfo[i];
beanInfo.mergeBeanInfo(info, true);
}
}
// recursive get beaninfo for super classes
java.lang.Class beanSuperClass = beanClass.getSuperclass();
if (beanSuperClass != stopClass)
{
if (beanSuperClass == null)
throw new IntrospectionException(
"Stop class is not super class of bean class"); //$NON-NLS-1$
int superflags = flags == IGNORE_IMMEDIATE_BEANINFO ? USE_ALL_BEANINFO
: flags;
BeanInfo superBeanInfo = getBeanInfoImpl(beanSuperClass, stopClass,
superflags);
if (superBeanInfo != null)
{
beanInfo.mergeBeanInfo(superBeanInfo, false);
}
}
return beanInfo;
}